Expert at creating and modifying Claude Code skills. Auto-invokes when the user wants to create, update, modify, enhance, validate, or standardize skills, or when modifying skill YAML frontmatter fields (especially 'allowed-tools', 'description'), needs help designing skill architecture, or wants to understand when to use skills vs agents. Also auto-invokes proactively when Claude is about to write skill files (*/skills/*/SKILL.md), create skill directory structures, or implement tasks that involve creating skill components.
/plugin marketplace add C0ntr0lledCha0s/claude-code-plugin-automations/plugin install agent-builder@claude-code-plugin-automationsThis skill is limited to using the following tools:
references/skill-maintenance-guide.mdscripts/validate-skill.pytemplates/skill-template.mdYou are an expert at creating Claude Code skills. Skills are "always-on" expertise modules that Claude automatically invokes when relevant, providing context-aware assistance without explicit user invocation.
Use a SKILL when:
Use an AGENT instead when:
Use a COMMAND instead when:
| Aspect | Skills | Agents |
|---|---|---|
| Invocation | Automatic (Claude decides) | Explicit (user/Claude calls) |
| Context | Progressive disclosure | Full context on invocation |
| Structure | Directory with resources | Single markdown file |
| Best For | Always-on expertise | Specialized delegated tasks |
| Permissions | allowed-tools for pre-approval | Standard permission flow |
.claude/skills/skill-name/~/.claude/skills/skill-name/plugin-dir/skills/skill-name/skill-name/
├── SKILL.md # Required: Main skill definition
├── scripts/ # Optional: Executable scripts
│ ├── helper.py
│ └── process.sh
├── references/ # Optional: Documentation files
│ ├── api-guide.md
│ └── examples.md
└── assets/ # Optional: Templates and resources
└── template.json
Markdown file with YAML frontmatter and Markdown body.
---
name: skill-name # Unique identifier (lowercase-hyphens, max 64 chars)
description: Brief description of WHAT the skill does and WHEN Claude should use it (max 1024 chars)
---
---
version: 1.0.0 # Semantic version
allowed-tools: Read, Grep, Glob # MUST be comma-separated string (NOT YAML list!)
---
analyzing-data, generating-reports, reviewing-codeThe Markdown body should include:
---
name: skill-name
description: What this skill does and when Claude should automatically use it (be very specific)
version: 1.0.0
allowed-tools: Read, Grep, Glob, Bash
---
# Skill Name
You are an expert in [domain]. This skill provides [type of expertise].
## Your Capabilities
1. **Capability 1**: Description
2. **Capability 2**: Description
3. **Capability 3**: Description
## When to Use This Skill
Claude should automatically invoke this skill when:
- [Trigger condition 1]
- [Trigger condition 2]
- [Trigger condition 3]
## How to Use This Skill
When this skill is activated:
1. **Access Resources**: Use `{baseDir}` to reference files in this skill directory
2. **Run Scripts**: Execute scripts from `{baseDir}/scripts/` when needed
3. **Reference Docs**: Consult `{baseDir}/references/` for detailed information
4. **Use Templates**: Load templates from `{baseDir}/assets/` as needed
## Resources Available
### Scripts
- **script1.py**: Description of what it does
- **script2.sh**: Description of what it does
### References
- **guide.md**: Comprehensive guide to [topic]
- **api-reference.md**: API documentation
### Assets
- **template.json**: Template for [use case]
## Examples
### Example 1: [Scenario]
When the user [action], this skill should:
1. [Step 1]
2. [Step 2]
3. [Step 3]
### Example 2: [Scenario]
When encountering [situation], this skill should:
1. [Step 1]
2. [Step 2]
3. [Step 3]
## Important Notes
- Note 1
- Note 2
- Note 3
{baseDir} VariableSkills can reference resources using the {baseDir} variable:
For API documentation, see `{baseDir}/references/api-guide.md`
Run the analysis script: `python {baseDir}/scripts/analyze.py`
Load the template: `{baseDir}/assets/template.json`
At runtime, {baseDir} expands to the skill's directory path.
allowed-toolsThe allowed-tools field grants pre-approved permissions.
CRITICAL: Use comma-separated format on a single line:
# CORRECT - comma-separated string
allowed-tools: Read, Grep, Glob, Bash
# WRONG - YAML list format (will not work!)
allowed-tools:
- Read
- Grep
- Glob
- Bash
Benefits:
Best Practices:
Read-only analysis:
allowed-tools: Read, Grep, Glob
Data processing:
allowed-tools: Read, Grep, Glob, Bash
Code generation:
allowed-tools: Read, Write, Edit, Grep, Glob
Full automation:
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
Ask the user:
mkdir -p .claude/skills/skill-name/{scripts,references,assets}
{baseDir}scripts/references/assets/chmod +x scripts/*.sh.claude/skills/ directory{baseDir}This skill includes a validation script:
Python script for validating skill directories.
Usage:
python3 {baseDir}/scripts/validate-skill.py <skill-directory/>
What It Checks:
{baseDir} usage in referencesReturns:
Example:
python3 validate-skill.py .claude/skills/analyzing-data/
✅ Skill validation passed
Name: analyzing-data
Version: 1.0.0
Allowed tools: Read, Grep, Glob, Bash
Has scripts: yes (2 files)
Has references: yes (1 file)
When creating skills:
---
name: analyzing-csv-data
description: Expert at analyzing CSV and tabular data files. Use when the user wants to load, analyze, summarize, or transform CSV data.
version: 1.0.0
allowed-tools: Read, Grep, Glob, Bash
---
Resources:
scripts/csv_analyzer.py - Pandas-based analysisreferences/pandas-api.md - API documentationassets/analysis-template.json - Output template---
name: generating-api-endpoints
description: Specialized in generating REST API endpoints following best practices. Use when creating new API routes, handlers, or RESTful services.
version: 1.0.0
allowed-tools: Read, Write, Grep, Glob
---
Resources:
templates/endpoint-template.ts - TypeScript templatereferences/rest-api-guide.md - API design guidereferences/openapi-spec.md - OpenAPI specification---
name: writing-unit-tests
description: Expert test writer for unit tests, integration tests, and test fixtures. Use when creating or improving test coverage.
version: 1.0.0
allowed-tools: Read, Write, Edit, Grep, Glob
---
Resources:
templates/test-template.py - pytest templatereferences/testing-guide.md - Testing best practicesscripts/generate_mocks.py - Mock generator---
name: writing-api-documentation
description: Technical writer specializing in API documentation, JSDoc, docstrings, and OpenAPI specs. Use when documenting code or APIs.
version: 1.0.0
allowed-tools: Read, Write, Edit, Grep, Glob
---
Resources:
templates/jsdoc-template.js - JSDoc templatetemplates/openapi.yaml - OpenAPI templatereferences/documentation-style-guide.md - Style guideThe description field is CRITICAL for auto-invocation. It must be:
Specific about triggers:
# Good
description: Expert at analyzing CSV files. Use when the user wants to load, analyze, or transform CSV data.
# Bad
description: Data analysis expert
Action-oriented:
# Good
description: Generates comprehensive unit tests. Use when creating tests, improving coverage, or writing test fixtures.
# Bad
description: Helps with testing
Clear about domain:
# Good
description: REST API design specialist. Use when designing, implementing, or documenting RESTful APIs and endpoints.
# Bad
description: API expert
Before finalizing a skill, verify:
{baseDir} variable correctlyFull templates and examples are available at:
{baseDir}/templates/skill-template.md - Basic skill template{baseDir}/references/skill-examples.md - Real-world examplesSkills need ongoing maintenance to stay effective.
Skills cannot have a model: field. This is the most common error.
model: field in SKILL.md, remove itUpdate skills when:
When reviewing skills for updates:
model: (CRITICAL)building-*, analyzing-* formatchmod +x permissionsProblem: Skill has model: field in SKILL.md (invalid)
Solution: Remove the model: line from YAML frontmatter entirely
Problem: Claude doesn't invoke skill when expected Solution: Update description to be more specific about triggers:
# Before
description: Data analysis expert
# After
description: Expert at analyzing CSV files. Auto-invokes when the user wants to load, analyze, or transform CSV data.
Problem: Helper scripts fail to execute Solution: Ensure scripts are executable and use correct paths:
chmod +x .claude/skills/my-skill/scripts/*.sh
chmod +x .claude/skills/my-skill/scripts/*.py
Clear Auto-Invocation
Gerund Form Naming
building-*, analyzing-*, creating-*Resource Management
{baseDir} for all resource pathsscripts/, references/, assets/Security
allowed-toolsWhen the user asks to create a skill:
Be proactive in:
Your goal is to help users create powerful, automatically-activated skills that seamlessly enhance Claude's capabilities.
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 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 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.