public/SKILLS/Development & Code Tools/plugin-authoring/SKILL.md
Use when creating, modifying, or debugging Claude Code plugins. Triggers on .claude-plugin/, plugin.json, marketplace.json, commands/, agents/, skills/, hooks/ directories. Provides schemas, templates, validation workflows, and troubleshooting.
npx skillsauth add eric861129/skills_all-in-one plugin-authoringInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the canonical guide for Claude Code plugin development. Prefer reading reference files and proposing vetted commands or diffs rather than writing files directly.
Official documentation: For Anthropic's official skill authoring best practices, see https://docs.anthropic.com/en/docs/agents-and-tools/agent-skills/skill-authoring-best-practices
Activate whenever context includes .claude-plugin/, plugin.json, marketplace.json, commands/, agents/, skills/, or hooks/.
/plugin-development:... commands when the user agrees□ .claude-plugin/plugin.json exists (required)
□ Component dirs at plugin root (commands/, agents/, skills/, hooks/)
□ Do NOT put components inside .claude-plugin/ directory
□ Commands use kebab-case naming
□ Skills have valid frontmatter (name + description required, optional: model, allowed-tools)
□ Skills name validation:
- Matches directory name
- Lowercase letters, numbers, hyphens only
- Max 64 characters
- No reserved words ('anthropic', 'claude')
- No XML tags
□ Hooks use ${CLAUDE_PLUGIN_ROOT} for paths (not relative paths)
□ All scripts are executable (chmod +x)
□ plugin.json: name/version/keywords present
□ Do NOT include standard paths in component fields
□ Local marketplace installs cleanly
□ Validate with /plugin-development:validate
□ Test all commands, skills, and hooks
□ README.md exists with usage examples
commands/, agents/, skills/, or hooks/ inside .claude-plugin/ → WRONG LOCATION (components go at plugin root)"commands": "./commands/" to plugin.json → UNNECESSARY (standard directories auto-discovered, this breaks things)./scripts/format.sh in hooks → USE ${CLAUDE_PLUGIN_ROOT}/scripts/format.sh/plugin-development:validate before testing → ALWAYS VALIDATE FIRSTchmod +x on hook scripts → Scripts won't execute (silent failure)All of these cause silent failures. When in doubt, validate.
For detailed explanations: best-practices/common-mistakes.md
| Skip This | What Happens | |-----------|--------------| | Validate manifest | Plugin won't load, no error message | | chmod +x scripts | Hooks silently fail | | ${CLAUDE_PLUGIN_ROOT} | Works in dev, breaks on install | | Standard directory rules | Components not discovered |
Running /plugin-development:validate catches 90% of issues before debugging starts.
/plugin-development:init <name> then fill templates/plugin-development:add-command|add-skill|add-agent|add-hook/plugin-development:validate (schema & structure checks)/plugin-development:test-local (dev marketplace)/plugin-development:init <plugin-name> to scaffold structure.claude-plugin/plugin.json with your metadata/plugin-development:add-command, etc./plugin-development:validate/plugin-development:test-local/plugin-development:add-command <name> <description>commands/<name>.md with instructionsdescription and argument-hint/plugin install your plugin, then /<name>/plugin-development:add-skill <name> <when-to-use>skills/<name>/SKILL.md with your instructionsname: lowercase letters, numbers, and hyphens only, max 64 chars (required). Cannot contain reserved words 'anthropic' or 'claude'. Cannot contain XML tags.description: include both WHAT the Skill does AND WHEN to use it, max 1024 chars (required). Cannot contain XML tags.model: specify which Claude model to use, e.g., model: claude-sonnet-4-20250514 (optional, defaults to conversation's model)allowed-tools: comma-separated list of tools (optional). Tools listed don't require permission to use when Skill is active. If omitted, Skill doesn't restrict tools.plugin.json paths are relative to plugin root. Do NOT include commands, agents, skills, or hooks fields for standard directories.commands/ directory exists at plugin root with .md files. Do NOT add commands field to plugin.json for standard paths.chmod +x) and use ${CLAUDE_PLUGIN_ROOT} for pathsname matches directory and uses lowercase letters, numbers, and hyphens only (max 64 chars). Ensure description includes both what and when to use (max 1024 chars). Neither field can contain XML tags./agents plugin-reviewer/plugin-development:validate before testingdevelopment
Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like "what if...", "what would happen if...", "what are the possibilities", "explore scenarios", "scenario analysis", "possibility space", "what could go wrong", "best case / worst case", "risk analysis", "contingency planning", "strategic options", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.
development
Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
development
Use when challenging ideas, plans, decisions, or proposals using structured critical reasoning. Invoke to play devil's advocate, run a pre-mortem, red team, or audit evidence and assumptions.
tools
Core skill for the deep research and writing tool. Write scientific manuscripts in full paragraphs (never bullet points). Use two-stage process with (1) section outlines with key points using research-lookup then (2) convert to flowing prose. IMRAD structure, citations (APA/AMA/Vancouver), figures/tables, reporting guidelines (CONSORT/STROBE/PRISMA), for research papers and journal submissions.