agentleFS
mralaminahamedmralaminahamed/wp-dev-skills/CLAUDE.md

wp-dev-skills

CLAUDE.md27 starsChanged 6 months agoMITView on GitHub

Maintainer instructions for Claude Code working in this repo. WordPress plugin development skills for AI coding agents. Ships as a Claude Code plugin, Gemini CLI extension, agent rule files for Cursor/Windsurf/Cline/Copilot, and via npx skills add for 70+ agents. Skills live in skills/*/SKILL.md. Each is self-contained and auto-discovered by all supported agents — no manifest update required when adding a skill. Do NOT hardcode skill counts anywhere. Numbers drift — the repo is the source of truth. Edit skills/<name>/SKILL.md directly.…

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

20 rules. About 0 are common, 7 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create skills/<skill-name>/SKILL.md — kebab-case, no underscores.

    line 59
  2. Very specific:

    Add YAML frontmatter with name and description.

    line 60
  3. Very specific:

    Add evals/evals.json with at least 3 scenarios.

    line 61
  4. Very specific:

    Add references/ files for patterns too long for SKILL.md — reference every file explicitly in a ## References section.

    line 62
  5. Distinctive:

    Add a row to the skill table in README.md.

    line 63
  6. Distinctive:

    Add the skill to AGENTS.md and GEMINI.md tables.

    line 64
  7. Very specific:

    Add the skill description to src/rules/wp-dev-skills.md and .github/copilot-instructions.md.

    line 65
  8. Very specific:

    Run python3 .github/scripts/validate_skills.py to confirm CI passes.

    line 66
  9. Distinctive:

    All four version fields must match when releasing:

    line 82
  10. Very specific:

    Every skills/*/ directory has a SKILL.md with name + description frontmatter

    line 99
  11. Very specific:

    Reference, don't replicate: If a skill here depends on concepts from an official skill, link to it in a ## References or > See also note.

    line 113
  12. Distinctive:

    Before creating any skill, grep the official plugin:

    line 125
  13. Very specific:

    If a match exists: do not create the skill here.

    line 131
  14. Distinctive:

    If the official skill covers the topic partially — this plugin may fill the gap (e.g.

    line 133
  15. Very specific:

    Don't hardcode skill counts (18 skills, N skills) — use "WordPress plugin development skills" instead.

    line 139
  16. Distinctive:

    Don't add build steps — skills are plain markdown, no compilation.

    line 140
  17. Distinctive:

    Don't put real plugin/project names in skill content — use generic mock names.

    line 141
  18. Very specific:

    Don't reference files Claude won't know about — every references/ file must be listed in SKILL.md.

    line 142
  19. Very specific:

    Don't use absolute paths in scripts — use ${CLAUDE_PLUGIN_ROOT}.

    line 143
  20. Very specific:

    Don't duplicate or replicate wordpress-official-agent-skills content — see "Relationship to wordpress-official-agent-skills" above.

    line 144

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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

CLAUDE.md — wp-dev-skills

Maintainer instructions for Claude Code working in this repo.


Project overview

WordPress plugin development skills for AI coding agents. Ships as a Claude Code plugin, Gemini CLI extension, agent rule files for Cursor/Windsurf/Cline/Copilot, and via npx skills add for 70+ agents.

Skills live in skills/*/SKILL.md. Each is self-contained and auto-discovered by all supported agents — no manifest update required when adding a skill.


What lives where

wp-dev-skills/
├── README.md                         # Lean landing page — skill table + quick install
├── INSTALL.md                        # Full per-agent install matrix
├── CONTRIBUTING.md                   # Skill authoring conventions + CI rules
├── CLAUDE.md                         # This file
├── AGENTS.md                         # Universal context (opencode, Codex, Devin, …)
├── GEMINI.md                         # Gemini CLI context (plain markdown)
├── CHANGELOG.md                      # Release history
│
├── .claude-plugin/
│   ├── plugin.json                   # Claude Code plugin manifest
│   └── marketplace.json              # Claude Code marketplace manifest
│
├── .codex/
│   ├── config.toml                   # Codex features flag
│   └── hooks.json                    # Codex SessionStart hook
│
├── gemini-extension.json             # Gemini CLI extension manifest
├── package.json                      # npm metadata for npx skills
│
├── src/rules/
│   └── wp-dev-skills.md              # Rule file (single source for Cursor/Windsurf/Cline/Copilot)
│
├── .github/
│   ├── copilot-instructions.md       # GitHub Copilot rule file
│   ├── workflows/validate.yml        # CI: validates skill structure
│   ├── scripts/validate_skills.py    # Validation script
│   └── ISSUE_TEMPLATE/               # Bug + skill request templates
│
└── skills/
    └── <skill-name>/
        ├── SKILL.md                  # Required — frontmatter: name, description
        ├── references/               # Deep-dive patterns and configs
        ├── evals/evals.json          # Eval scenarios
        └── scripts/                  # Optional helper scripts

Adding a skill

  1. Create skills/<skill-name>/SKILL.md — kebab-case, no underscores.
  2. Add YAML frontmatter with name and description. Description leads with Use when… and ends with Not for: cases.
  3. Add evals/evals.json with at least 3 scenarios.
  4. Add references/ files for patterns too long for SKILL.md — reference every file explicitly in a ## References section.
  5. Add a row to the skill table in README.md.
  6. Add the skill to AGENTS.md and GEMINI.md tables.
  7. Add the skill description to src/rules/wp-dev-skills.md and .github/copilot-instructions.md.
  8. Run python3 .github/scripts/validate_skills.py to confirm CI passes.

Do NOT hardcode skill counts anywhere. Numbers drift — the repo is the source of truth.


Editing skills

Edit skills/<name>/SKILL.md directly. Change is live on next agent session — no build step.

References in references/ are only read by agents that explicitly know about them (listed in SKILL.md ## References section). Keep them referenced.


Manifests to keep in sync on release

All four version fields must match when releasing:

  • .claude-plugin/plugin.json → version
  • .claude-plugin/marketplace.json → plugins[0].version
  • gemini-extension.json → version
  • package.json → version

Tag format: vX.Y.Z. Update CHANGELOG.md before tagging.


CI

.github/workflows/validate.yml runs on every push and PR. Checks:

  • Both .claude-plugin/*.json manifests are valid JSON
  • plugin.json and marketplace.json versions match
  • Every skills/*/ directory has a SKILL.md with name + description frontmatter

Run locally: python3 .github/scripts/validate_skills.py


Relationship to wordpress-official-agent-skills

wp-dev-skills is a complement to wordpress-official-agent-skills — never a replacement or duplicate.

Hard rules

  • Never duplicate a skill already covered by wordpress-official-agent-skills. If the official plugin covers REST API, block development, or WP-CLI ops, do not create a parallel skill here.
  • Never copy content from official skills into this plugin's SKILL.md files — not even paraphrased.
  • Reference, don't replicate. If a skill here depends on concepts from an official skill, link to it in a ## References or > See also note. Let the official skill do its job.

How they fit together

wordpress-official-agent-skillswp-dev-skills
WP core APIs, block development, REST API, WP-CLI ops, Playground, WPDSGitHub contribution flow, CI/QA triage, PHPUnit/PHPCS/PHPStan, build tools, release versioning, WP.org submission, Freemius SDK, plugin audit
Official WP.org patterns and standardsDeveloper lifecycle tooling and workflow
What WP isHow to ship WP plugins professionally

When adding a new skill — check official first

Before creating any skill, grep the official plugin:

find ~/.claude/plugins/cache/wordpress-official-agent-skills -name "SKILL.md" | xargs grep -l "<topic>"

If a match exists: do not create the skill here. Instead, reference the official skill in any related wp-dev-skills content and use it to enhance efficiency, scalability, and quality in the plugin/theme development lifecycle.

If the official skill covers the topic partially — this plugin may fill the gap (e.g. official skill covers REST API consumption; this plugin could cover REST endpoint authoring patterns for plugin devs). Document the boundary clearly in both skills' description and Not for: lines.


What NOT to do

  • Don't hardcode skill counts (18 skills, N skills) — use "WordPress plugin development skills" instead.
  • Don't add build steps — skills are plain markdown, no compilation.
  • Don't put real plugin/project names in skill content — use generic mock names.
  • Don't reference files Claude won't know about — every references/ file must be listed in SKILL.md.
  • Don't use absolute paths in scripts — use ${CLAUDE_PLUGIN_ROOT}.
  • Don't duplicate or replicate wordpress-official-agent-skills content — see "Relationship to wordpress-official-agent-skills" above.

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.