Craft Garnish
lang:javascripttype:integration
Garnish — Craft CMS's built-in JavaScript UI toolkit for the control panel. Covers the full Garnish surface: class system (Garnish.Base.extend, init, setSettings, addListener, on/off/trigger, destroy), UI widgets (Modal, HUD, DisclosureMenu, MenuBtn, CustomSelect, ContextMenu, Select), drag system (BaseDrag, DragSort, DragDrop, DragMove), form widgets (NiceText, CheckboxSelect, MixedInput, MultiFunctionBtn), utilities (key constants, ARIA helpers, focus management), and Craft integration (GarnishAsset, webpack externals, Craft.* class pattern). Triggers on: Garnish.Base.extend, Garnish.Modal, Garnish.HUD, Garnish.DragSort, Garnish.Select, Garnish.DisclosureMenu, Garnish.MenuBtn, Garnish.CustomSelect, addListener, removeListener, removeAllListeners, Garnish.ESC_KEY, Garnish.RETURN_KEY, activate event, textchange event, UiLayerManager, registerShortcut, trapFocusWithin, garnishjs, GarnishAsset, CpAsset, CP JavaScript, control panel JS, drag and drop, sortable, modal dialog, HUD popover, disclosure menu, menu button, Craft.CP, Craft.Slideout, Craft.ElementEditor, onSortChange, onOptionSelect, onSelectionChange, aria-modal, focus trap, keyboard navigation CP, this.base(), window.Garnish, expose-loader, CP memory leak, event listener cleanup, jQuery .on() in CP, selection interface, multi-select grid. Always use when writing, editing, or reviewing JavaScript that runs in the Craft CMS control panel — including plugin CP assets, custom field type JS, element index JS, CP webpack config, or code that imports garnishjs or references window.Garnish. Also trigger for Craft CP accessibility, keyboard interactions, drag-sort behavior, or CP JS memory issues. Do NOT trigger for front-end JavaScript (Alpine, Vue, htmx) or Twig templates.
What this skill does
Craft Garnish is a production-ready Claude Code skill (quality score 70/100) in the threat-hunting sub-category. It ships as a SKILL.md file that Claude Code auto-discovers under ~/.claude/skills/craft-garnish/ and loads when your prompt matches the skill's trigger.
When to invoke it: use when writing, editing, or reviewing JavaScript that runs in the Craft CMS control panel — including plugin CP assets, custom field type JS, element index JS, CP webpack config, or code that imports garnishjs or references window.Garnish.
Who uses this skill
The Craft Garnish skill is built for security engineers, penetration testers, DevSecOps practitioners, and development teams hardening codebases and infrastructure. It is part of the open ClaudSkills registry, a community-curated catalog of 15,000+ capabilities you can install for Claude Code — the Claude CLI agent.
How to install
Free
Manual install (2 steps)
mkdir -p ~/.claude/skills/craft-garnish
curl -L https://claudskills.com/skills/craft-garnish/SKILL.md \
-o ~/.claude/skills/craft-garnish/SKILL.md
Or just download SKILL.md directly and drop it into ~/.claude/skills/craft-garnish/. Claude Code auto-discovers it on next session.
Skills live at ~/.claude/skills/craft-garnish/SKILL.md on macOS/Linux, or %USERPROFILE%\.claude\skills\craft-garnish\SKILL.md on Windows. See the full install guide for step-by-step instructions.
Pro
One-click install via the desktop app
The ClaudSkills desktop app installs any skill directly into ~/.claude/skills/ with one click — no terminal required. Pro starts at $9/mo or $149 lifetime.
More Security skills
Browse all Security skills in the ClaudSkills registry, or explore these top-rated picks from the same category:
Part of Acreator Store — Adam Lankamer's AI tools:
GifPerfect ·
AspectPerfect ·
SlomoPerfect ·
Ucaption ·
UTagger ·
AutoXPoster ·
TestYourSkills