Agent skill
skill-development
This skill should be used when the user asks to "create a skill", "add a skill to a plugin", "write SKILL.md", "organize skill content", "improve skill description", "set up progressive disclosure", "add references to a skill", "write skill frontmatter", or needs guidance on skill structure, progressive disclosure, writing style, or skill development best practices for Claude Code plugins.
Install this agent skill to your Project
npx add-skill https://github.com/JosiahSiegel/claude-plugin-marketplace/tree/main/plugins/plugin-master/skills/skill-development
SKILL.md
Skill Development for Claude Code Plugins
Overview
Skills are modular knowledge packages that extend Claude's capabilities with specialized workflows, domain expertise, and bundled resources. They transform Claude from a general-purpose agent into a specialized expert.
Skills use progressive disclosure - a three-level loading system that manages context efficiently:
- Metadata (name + description) - Always in context (~100 words)
- SKILL.md body - Loaded when skill triggers (~1,500-2,000 words)
- Bundled resources - Loaded as needed by Claude (unlimited)
Skill Structure
skill-name/
├── SKILL.md # Required: Core instructions
├── references/ # Optional: Detailed documentation
│ ├── patterns.md # Loaded when Claude needs detail
│ └── advanced.md
├── examples/ # Optional: Working code examples
│ └── example.sh # Users can copy and adapt
├── scripts/ # Optional: Executable utilities
│ └── validate.sh # Token-efficient, deterministic
└── assets/ # Optional: Output resources
└── template.html # Used in output, not loaded into context
Only create directories you actually need. A minimal skill is just SKILL.md.
SKILL.md Format
Frontmatter (Required)
---
name: skill-name
description: |
This skill should be used when the user asks to "specific phrase 1",
"specific phrase 2", "specific phrase 3". Include exact phrases users
would say that should trigger this skill.
---
Description rules:
- Use third person: "This skill should be used when..." (NOT "Use this skill when...")
- Include specific trigger phrases users would actually say
- Be concrete: "create a hook", "add a PreToolUse hook" (NOT "helps with hooks")
- List multiple trigger phrases to maximize activation
- Keep under 500 characters — rely on keywords in plugin.json for breadth
Good example:
description: |
This skill should be used when the user asks to "create a hook",
"add a PreToolUse hook", "validate tool use", or mentions hook events
(PreToolUse, PostToolUse, Stop). Provides hook development guidance.
Bad examples:
description: Use this skill when working with hooks. # Wrong person, vague
description: Provides hook guidance. # No trigger phrases
description: Load when user needs hook help. # Not third person
Body - Writing Style
Write the entire skill body using imperative/infinitive form (verb-first instructions):
Correct (imperative):
To create a hook, define the event type.
Configure the MCP server with authentication.
Validate settings before use.
Start by reading the configuration file.
Incorrect (second person):
You should create a hook by defining the event type.
You need to configure the MCP server.
You can use the grep tool to search.
Body - Structure
# Skill Title
## Overview
[Purpose and when to use - 2-3 sentences]
## Quick Reference
[Tables with key facts, common values, or patterns]
## Core Content
[Essential procedures and workflows - the main value]
## Additional Resources
### Reference Files
- **`references/patterns.md`** - Common patterns
- **`references/advanced.md`** - Advanced techniques
### Example Files
- **`examples/example.sh`** - Working example
Body - Size Guidelines
| Target | Words |
|---|---|
| Ideal | 1,500-2,000 |
| Maximum | 3,000 (without references/) or 5,000 (absolute max) |
If SKILL.md exceeds 2,000 words, move detailed content to references/ files.
Resource Types
references/ - Documentation loaded as needed
- Detailed patterns, advanced techniques, API docs, migration guides
- Keeps SKILL.md lean while making information discoverable
- Each file can be 2,000-5,000+ words
- For large files (>10k words), include grep search patterns in SKILL.md
- Avoid duplication: information lives in SKILL.md OR references/, not both
examples/ - Working code users can copy
- Complete, runnable scripts and configuration files
- Template files and real-world usage examples
scripts/ - Executable utilities
- Validation tools, testing helpers, automation scripts
- Token-efficient (executed without loading into context)
- Should be executable and documented
assets/ - Output resources (not loaded into context)
- Templates, images, icons, boilerplate code, fonts
- Used within the output Claude produces, not for Claude to read
Skill Creation Process
Step 1: Understand Use Cases
Identify concrete examples of how the skill will be used. Ask:
- What functionality should this skill support?
- What would a user say that should trigger this skill?
- What tasks does this skill help with?
Step 2: Plan Resources
Analyze each use case to identify what reusable resources would help:
- Scripts: Code that gets rewritten repeatedly →
scripts/ - References: Documentation Claude should consult →
references/ - Assets: Files used in output →
assets/ - Examples: Working code to copy →
examples/
Step 3: Create Structure
mkdir -p plugin-name/skills/skill-name/{references,examples,scripts}
touch plugin-name/skills/skill-name/SKILL.md
Only create directories you actually need.
Step 4: Write Content
- Start with reusable resources (scripts/, references/, assets/)
- Write SKILL.md:
- Frontmatter with third-person description and trigger phrases
- Lean body (1,500-2,000 words) in imperative form
- Reference supporting files explicitly
Step 5: Validate
- SKILL.md has valid YAML frontmatter with
nameanddescription - Description uses third person ("This skill should be used when...")
- Description includes specific trigger phrases
- Body uses imperative/infinitive form (not second person)
- Body is lean (1,500-2,000 words; detailed content in references/)
- All referenced files actually exist
- No duplicated information between SKILL.md and references/
- Examples are complete and working
- Scripts are executable
Step 6: Iterate
After using the skill on real tasks:
- Notice struggles or inefficiencies
- Strengthen trigger phrases in description
- Move long sections from SKILL.md to references/
- Add missing examples or scripts
- Clarify ambiguous instructions
Common Mistakes
| Mistake | Fix |
|---|---|
| Weak trigger description ("Provides guidance") | Add specific phrases: "create X", "configure Y" |
| Everything in one SKILL.md (8,000 words) | Move details to references/, keep SKILL.md under 2,000 |
| Second person ("You should...") | Imperative form ("Configure the server...") |
| Missing resource references | Add "Additional Resources" section listing references/ and examples/ |
| Duplicated content across files | Put info in SKILL.md OR references/, never both |
| Same block copied into multiple SKILL.md files | Cross-cutting content (platform guidelines, etc.) belongs in the agent body or one shared reference — NEVER copied into each skill |
| Wrong person in description | Third person: "This skill should be used when..." |
| Description too long (>500 chars) | Condense description; use plugin.json keywords for breadth |
| Agent body duplicates skill content | Agent is a lean orchestrator — domain knowledge belongs in skills only |
| Skill body too large (>3,000 words) | Split into core SKILL.md + references/ files |
Auto-Discovery
Claude Code automatically discovers skills:
- Scans
skills/directory for subdirectories containingSKILL.md - Loads metadata (name + description) at startup
- Loads SKILL.md body when skill triggers based on description match
- Loads references/examples when Claude determines they're needed
No configuration needed - just place SKILL.md in the right location.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
opentofu-guide
Comprehensive OpenTofu expertise including migration from Terraform, state encryption, OpenTofu 1.10/1.11 features (OCI registry, native S3 locking, ephemeral resources, enabled meta-argument), and CI/CD integration. Covers when to use OpenTofu vs Terraform with decision matrix.
terraform-tasks
Specialized Terraform task execution skill for autonomous infrastructure operations. Handles code generation, debugging, version management (1.10-1.14+), security scanning, and architecture design across all providers (AWS 6.0, AzureRM 4.x, GCP) and platforms. Covers ephemeral values, Terraform Stacks, policy-as-code, and 2025 best practices.
shellcheck-cicd-2025
ShellCheck validation as non-negotiable 2025 workflow practice
bash-master
Expert bash/shell scripting system across ALL platforms. PROACTIVELY activate for: (1) ANY bash/shell script task, (2) System automation, (3) DevOps/CI/CD scripts, (4) Build/deployment automation, (5) Script review/debugging, (6) Converting commands to scripts. Provides: Google Shell Style Guide compliance, ShellCheck validation, cross-platform compatibility (Linux/macOS/Windows/containers), POSIX compliance, security hardening, error handling, performance optimization, testing with BATS, and production-ready patterns. Ensures professional-grade, secure, portable scripts every time.
process-substitution-fifos
Process substitution, named pipes (FIFOs), and advanced IPC patterns for efficient bash data streaming (2025)
modern-automation-patterns
Modern DevOps and CI/CD automation patterns with containers and cloud (2025)
Didn't find tool you were looking for?