Craft CMS Claude Skills

Production-ready skills and templates for Craft CMS 5 development using Claude Code.

Craft CMS Claude Skills

Production-ready Claude Code skills, agents, and project templates for Craft CMS 5 development.

Built and maintained by michtio. Covers both plugin/module development (extending Craft) and site development (content modeling, Twig templates, front-end architecture).

Quick Start

1. Install

# Claude Code Plugin (recommended)
# First time: add the marketplace, then install
/plugin marketplace add michtio/craftcms-claude-skills
/plugin install craftcms-claude-skills@michtio/craftcms-claude-skills

# Or via Vercel Skills CLI
npx skills add michtio/craftcms-claude-skills --all

# Or clone manually
git clone https://github.com/michtio/craftcms-claude-skills.git ~/.claude/craftcms-claude-skills
cd ~/.claude/craftcms-claude-skills && bash install.sh

2. Set Up Your Project

Open Claude Code in your Craft project and say:

Set up Claude for this Craft project

The craft-project-setup skill detects your project type (plugin, site, module) and generates a tailored CLAUDE.md and .claude/rules/ directory.

3. Start Building

The skills trigger automatically based on what you're doing. Just describe what you need:

Build a blog with topics, authors, and a flexible body builder using CKEditor

Claude loads the right skills, follows Craft conventions, and uses the correct field handles, DDEV commands, and project config workflow.

Example Prompts

Just describe what you need. Skills trigger automatically and produce high-quality results.

Plan the content architecture for a multi-language corporate site with
news, team members, office locations, and a service catalog. We need
English, German, and French with subfolder-per-language routing.
Build a custom element type for "Job Listings" with postDate/expiryDate
status, a categories relation for departments, and a CP edit page with
field layout designer.
I need a modal dialog for my Craft plugin that opens when clicking
"Add Item", shows a form with name and handle fields, POSTs to my
plugin's save action, and closes on success. Make it keyboard accessible.
Create an atomic button component that supports links, form submits,
and disabled states. It needs size variants and a loading spinner option.
Configure Redis for cache, sessions, and mutex in our Craft project.
We're running DDEV locally and deploying to a VPS with Redis installed.
Build a member area with registration, login, password reset, and
profile editing. Users should be in the "Members" group and only see
content in the gated section.

See docs/prompt-guide.md for 40+ prompts organized by task type.

What's Inside

Skills

SkillTrackKey Coverage
craftcmsPluginElements, queries, services, controllers, migrations, events, GraphQL, configuration, caching, permissions, CP templates, debugging. 28 reference files.
craft-php-guidelinesPluginPHPDocs, section headers, naming, class organization, ECS/PHPStan. 5 reference files.
craft-content-modelingSiteSections, entry types, fields, Matrix, relations, eager loading, entrification. Reuse-first field workflow. 5 reference files.
craft-siteSiteAtomic design, component patterns, routing, Vite, auth flows, search, feeds, headless. 17 reference files + 22 plugin references.
craft-twig-guidelinesSiteVariable naming, null handling, whitespace, include isolation, Craft helpers, collect().
craft-garnishPluginGarnish CP JavaScript: class system, UI widgets, drag system, ARIA/focus, Craft.* pattern. 5 reference files.
ddevSharedCommands, services, configuration, Xdebug, troubleshooting.
craft-project-setupSharedInteractive project scaffolding. Generates CLAUDE.md and .claude/rules/.

8 skills, 82 reference files. Skills load automatically and declare companion skills so related knowledge loads together. See docs/skills-overview.md for the full breakdown.

Agents

AgentModelPurpose
craft-plannerOpusBreak features into scoped steps with runnable verification gates
craft-feature-builderOpusBuild plugin code layer by layer with build-verify gates
craft-site-builderOpusSite templates and components with build-verify gates
craft-debuggerSonnetSystematic bug investigation
craft-code-reviewerSonnetCode review with findings report

Builder agents enforce layered build-verify gates and mandatory todo lists. The builder and reviewer maintain prevention/detection parity -- 14 prevention rules map to 19 checklist items. See docs/agents.md for details.

Plugin Reference Library

22 Craft plugins with detailed configuration, Twig/PHP API, and common pitfalls:

<details> <summary>View all 22 plugin references</summary>
PluginAuthorKey Surface
SEOMaticnystudio107Meta cascade, JSON-LD, sitemaps, GraphQL
BlitzputyourlightsonStatic caching, Cloudflare, dynamic content, purgers
FormieverbbForm rendering, Tailwind theming, submissions, hooks
ImageOptimizenystudio107Responsive images, transforms, loading strategies
CKEditorcraftcmsRich text, nested entries, HTML Purifier
SprigputyourlightsonReactive Twig components (htmx)
Element APIcraftcmsJSON API endpoints
Retournystudio107Redirects, 404 tracking
NavigationverbbMenu node querying, active states
HyperverbbLink fields, button integration
Colour SwatchescraftpulseColor palettes, Tailwind class mapping
Password PolicycraftpulseValidation rules, HIBP check
Typogrifynystudio107Typography filters, widow prevention
Cache IgniterputyourlightsonCDN cache warming
Knock KnockverbbStaging password protection
Elements PanelputyourlightsonDebug toolbar, N+1 detection
SherlockputyourlightsonSecurity scanning
Embedded AssetsspicyweboEmbed as assets
Amazon SESputyourlightsonSES mail transport
TimeloopcraftpulseRecurring dates
Feed MecraftcmsData import from XML/JSON/CSV, CLI automation
Imager-XspacecrafttechnologiesAdvanced image transforms, named presets, effects
</details>

Documentation

GuideWhat it covers
Getting StartedInstallation, project setup, how skills auto-trigger, first steps
Skills OverviewAll 8 skills with triggers, companion skills, reference counts, boundaries
Prompt Guide40+ real-world prompts organized by task type
Agents5 agents with tools, gate patterns, composition examples
ContributingAdding plugin references, improving skills, reporting issues

Requirements

  • Claude Code installed and configured
  • DDEV for local Craft CMS development
  • Craft CMS 5.x
  • Bash (macOS/Linux) for the install script

Roadmap

  • Upgrade guide (Craft 3→4, 4→5, 3→5) with deprecated plugin mapping and migration paths
  • DDEV skill expansion (Xdebug deep-dive, custom services, production parity)
  • Commerce skill (products, variants, orders, carts, payments -- separate skill)
  • CKEditor 4→5 migration guide (config conversion, custom styles, plugin mapping, HTML cleanup)
  • More plugin references (Neo, Scout, Campaign)

Contributing

Contributions welcome. See docs/contributing.md for how to add plugin references, improve skills, and report issues.

License

MIT -- see LICENSE.