metadata maps keys to plain values

metadata must be a map whose values are strings, not lists or nested maps.

WarningFails on 340 of 4462 indexed skills
share

Tools expect metadata to be flat text pairs

The optional metadata field is for extra facts about the skill, such as an author or a version. The specification defines it as a map from text keys to text values, nothing deeper.

A list or a nested map may look tidier, but tools that follow the specification expect plain text. They either drop the value or reject the frontmatter.

"A map from string keys to string values"
Agent Skills specification: metadata field

Flatten the values

Join lists into one string and move nested keys up a level.

This fails:

metadata:
  tags: [git, review]
  author:
    name: Ada

This passes:

metadata:
  tags: "git, review"
  author: Ada