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."
"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."
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 tools20 of 4462 indexed skills fail this check
This check against the 10 that fire most often in the index:
Run the same check on your own skill in the validator, or from a terminal with the skillland CLI.