Last Updated: March 2, 2026
Frontmatter Fields
Skills are defined in.claude/skills/<name>/SKILL.md with optional YAML frontmatter.
string
Display name and
/slash-command identifier. Defaults to the directory name if omittedstring
What the skill does. Shown in autocomplete and used by Claude for auto-discovery
string
Hint shown during autocomplete (e.g.,
[issue-number], [filename])boolean
Set
true to prevent Claude from automatically invoking this skillboolean
Set
false to hide from the / menu — skill becomes background knowledge only, intended for agent preloadingstring
Tools allowed without permission prompts when this skill is active
string
Model to use when this skill runs (e.g.,
haiku, sonnet, opus)string
Set to
fork to run the skill in an isolated subagent contextstring
Subagent type when
context: fork is set (default: general-purpose)object
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: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:Skills Workflow Example
The Command → Agent → Skill architecture demonstrates both patterns:1
Command Entry Point
/weather-orchestrator command asks user for C/F preference2
Agent Invocation
Command invokes
weather-agent subagent via Task tool3
Agent Skill (Preloaded)
Agent uses preloaded
weather-fetcher skill to fetch temperature from API4
Skill Invocation
Command invokes
weather-svg-creator skill to create visual outputTwo 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
