Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

skill-crafting

FreeRuns bundled scriptsNot checked

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'…

arvindandby arvindand★ 17 GitHub stars19 installs in other catalogs

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:

  1. 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.

  2. Read the skill files for qualitative review:

    • Read SKILL.md
    • Read REFERENCES.md (if exists)
    • Read directly linked references/, scripts/, or agents/openai.yaml files when they materially affect behavior
  3. Provide holistic feedback covering:

    • Script results (CSO, structure, tokens) or explicit blocker if scripts could not run
    • Does allowed-tools match 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?
  4. 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:

  1. Reflect on the conversation — you already have full context
  2. Assess skill-worthiness using criteria below
  3. If worthy: Generate SKILL.md using methodology in this skill
  4. 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:

  1. What pattern repeats? (e.g., "set up auth with tests")
  2. What would break without the skill? (steps someone might skip)
  3. 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?":

  1. Review what you did in this session
  2. Identify distinct workflow segments (not exploration/debugging)
  3. Apply criteria above
  4. Recommend yes/no with specific reasoning
  5. If partial: suggest which part is worth extracting

Core Principle

Writing skills is TDD for documentation.

  1. RED: Test without skill → document failures
  2. GREEN: Write skill addressing those failures
  3. REFACTOR: Close loopholes, improve discovery

If you didn't see an agent fail without the skill, you don't know if it prevent

Full SKILL.md on GitHub

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
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Read
Write
Bash(python3 ${CLAUDE_SKILL_DIR}/scripts/*)

Bundled files

LICENSEREFERENCES.mdscripts/analyze-all.pyscripts/analyze-compatibility.pyscripts/analyze-cso.pyscripts/analyze-structure.pyscripts/analyze-tokens.pyscripts/analyze-triggers.pyscripts/check-char-budget.pyscripts/frontmatter.py

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

Compare skill-crafting with