Expand description
Dual-format parser. Canonical YAML is the source of truth; markdown
frontmatter is the human-authoring surface that round-trips via
canonical_from_markdown() / markdown_from_canonical().
Enums§
Functions§
- parse_
canonical - Parse canonical
skill.yaml. - parse_
legacy_ markdown - Parse a legacy skill file — pre-M0 markdown with minimal frontmatter
(just
name+description). Fills in defaults so the file can be loaded by the new pipeline without rewriting it. - parse_
markdown - Parse markdown-frontmatter skill source. Frontmatter (between two
---fences) is YAML; the body becomescontent.abstractplus — if it has a## Stepsheading — a synthesisedcontent.procedure, or otherwise acontent.context. This is the human-authoring surface; canonical YAML remains source of truth on disk. - serialize_
canonical - Serialise a
SkillManifestto canonical YAML. Deterministic field order matches the struct definition. - serialize_
markdown - Render a
SkillManifestback to markdown frontmatter form. The body is derived from the populated content mode:context→ context body,procedure→ “## Steps” list,command→ fenced block. - yaml_
to_ markdown - Convenience: parse canonical YAML, serialise back to markdown.
Used by
ensure_mur_skillso built-in yaml skills produce AI-tool-consumable markdown atSKILL.md.