skill-crafting
FreeRuns bundled scriptsNot checkedCreate, fix, and validate skills for AI agents. Use when user says 'create a skill', 'build a skill', 'fix my skill', 'skill not working', 'analyze my skill'…
About this skill
Skill Crafting
Create effective, discoverable skills that work under pressure.
When to Use
Creating:
- "Create a skill for X"
- "Build a skill to handle Y"
From Session History:
- "Create a skill from this session"
- "Turn what we just did into a skill"
- "Can the database setup we did become a skill?"
- "Could we create a skill from this?" (evaluate first)
- "Should this be a skill?" (evaluate first)
Fixing:
- "This skill isn't working"
- "Why isn't this skill triggering?"
- "Skill didn't trigger when it should have"
Analyzing:
- "Analyze my skill for issues"
- "Run skill analysis"
- "Check this skill's quality"
- "Audit all my skills"
- "Check character budget across skills"
Analyzing a Skill
When user asks to analyze a skill:
Run scripts first when available for mechanical checks:
python3 ${CLAUDE_SKILL_DIR}/scripts/analyze-all.py path/to/skill/If scripts fail because of environment or tooling issues, state the blocker clearly and continue with manual review.
Read the skill files for qualitative review:
- Read SKILL.md
- Read REFERENCES.md (if exists)
- Read directly linked
references/,scripts/, oragents/openai.yamlfiles when they materially affect behavior
Provide holistic feedback covering:
- Script results (CSO, structure, tokens) or explicit blocker if scripts could not run
- Does
allowed-toolsmatch what the skill needs to do? - Does the analysis cover the files that actually define the skill's behavior?
- Is the workflow clear and actionable?
- Are references appropriate and sized correctly?
- Missing sections or anti-patterns?
Give verdict with prioritized recommendations
Validation Scripts
| Script | Purpose | Usage |
|---|---|---|
analyze-all.py |
Run all checks | python3 ${CLAUDE_SKILL_DIR}/scripts/analyze-all.py path/to/skill/ |
analyze-cso.py |
Check CSO compliance | python3 ${CLAUDE_SKILL_DIR}/scripts/analyze-cso.py path/to/SKILL.md |
analyze-tokens.py |
Count tokens | python3 ${CLAUDE_SKILL_DIR}/scripts/analyze-tokens.py path/to/SKILL.md |
analyze-triggers.py |
Find missing triggers | python3 ${CLAUDE_SKILL_DIR}/scripts/analyze-triggers.py path/to/SKILL.md |
analyze-compatibility.py |
Report standard, extension, and unknown fields | python3 ${CLAUDE_SKILL_DIR}/scripts/analyze-compatibility.py path/to/skill/ |
check-char-budget.py |
Check description caps | python3 ${CLAUDE_SKILL_DIR}/scripts/check-char-budget.py path/to/skills/ |
Quick start:
python3 ${CLAUDE_SKILL_DIR}/scripts/analyze-all.py ~/.claude/skills/my-skill/
python3 ${CLAUDE_SKILL_DIR}/scripts/check-char-budget.py ~/.claude/skills/
The scripts use a dependency-free YAML subset: plain multiline strings, single-line
quoted strings, literal (|) and folded (>) blocks with optional -/+ chomping,
and indented mappings and lists for metadata/hooks. Unsupported forms (flow collections,
anchors, tags, multiline quotes, explicit block indentation) produce parse errors.
Scalars remain strings. Unknown fields are compatibility warnings, not evidence of
cross-platform support. The budget checker fails if any skill cannot be parsed.
Run the parser and analyzer regression examples from the repository root:
python3 -m unittest discover -s tests -v.
Creating from Current Session
When user asks to create a skill from the current session:
- Reflect on the conversation — you already have full context
- Assess skill-worthiness using criteria below
- If worthy: Generate SKILL.md using methodology in this skill
- If not: Explain why (one-off, too scattered, etc.)
Skill-Worthiness Criteria
| Question | ✅ Extract | ❌ Skip |
|---|---|---|
| Will this repeat? | 3+ future uses likely | One-off task |
| Non-trivial? | Multi-step coordination | Just "read, edit" |
| Domain knowledge? | Captures expertise | Generic actions |
| Generalizable? | Works across projects | Project-specific |
Quick Assessment
Before creating, answer:
- What pattern repeats? (e.g., "set up auth with tests")
- What would break without the skill? (steps someone might skip)
- Who else would use this? (just me? team? public?)
If you can't answer these clearly → probably not skill-worthy.
For Evaluative Questions
When user asks "could this be a skill?" or "any reusable patterns?":
- Review what you did in this session
- Identify distinct workflow segments (not exploration/debugging)
- Apply criteria above
- Recommend yes/no with specific reasoning
- If partial: suggest which part is worth extracting
Core Principle
Writing skills is TDD for documentation.
- RED: Test without skill → document failures
- GREEN: Write skill addressing those failures
- REFACTOR: Close loopholes, improve discovery
If you didn't see an agent fail without the skill, you don't know if it prevent
Install skill-crafting in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
ReadWriteBash(python3 ${CLAUDE_SKILL_DIR}/scripts/*)Bundled files
FAQ
What does the skill-crafting skill do?
Create, fix, and validate skills for AI agents. Use when user says 'create a skill', 'build a skill', 'fix my skill', 'skill not working', 'analyze my skill', 'validate skill', 'audit my skills', 'check character budget', 'create a skill from this session', 'turn this into a skill', 'make this reusable', 'can this become a skill', 'should this be a skill', or asks for reusable patterns in the session. Use even if the user does not explicitly say 'skill' but is sketching a reusable workflow.
How do I install the skill-crafting skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the skill-crafting skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic