Cheat sheet
SKILL.md template and frontmatter cheat sheet
A copy-ready SKILL.md template with frontmatter and body, the six frontmatter fields in the Agent Skills spec with their limits, and the YAML mistakes to avoid.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
A SKILL.md file is the one required file in an Agent Skill: YAML frontmatter between two --- lines, then Markdown instructions. Copy the template below into <skill-name>/SKILL.md, rename the folder and name to match, rewrite the description and steps, and validate it before you share it. Only name and description are required.
Copy-ready SKILL.md template
Save this as release-notes/SKILL.md. Every line is valid as it stands, so you can install it, try it, then edit.
---
name: release-notes
description: Drafts release notes from merged pull requests since the last tag. Use when the user asks for release notes, a changelog entry or what changed since the last release.
---
# Release notes
## When to use
Use this skill when someone asks what changed since the last release, or asks for release notes or a changelog entry.
## Steps
1. Find the last tag with `git describe --tags --abbrev=0`.
2. List merged pull requests since that tag with `git log <tag>..HEAD --merges --oneline`.
3. Group them under Added, Changed, Fixed and Removed.
4. Write one line per change in the past tense, for users rather than developers.
5. Show the draft and ask before writing it to CHANGELOG.md.
## Example
Input: three merged pull requests (a new export button, a fixed login redirect, a removed beta flag).
Output:
### Added
- Export to CSV from the reports page.
### Fixed
- Signing in now returns you to the page you started on.
### Removed
- The old beta toggle in settings.
## Edge cases
- No tags yet: use the first commit and say so in the draft.
- A pull request with no clear user-facing change: leave it out and list it at the end for review.
Frontmatter with every optional field
---
name: release-notes
description: Drafts release notes from merged pull requests since the last tag. Use when the user asks for release notes or a changelog entry.
license: MIT
compatibility: Requires git and the GitHub CLI (gh).
metadata:
author: platform-team
version: "1.0"
allowed-tools: Bash(git log:*) Read
---
Leave out the optional fields unless you need them. The SKILL.md format reference explains each field in full, and writing your first skill walks through building one from scratch.
Frontmatter fields and limits
| Field | Required | Limit and rules |
|---|---|---|
name |
Yes | 1 to 64 characters. Lowercase a-z, 0-9 and - only. No leading, trailing or double hyphen. Must match the folder name. |
description |
Yes | 1 to 1,024 characters. Say what it does and when to use it. |
license |
No | A licence name or the name of a bundled licence file. |
compatibility |
No | 1 to 500 characters. Only for real environment needs (packages, network). |
metadata |
No | Map of string keys to string values. |
allowed-tools |
No | Space-separated pre-approved tools. Experimental: support varies by agent. |
The description decides whether an agent ever loads the skill, so it deserves the most care. See writing skill descriptions that trigger for patterns that work, and the glossary entry on allowed-tools for how agents treat that field.
Body sections
The spec puts no format rules on the body. It recommends these three; the others are common in well-reviewed skills.
| Section | What goes in it |
|---|---|
| Steps | Numbered actions the agent follows, with the exact commands (recommended by the spec) |
| Examples | One input and the output you expect from it (recommended by the spec) |
| Edge cases | What to do when the normal path does not apply (recommended by the spec) |
| When to use | The situations that should trigger the skill, in more detail than the description |
| Ask first | Actions that need the user’s go-ahead, such as writing files or pushing |
Descriptions: weak and strong
| Weak | Stronger |
|---|---|
Helps with PDFs. |
Extracts text and tables from PDF files and fills PDF forms. Use when the user mentions PDFs, forms or document extraction. |
Release notes skill. |
Drafts release notes from merged pull requests since the last tag. Use when asked for release notes or a changelog entry. |
Use for testing. |
Writes Playwright tests for a page from its URL. Use when asked to add end-to-end or browser tests. |
Say what it does, then when to use it, with the words a user would type.
Folder layout
release-notes/
├── SKILL.md # required
├── scripts/ # code the agent runs
├── references/ # docs the agent reads when needed
└── assets/ # templates and data files
Size limits
- Name and description load for every installed skill, about 100 tokens each.
- Keep the
SKILL.mdbody under 500 lines and about 5,000 tokens. - Link reference files one level deep from
SKILL.md, with relative paths.
Mistakes that break loading
| Mistake | Fix |
|---|---|
version: 1.0 under metadata |
Quote it: version: "1.0". Metadata values are strings. |
description: Use when: ... |
A colon followed by a space needs quotes or a block scalar (>). |
name: PDF_Tools |
Lowercase and hyphens: pdf-tools. |
Folder pdf/, name pdf-tools |
Rename one so they match. |
File named skill.md |
Use SKILL.md. |
Validate the file
skills-ref validate ./release-notes
skills-ref is the spec’s reference validator. Install it from the spec repository before running this. To check a file in the browser instead, paste it into the SKILL.md validator and builder. For more skills to learn from, browse the Agent Skills directory.
Check your understanding
SKILL.md frontmatter quiz
Required fields, name and description limits, optional fields, the folder layout, size budgets and the YAML mistakes that stop a skill loading.
6 questions · pass mark 70%
Review
Checked against
Related
- SKILL.md format reference
Every SKILL.md frontmatter field in the Agent Skills spec, the extra fields each agent adds, size budgets, folder layout and the mistakes that stop loading.
- How to create a Claude skill (Agent Skill) from scratch
Create a Claude skill in ~/.claude/skills: write a SKILL.md with a description that triggers, add a script, test it, then make it work in other agents too.
- SKILL.md
The required file in an Agent Skill: YAML frontmatter with at least a name and description, followed by the Markdown instructions.
- Skill description best practices: write descriptions that trigger
The description decides when a skill loads. Fix skills that fire too often or never trigger, with before and after examples and a prompt set to test them.