Skip to main content
Last Updated: March 2, 2026
Complete reference for Claude Code skills — skill definitions, frontmatter fields, and invocation patterns.

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 omitted
string
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 skill
boolean
Set false to hide from the / menu — skill becomes background knowledge only, intended for agent preloading
string
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 context
string
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 Claude

Agent 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 agent
Agent skills are preloaded into the agent’s context at startup, making them immediately available without explicit invocation.

String Substitutions

Available inside skill markdown for dynamic values:

Invocation

Invoke directly from the slash command menu with optional arguments.

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.

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 preference
2

Agent Invocation

Command invokes weather-agent subagent via Task tool
3

Agent Skill (Preloaded)

Agent uses preloaded weather-fetcher skill to fetch temperature from API
4

Skill Invocation

Command invokes weather-svg-creator skill to create visual output
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