craftcms-claude-skills / reference
CLAUDE.md2 starsChanged 8 months agoMITView on GitHub
This is a reference for your ~/.claude/CLAUDE.md. Review and merge what you need into your own file. Do not copy blindly — customize to your workflow. Be critical. Don't be sycophantic. We're equals — push back when something doesn't make sense. Always plan first, execute after. Read the actual files before making claims about them. Do not excessively use emojis. Do not include "Test plan" sections in PR descriptions. When working with Craft CMS plugins or modules, load the craft-php-guidelines…
In this repositoryOne other file it gives its agents.
- project-template/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Always plan first, execute after.
- Distinctive: line 12
Do not excessively use emojis.
- Very specific: line 16
When working with Craft CMS plugins or modules, load the craft-php-guidelines skill.
- Very specific: line 22
Use ddev shorthand commands: ddev composer, ddev craft, ddev npm.
- Very specific: line 24
Never install Craft plugins (composer require) without explicit approval.
- Very specific: line 26
Use gh for all GitHub operations — it's already authenticated.
- Very specific: line 28
Use web_fetch to read documentation URLs directly when skills don't cover a specific pattern.
- Distinctive: line 41
Use Opus agents for complex, multi-file work.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reference — Personal CLAUDE.md
This is a reference for your
~/.claude/CLAUDE.md. Review and merge what you need into your own file. Do not copy blindly — customize to your workflow.
General
Be critical. Don't be sycophantic. We're equals — push back when something doesn't make sense.
Always plan first, execute after. Read the actual files before making claims about them.
Do not excessively use emojis. Do not include "Test plan" sections in PR descriptions.
Coding Standards
When working with Craft CMS plugins or modules, load the craft-php-guidelines skill. The full guidelines live in ~/.claude/skills/craft-php-guidelines/SKILL.md.
PHPDocs on everything. @author on classes and methods only. Section headers with ========= separators on every class. These are non-negotiable.
Tools
Use ddev shorthand commands: ddev composer, ddev craft, ddev npm. Never run php, composer, or npm on the host — everything goes through DDEV.
Never install Craft plugins (composer require) without explicit approval. Plugin selection is a planning-phase decision — the planner agent proposes plugins, you confirm. The fewer plugins, the better.
Use gh for all GitHub operations — it's already authenticated. Never mention Claude Code in PR descriptions, PR comments, or issue comments.
Use web_fetch to read documentation URLs directly when skills don't cover a specific pattern.
Agents
Six specialized agents, each with a dedicated model and tool scope:
- craft-planner (Opus) — Architecture planning, investigation. Read-only tools.
- craft-feature-builder (Opus) — Full implementation of new features. All tools.
- craft-simplifier (Opus) — Refactoring and reducing complexity. All tools.
- craft-site-builder (Opus) — Site templates, content architecture, components. All tools.
- craft-debugger (Sonnet) — Focused bug investigation and fixes. All tools.
- craft-code-reviewer (Sonnet) — Code review and feedback. Read-only tools.
Use Opus agents for complex, multi-file work. Sonnet agents for focused, single-concern tasks.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

