Skip to content

SKILL.md Frontmatter

Skills are defined as SKILL.md files in skill directories. The YAML frontmatter controls the skill's behavior, visibility, and tool access.

Fields

FieldTypeRequiredDescription
namestringyesLowercase with hyphens, max 64 chars, no reserved words (anthropic, claude)
descriptionstringyesMin 10 chars, third-person voice
argument-hintstringnoHint text for skill arguments
disable-model-invocationbooleannoPrevent model from invoking this skill
user-invocablebooleannoWhether users can invoke directly via /skill-name
versionstringnoSemantic version (e.g., 1.0.0)
modelstringnosonnet, opus, haiku, or inherit (valid values)
contextstringnofork, inline, or auto (valid values)
agentstringnoAgent name (required when context: fork)
allowed-toolsstring[]noTool names to allow
disallowed-toolsstring[]noTool names to disallow
tagsstring[]noCategorization tags
dependenciesstring[]noRequired skill dependencies
hooksobjectnoHooks configuration
licensestringnoLicense identifier
compatibilitystringnoCompatibility notes, max 500 chars
metadataobjectnoArbitrary key-value metadata

Cross-field validations:

  • When context is fork, the agent field is required
  • allowed-tools and disallowed-tools are mutually exclusive

Example

yaml
---
name: deploy-staging
description: Deploys the current branch to the staging environment using the project's CI pipeline.
user-invocable: true
version: 1.0.0
model: sonnet
allowed-tools:
  - Bash
  - Read
tags:
  - deployment
  - ci
---