Last Updated: March 2, 2026
Frontmatter Fields
Skills are defined in.claude/skills/<name>/SKILL.md with optional YAML frontmatter.
Display name and
/slash-command identifier. Defaults to the directory name if omittedWhat the skill does. Shown in autocomplete and used by Claude for auto-discovery
Hint shown during autocomplete (e.g.,
[issue-number], [filename])Set
true to prevent Claude from automatically invoking this skillSet
false to hide from the / menu — skill becomes background knowledge only, intended for agent preloadingTools allowed without permission prompts when this skill is active
Model to use when this skill runs (e.g.,
haiku, sonnet, opus)Set to
fork to run the skill in an isolated subagent contextSubagent type when
context: fork is set (default: general-purpose)Lifecycle hooks scoped to this skill
Two Skill Patterns
Skill
Loading: On-demandInvocation:
/skill-name or Skill(skill: "name") toolUse Case: Standalone reusable workflows invoked by commands or ClaudeAgent Skill
Loading: Preloaded at agent startup via
skills: fieldInvocation: Automatic — full content injected into agent contextUse Case: Domain knowledge or procedures baked into a specific agentString Substitutions
Available inside skill markdown for dynamic values:| Variable | Description |
|---|---|
$ARGUMENTS | All arguments passed when invoking the skill |
$ARGUMENTS[N] | Access a specific argument by 0-based index |
$N | Shorthand for $ARGUMENTS[N] (e.g., $0, $1) |
${CLAUDE_SESSION_ID} | Current session identifier |
!`command` | Dynamic context injection — shell command output replaces the placeholder before Claude sees it |
Invocation
- Direct
- Programmatic
- Agent Preload
- Subdirectories
Example: Minimal Skill
Example: Minimal Agent Skill
A skill preloaded into an agent as background knowledge — hidden from the/ menu:
Agent skills with
user-invocable: false are invisible to the user but available to the agent that preloads them.Example: Full-Featured Skill (All Fields)
Scope and Priority
When multiple skills share the same name, the higher-priority location wins:| Location | Scope | Priority |
|---|---|---|
Project (.claude/skills/) | This project only | 1 (highest) |
Personal (~/.claude/skills/) | All your projects | 2 |
Plugin (<plugin>/skills/) | Where plugin is enabled | 3 (lowest) |
Skills Workflow Example
The Command → Agent → Skill architecture demonstrates both patterns:Two patterns in action: agent skills (preloaded via
skills: field) vs skills (invoked via Skill tool).Sources
Claude Code Skills
Official skills documentation
Skills Discovery in Monorepos
How skills are discovered in large projects
CHANGELOG
Latest updates and features
