3.2 YAML Frontmatter
YAML Frontmatter
The metadata that controls skill discovery
At the top of every SKILL.md, you place YAML frontmatter — metadata that tells Claude about your Skill before it reads the full instructions.
Frontmatter Structure
--- name: my-skill description: Generate weekly reports from data. Use when user asks "create report", "weekly summary" or "status update". triggers: - "create report" - "generate analysis" ---
Field Reference
name
Identifies the Skill. Use kebab-case, 2-4 words. Must be unique across all your skills.
description
Claude's first impression — it reads this to decide whether to activate the Skill. Make it clear and specific.
triggers
Common phrases that should activate the Skill. Include variations users actually type.
Elevator Pitch Rule
Your description is like an elevator pitch. 'Generate weekly sales reports from CSV data' is much better than 'processes reports.' Be specific about what, when, and how.
Advanced Frontmatter Fields
| Field | Purpose | Example |
|---|---|---|
| name | Unique identifier | weekly-report |
| description | When and what | Generate reports from... |
| triggers | Activation phrases | create report, summary |
Frontmatter Principle
The YAML frontmatter is the discovery layer. Claude reads it first, before loading the full instructions. A well-written frontmatter means your Skill activates when needed and stays quiet when not.
Metadata, která řeknou Claudovi o vašem Skillu.
There are no comments for now.