Frontmatter is valid YAML

The text between the --- lines has to parse as a YAML map.

ErrorFails on 52 of 4462 indexed skills
share

Broken YAML leaves the skill with no description to match

The frontmatter is YAML, and YAML is strict. The most common mistake is a colon inside a value: in "Fixes bugs: finds the cause first", YAML sees a second key and gives up on the whole block.

What happens next depends on the agent. Claude Code still loads the file, but with empty metadata. The skill runs when you type its slash command, but Claude never picks it on its own, because it has no description to compare with the request. Cursor's Cloud Agents show a warning that names the skill. The specification's reference validator rejects the file outright.

So the skill looks installed and seems to work when you test it by hand, while it never triggers for anyone else.

"If the frontmatter YAML is malformed, Claude Code loads the skill body with empty metadata, so /skill-name still works but Claude can't match against your description."
Claude Code: skill not triggering
"… whose SKILL.md can't be read, has frontmatter that doesn't parse, or has no description shows a warning in the run that names the skill."
Cursor: Agent Skills, frontmatter fields
"Invalid YAML in frontmatter"
skills-ref, the spec's reference validator
"Codex, Copilot CLI, OpenClaw and OpenCode parse front matter strictly."
NVIDIA SkillEvaluator: Harness Check, fix what it finds

Quote any value that contains a colon

Wrap a value in double quotes when it contains a colon followed by a space, starts with a special character, or runs over several lines. Check that every key starts at the same indent.

This fails:

---
name: bug-fixer
description: Fixes bugs: finds the cause first
---

This passes:

---
name: bug-fixer
description: "Fixes bugs: finds the cause first. Use when a test fails."
---