Skip to content

What is a SKILL.md file?

By the Toolbay team · Checked against the sources below on

SKILL.md is the main file of an agent skill. It starts with YAML frontmatter holding at least a name and a description, followed by Markdown instructions. The agent reads only the name and description until a task matches, then loads the full instructions. Claude Code, Cursor and Codex all read the format.

Example

release-notes/SKILL.md
---
name: release-notes
description: Writes release notes from merged pull requests. Use when the user asks for release notes or a changelog entry.
---

1. List merged PRs since the last tag with `git log --merges`.
2. Group them as Added, Changed and Fixed.
3. Write one plain line per change.

How it differs from similar files

  • CLAUDE.md and AGENTS.md load at the start of every session. A SKILL.md loads only when it is needed.
  • A Cursor .mdc rule is Cursor-only. A SKILL.md folder works across agents.
  • An MCP server gives the agent new tools. A skill gives it instructions (and optional scripts).

The open specification at agentskills.io sets the rules: name is 1-64 lowercase letters, digits and hyphens and must match the folder name; description is up to 1,024 characters.