From am2rican5
Create or update Claude Code skills following Anthropic's official guide best practices, with automated validation. Walks through frontmatter, instructions, examples, and troubleshooting sections, then runs validate-skill.sh to verify. Use when user says "create a skill", "build a skill", "new skill", "update this skill", "improve this skill", "fix this skill", or "validate my skill". Do NOT use for creating agents (use agents/ directory directly) or for general Claude Code configuration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/am2rican5:skill-builderThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- NEVER overwrite an existing SKILL.md without reading it first and showing the user what will change
scripts/validate-skill.sh after creating or updating a skill — do not skip validationreferences/ and link to it$ARGUMENTS contains a path to an existing SKILL.md → read it and go to Step 5 (Update)$ARGUMENTS contains a skill name → use it as the new skill nameFrom the user's description, derive:
frontend-design)Build the YAML frontmatter with ALL required and recommended fields:
---
name: <kebab-case-name>
description: <[What it does] + [When to use it] + [Key capabilities] + [Do NOT use for]>
disable-model-invocation: true
allowed-tools: "<space-separated tool list>"
compatibility: <environment requirements>
argument-hint: <expected arguments, if any>
metadata:
author: <user or org name>
version: 1.0.0
category: <category>
---
Description formula — include ALL four parts:
Allowed-tools: Only list tools the skill actually needs. Common sets:
"Read Glob Grep""Read Write Bash Glob""Read Edit Write Glob Grep""Read Edit Write Bash Glob Grep"Write the skill body using this exact section structure:
## Critical Rules (5-8 rules)
NEVER/ALWAYS/WHEN X, DO Y — trigger-action only## Instructions with numbered ### Step N: Title subsections
references/ for detailed content that would bloat the main file## Examples (at least 2)
## Troubleshooting (at least 2 entries)
### Problem title → **Cause:** → **Solution:**skills/<name>/SKILL.mdbash skills/skill-builder/scripts/validate-skill.sh skills/<name>/SKILL.mdAfter validation passes, check progressive disclosure:
references/WHEN updating instead of creating:
bash skills/skill-builder/scripts/validate-skill.sh <path-to-SKILL.md> to identify current issuesUser says: "Create a skill for generating API documentation from OpenAPI specs"
Result: Created skills/api-doc-generator/SKILL.md with frontmatter (name, description with triggers and negative triggers, allowed-tools, compatibility), Critical Rules (5 rules), Instructions (4 steps: load spec, analyze endpoints, generate docs, validate output), 2 examples, 2 troubleshooting entries. Validation passes at 1,847 words.
User says: "/skill-builder skills/self-improve/SKILL.md"
Result: Read existing file, ran validation — found 2 issues (missing allowed-tools, missing compatibility). Proposed fixes with exact content. After approval, applied changes and re-validated: PASS at 628 words.
Cause: The SKILL.md body is missing one of: Critical Rules, Instructions, Examples, Troubleshooting.
Solution: The validator checks for ## .*<Section> headers (case-insensitive). Ensure each section uses a level-2 heading containing the exact word. For example, ## Critical Rules or ## Instructions — not ## Setup or ## Usage.
Cause: Too many trigger phrases or verbose capability descriptions. Solution: Shorten the "What it does" part to one sentence. Use shorter trigger phrases. Keep the "Do NOT use for" clause to one sentence. Aim for 400-700 characters.
Cause: Detailed reference content, long examples, or verbose protocol descriptions inline.
Solution: Create a references/ subdirectory. Move the longest sections (usually examples or protocol specs) there. Replace inline content with a link: "See references/<file>.md for details."
Cause: The description field is too vague or missing the user's actual vocabulary. Solution: Add more trigger phrase variations to the description. Include both formal ("orchestrate parallel agents") and casual ("run agents at the same time") phrasings. Test by asking Claude: "When would you use the skill?"
npx claudepluginhub am2rican5/cc-plugin --plugin am2rican5Create, improve, and test SKILL.md files to extend Claude Code with project-specific knowledge and reusable workflows.
Guides development of Claude Code SKILL.md files with best practices, structure, YAML frontmatter rules, categories, patterns, references, and testing.
Create new Skills for Claude Code including YAML frontmatter, descriptions, instructions, and structure. Use when creating, building, or designing skills, or when asked about skill creation, structure, best practices, or debugging skills that don't activate properly.