AgentSkills.site

SKM-F04 · Error

Frontmatter parses, but isn't a mapping

The frontmatter must be a YAML mapping (`key: value` pairs) at the top level, not a list or a scalar.

What the rule is

The frontmatter parsed as valid YAML, but the result isn't a mapping (key: value pairs) at the top level — it parsed as a list, a single string, or an empty document instead.

`name` and `description` are read as top-level mapping keys. If the frontmatter's root isn't a mapping, there's nothing for a runtime to read those keys from, regardless of what content follows.

Where it comes from

Which runtimes enforce it

RuntimeEffectNote
Claude CodeBreaks the skill`name` and `description` are read as top-level mapping keys — nothing resolves if the root isn't a mapping.
CodexBreaks the skill`name` and `description` are read as top-level mapping keys — nothing resolves if the root isn't a mapping.
CursorBreaks the skill`name` and `description` are read as top-level mapping keys — nothing resolves if the root isn't a mapping.
OpenClawBreaks the skill`name` and `description` are read as top-level mapping keys — nothing resolves if the root isn't a mapping.
Hermes AgentBreaks the skill`name` and `description` are read as top-level mapping keys — nothing resolves if the root isn't a mapping.

How to fix it

  • Rewrite the frontmatter as `key: value` pairs, one per line, with `name` and `description` as top-level keys — not a list (`- item`) and not a single scalar value.

Elsewhere