Build efficient, scalable Claude Code skills using progressive disclosure and token optimization. Use when creating new skills, optimizing existing skills, or learning skill development patterns. Provides templates, checklists, and working examples.
Guides you through building efficient Claude Code skills using progressive disclosure and token optimization. Use when creating new skills or optimizing existing ones. Provides templates, checklists, and working examples with a mandatory `/reference/` folder structure.
/plugin marketplace add resolve-io/.prism/plugin install prism-devtools@prismThis skill inherits all available tools. When active, it can use any tool Claude has access to.
reference/deferred-loading.mdreference/dynamic-manifests.mdreference/philosophy.mdreference/progressive-disclosure.mdreference/quick-reference.mdreference/skill-creation-process.mdscripts/README.mdscripts/package.jsonscripts/validate-skill.jsGuides you through building efficient Claude Code skills that follow best practices:
Every skill loads in three levels:
| Level | File | Loaded When | Token Limit | What Goes Here |
|---|---|---|---|---|
| 1 | SKILL.md Metadata (YAML) | Always | ~100 | Name, description, version |
| 2 | SKILL.md Body (Markdown) | Skill triggers | <5k (<2k recommended) | Quick ref, core instructions, links to Level 3 |
| 3 | Bundled files in /reference/ | As-needed by Claude | Unlimited | Detailed docs, scripts, examples, specs |
Key rules:
/reference/ folder (not root!)./reference/filename.md from SKILL.mdCritical Structure:
skill-name/
āāā SKILL.md # ā
Level 1+2: Only .md in root
āāā reference/ # ā
REQUIRED: All reference .md files HERE
ā āāā detail1.md
ā āāā detail2.md
āāā scripts/ # Executable tools
incident-triage exampleResult: A working skill following best practices
Need a template or checklist right now?
ā Quick Reference - Templates, checklists, common pitfalls
Want to understand the architectural patterns?
This skill doesn't require specific inputs. Use it when:
Provides guidance, templates, and examples for:
/reference/ folder for all reference .md filesBefore creating any skill, understand this:
ā CORRECT Structure:
skill-name/
āāā SKILL.md # Only .md in root
āāā reference/ # ALL reference docs go HERE
ā āāā api-spec.md
ā āāā examples.md
ā āāā advanced.md
āāā scripts/
ā WRONG Structure:
skill-name/
āāā SKILL.md
āāā api-spec.md # ā Should be in reference/
āāā examples.md # ā Should be in reference/
āāā scripts/
This hierarchy is MANDATORY for:
All detailed content lives in bundled files (Level 3):
Q: Where do I start? A: Read the 3-level table above, then follow Skill Creation Process
Q: My SKILL.md is too long. What do I do?
A: Move details to reference/*.md files (Level 3). Keep SKILL.md body <2k tokens.
Q: How do I make my skill trigger correctly? A: Use specific keywords in the description (Level 1 metadata). See Quick Reference
Q: Can I see a complete working example?
A: Yes! See the incident-triage example in Skill Creation Process
/reference/ folder structure - reference .md files MUST NOT be in rootThis skill should activate when user mentions:
NEW: Automated Skill Validator
Use the included validation script to check your skill before deployment:
# Install dependencies (first time only)
cd .claude/skill-builder/scripts
npm install
# Validate your skill
node validate-skill.js /path/to/your/skill
node validate-skill.js . # validate current directory
The validator checks:
See: Validation Script
To test this skill:
# Ask Claude:
"Help me create a new Claude Code skill for incident triage"
"What are best practices for skill token optimization?"
"Show me a SKILL.md template"
Verify the skill:
Last Updated: 2025-10-20
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.