Skip to Content

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

YAML Frontmatter
---
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

FieldPurposeExample
nameUnique identifierweekly-report
descriptionWhen and whatGenerate reports from...
triggersActivation phrasescreate 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.

Rating
0 0

There are no comments for now.

to be the first to leave a comment.