| name | skill-builder |
| description | Create, improve, audit, and upgrade Claude Code skills. Use when asked to "create a skill", "make a new slash command", "improve this skill", "audit skills", or "update skill-builder". Also use when noticing repeated workflows that should be codified. Sub-commands: create, improve, audit, upgrade.
|
Skill Builder
Create and maintain Claude Code skills following Anthropic's best practices.
Sub-Commands
| Command | Purpose |
|---|
/skill-builder create | Create a new skill from scratch |
/skill-builder improve | Enhance an existing skill |
/skill-builder audit | Check all skills for issues |
/skill-builder upgrade | Fetch latest Claude docs, update this skill |
Before Any Sub-Command
Required reading (load these before proceeding):
- Read references/anthropic-guidelines.md - Official best practices
- Scan
.claude/skills/ - Know what exists, avoid duplicates
- Validate reference material: Before major builds based on skill reference files, verify versions and patterns against current documentation. Pre-build research prevents rework.
/skill-builder create
When to Use
- User says "create a skill for X" or "make a slash command"
- A workflow is repeated 3+ times and should be codified
- Domain knowledge needs capturing for reuse
Step 1: Validate
Check if it should be a skill:
| Signal | Action |
|---|
| Already exists | Suggest /skill-builder improve instead |
| Too narrow (one-off task) | Add as sub-command to existing skill |
| Overlaps existing skill | Extend that skill instead |
Score timelessness (print this table):
| Criterion | Score | Reasoning |
|---|
| Version independence | X/10 | No pinned versions? Abstracts volatile deps? |
| Principle-based | X/10 | Teaches concepts, not just procedures? |
| Extension points | X/10 | Room for sub-commands, future growth? |
| Overall | X/10 | Transient (1-3) / Moderate (4-6) / Solid (7-10) |
Reject if <4. Revise if 4-6. Proceed if 7+.
Step 2: Design
Choose pattern:
| Pattern | When |
|---|
| Single-phase | Simple linear task |
| Multi-phase | Ordered workflow with gates |
| Sub-commands | Related actions sharing context |
| Checklist | Quality/compliance audit |
Size targets:
- Description: ā¤200 chars, includes "Use when..." triggers
- SKILL.md body: ā¤500 lines / ~1,500 words
- If larger ā extract to
references/
Reference File Structure
If skill needs references/, propose a split before creating:
Proposed Reference Structure
============================
references/
āāā patterns.md # Used by: create, review (core patterns)
āāā examples.md # Used by: create only (code examples)
Rationale:
- patterns.md: Shared across most sub-commands
- examples.md: Only needed when creating new code
Approve? [Yes / Modify: ___]
Sizing rules:
- <100 lines ā fine as-is
- 100-300 lines ā add table of contents
- 300-500 lines ā consider split if clear domain boundary exists
- 500+ lines ā must split; aim for balanced halves (300-400 lines each)
Splitting criteria: Group by shared context, not by sub-command:
- Ask "which sub-commands need this content?"
- If all need it ā keep together
- If 2-3 need it ā create shared reference file
- If only one needs it ā inline in that sub-command or create narrow reference
Step 3: Write
mkdir -p .claude/skills/{name}
Use template from references/templates.md
Required elements:
- Frontmatter with
name + description (include trigger phrases)
- Sub-commands table (if applicable)
- "Before Any Sub-Command" section with explicit file reads
- Clear steps per sub-command
- Verifiable checklist
Step 4: Validate & Update
/skill-builder improve
When to Use
- Skill has gaps, missing patterns, or unclear instructions
- File references are broken or outdated
- Skill exceeds size limits
- Skill predates current standards and needs modernization
Step 1: Determine Mode
Ask: "What kind of improvement?"
| Signal | Mode |
|---|
| "Fix X" or specific issue mentioned | Targeted fix ā skip to Step 3 |
| "Update to latest" / "modernize" / skill is old | Full modernization ā run Step 2 |
| Unclear | Ask user which mode |
Step 2: Full Modernization Checklist
Run through the full create checklist against the existing skill:
Structure:
Sizing:
Content quality:
Propose comprehensive update for approval before applying.
Step 3: Targeted Fix
Ask: "What behavior have you observed?"
- Does it trigger when expected?
- Which sections get used/ignored?
- Any unexpected paths?
- Read the skill:
.claude/skills/{name}/SKILL.md
- Read
.claude/reflections/index.md (if exists) for relevant principles
- Identify specific gaps (don't rewrite everything)
- Make targeted edits - change only what's needed
- Re-score timelessness if scope changed significantly
- Verify reference file sizes - If any >100 lines without TOC, fix
- Update CLAUDE.md if description or sub-commands changed
/skill-builder audit
When to Use
- Periodic health check (monthly)
- After major codebase changes
- Before committing skill updates
Steps
-
List skills: ls .claude/skills/
-
Check each skill:
| Check | Pass Criteria |
|---|
| Frontmatter | Has name + description |
| Triggers | Description includes "Use when..." |
| Size | ā¤500 lines or uses references/ |
| File refs | All paths exist |
| Placeholders | None remain |
| Portability | No project-specific paths; uses "(if exists)" for optional files |
| Read format | Uses Read or Scan verb (bold), not "See" or "Check" |
| No duplication | Content in SKILL.md OR references, not both |
| Internal consistency | Checklists match the patterns/recommendations taught |
-
Check CLAUDE.md alignment:
- All skills listed in table?
- Sub-commands documented?
-
Output report:
Skill Audit Report
==================
ā finalize: All checks pass
ā reflect: Missing from CLAUDE.md
Actions needed:
1. Add reflect to CLAUDE.md skill table
/skill-builder upgrade
When to Use
- Monthly maintenance
- When Claude releases new skill features
- When Anthropic publishes new best practices
Steps
-
Fetch latest docs:
-
Compare with references/anthropic-guidelines.md
-
Propose updates (require approval):
Proposed Updates
================
1. references/anthropic-guidelines.md
- Add: [new pattern]
- Update: [changed guideline]
Sources: [URLs]
Approve? [Yes/No]
-
Apply approved changes
Reference Files