Claude Code glossary
Frontmatter
Frontmatter is the YAML block at the top of a SKILL.md file that configures the skill's behavior and metadata.
Also called: YAML frontmatter, SKILL.md frontmatter, skill frontmatter fields
Frontmatter is the YAML block delimited by --- at the top of a SKILL.md file. It serves as the configuration for the skill, controlling its metadata and execution behavior.
Key fields within the frontmatter allow for detailed control:
name: The display name for the skill. If omitted, the skill's directory name is used.description: A crucial field explaining what the skill does and its intended use case. If this is missing, the skill falls back to using the first paragraph of the markdown content. This field is load-bearing for automatic invocation.when_to_use: Provides additional context for triggering the skill, appended to thedescription.argument-hint: Offers a hint displayed during autocompletion, such as[issue-number].arguments: Defines named positional arguments that can be used with$namesubstitution.disable-model-invocation: Setting this totrueprevents Claude from automatically invoking the skill.user-invocable: Set tofalseto hide the skill from the/command menu. Note the correct spelling isuser-invocablewith a 'c'.allowed-tools: Specifies tools that can be used without explicit permission while the skill is active.disallowed-tools: Lists tools that are removed from the available pool when the skill is active.model: Determines which model Claude uses while the skill is active.effort: Categorizes the skill's complexity with levels likelow,medium,high,xhigh, ormax.context: Setting this toforkruns the skill in a forked subagent context.agent: Specifies the subagent type to use whencontextis set tofork.hooks: Allows for defining hooks scoped to the skill's lifecycle.paths: Uses glob patterns to limit when the skill automatically activates.shell: Defines the shell to use, eitherbashorpowershell.
While many fields offer fine-grained control, the description field is particularly important for enabling automatic skill invocation. For example, the Skill Creator skill uses frontmatter to define its name, description, and arguments, guiding users on how to build new skills.