agentleFS
chrisrowechrisrowe/craftcms-claude-skills/reference/CLAUDE.md

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…

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
  1. Distinctive:

    Always plan first, execute after.

    line 10
  2. Distinctive:

    Do not excessively use emojis.

    line 12
  3. Very specific:

    When working with Craft CMS plugins or modules, load the craft-php-guidelines skill.

    line 16
  4. Very specific:

    Use ddev shorthand commands: ddev composer, ddev craft, ddev npm.

    line 22
  5. Very specific:

    Never install Craft plugins (composer require) without explicit approval.

    line 24
  6. Very specific:

    Use gh for all GitHub operations — it's already authenticated.

    line 26
  7. Very specific:

    Use web_fetch to read documentation URLs directly when skills don't cover a specific pattern.

    line 28
  8. Distinctive:

    Use Opus agents for complex, multi-file work.

    line 41

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.