Skip to content

Skills Best Practice

Last Updated: Apr 04, 2026 | Claude Code v2.1.92

Claude Code skills -- frontmatter fields and official bundled skills.

Frontmatter Fields (13)

FieldTypeRequiredDescription
namestringNoDisplay name and /slash-command identifier. Defaults to the directory name if omitted
descriptionstringRecommendedWhat the skill does. Shown in autocomplete and used by Claude for auto-discovery
argument-hintstringNoHint shown during autocomplete (e.g., [issue-number], [filename])
disable-model-invocationbooleanNoSet true to prevent Claude from automatically invoking this skill
user-invocablebooleanNoSet false to hide from the / menu -- skill becomes background knowledge only, intended for agent preloading
allowed-toolsstringNoTools allowed without permission prompts when this skill is active
modelstringNoModel to use when this skill runs (e.g., haiku, sonnet, opus)
effortstringNoOverride the model effort level when invoked (low, medium, high, max)
contextstringNoSet to fork to run the skill in an isolated subagent context
agentstringNoSubagent type when context: fork is set (default: general-purpose)
hooksobjectNoLifecycle hooks scoped to this skill
pathsstring/listNoGlob patterns that limit when the skill auto-activates. Accepts a comma-separated string or YAML list -- Claude loads the skill only when working with matching files
shellstringNoShell for !`command` blocks -- bash (default) or powershell. Requires CLAUDE_CODE_USE_POWERSHELL_TOOL=1

Official Bundled Skills (5)

#SkillDescription
1simplifyReview changed code for reuse, quality, and efficiency -- refactors to eliminate duplication
2batchRun commands across multiple files in bulk
3debugDebug failing commands or code issues
4loopRun a prompt or slash command on a recurring interval (up to 3 days)
5claude-apiBuild apps with the Claude API or Anthropic SDK -- triggers on anthropic / @anthropic-ai/sdk imports

TIP

See the Official Skills Repository for community-maintained installable skills.

Sources