You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preserve nested OKF fields under SKILL.md metadata #894
A SKILL.md can carry Open Knowledge Format fields only under metadata. That is the slot the Agent Skills spec leaves for extra data, so Claude still loads the skill from name and description and does not skip the file. The names are the OKF names. They are not prefixed.
internal/utils/frontmatter.goParseFrontmatterFields keeps only scalar values. A nested metadata map is dropped. A later reader cannot see type, status, generated, or sources. Putting those keys at the top level is the wrong fix. skills-ref rejects any top-level key outside name, description, license, compatibility, metadata, and allowed-tools, and Claude's discovery only needs the first two.
skills-ref also stringifies a nested mapping, so a green validate is not evidence generated.by survived. Skillshare should keep the mapping.
Desired outcome
Parsing a SKILL.md preserves metadata as a mapping, including nested generated and a sources list. The skill still syncs, lists, and audits. Unknown metadata keys do not fail discovery and do not change name or description.
metadata.type is not the hub index type field. Do not overwrite one with the other.
A skill with no metadata block behaves as it does today.
Surface impact
Parser (ParseFrontmatterFields and any caller that reads SKILL.md frontmatter)
list, hub index, and audit, if they surface frontmatter metadata
Implementation ideas
Return the raw metadata value from the YAML parse instead of dropping non-scalars. Do not stringify generated. Do not require the OKF keys. A vault that still stores only metadata.last_edited keeps working.
The current complete-map parser already preserves nested mappings and lists, and package loading uses it. #901 keeps the scalar projection intact and fixes the legacy readers that can mistake nested fields for root fields. It includes structured-preservation and namespace regressions, global/project CLI coverage, and format documentation. The PR is in draft while review and CI finish.
Activity
salmonumbrella commentedon Nov 14, 2026
The current complete-map parser already preserves nested mappings and lists, and package loading uses it. #901 keeps the scalar projection intact and fixes the legacy readers that can mistake nested fields for root fields. It includes structured-preservation and namespace regressions, global/project CLI coverage, and format documentation. The PR is in draft while review and CI finish.
fix(frontmatter): isolate root identity and hub index tags (runkids#901)