Starts with a frontmatter block

SKILL.md has to open with a --- block that holds at least name and description.

ErrorFails on 20 of 4462 indexed skills
share

Without frontmatter the skill has no name and no description

An agent does not read every skill in full when a session starts. It reads only the small block at the top of each SKILL.md, the frontmatter, to learn the skill's name and what it is for. Everything else waits until a request matches.

A file that opens with a heading or a paragraph has no such block. The agent has nothing to list and nothing to match a request against, so the skill never triggers on its own. Claude Code is explicit about it: it reads the frontmatter only when the opening --- is the very first line of the file. Anything else, a blank line or a title above it, and the whole file is treated as plain content.

"The SKILL.md file must contain YAML frontmatter followed by Markdown content."
Agent Skills specification: SKILL.md format
"Claude Code reads the frontmatter only when the opening --- is the file's first line. Otherwise it treats the whole file, --- markers included, as skill content."
Claude Code: frontmatter reference

Put name and description between two --- lines at the top

Add the block as the first lines of the file, before any heading. It needs at least a name and a description.

This fails:

# PDF tools

Extract text from PDF files.

This passes:

---
name: pdf-tools
description: Extracts text from PDF files. Use when the user shares a PDF.
---

# PDF tools