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

Strict spec conformance

Non-conformant. The official reference validator (skills-ref) rejects this — tested directly, not inferred from severity.

This is a separate question from the severity above and from which runtimes enforce it below — a rule can be a real, working extension in its home runtime while the reference validator still rejects the file outright, or vice versa. Both facts are reported, never one inferred from the other.

Which runtimes enforce it

RuntimeEffectNote
Claude CodeNot documentedNot documented for this runtime — we hold no runtime-specific evidence either way.
CodexNot documentedNot documented for this runtime — we hold no runtime-specific evidence either way.
CursorNot documentedNot documented for this runtime — we hold no runtime-specific evidence either way.
OpenClawNot documentedNot documented for this runtime — we hold no runtime-specific evidence either way.
Hermes AgentNot documentedNot documented for this runtime — we hold no runtime-specific evidence either way.

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