Shared frontmatter parsing for SKILL.md and AGENT.md files.
Splits a markdown file with YAML frontmatter into its parts and parses the YAML. Used by both the skill parser and the agent definition parser.
YAML is always parsed with atoms: false to prevent atom table
exhaustion from untrusted files.
Summary
Functions
Parses a string containing YAML frontmatter and a markdown body.
Splits content into frontmatter string and body string.
Functions
Parses a string containing YAML frontmatter and a markdown body.
Returns {:ok, yaml_map, body} or {:error, reason}.
Splits content into frontmatter string and body string.
Returns {:ok, frontmatter, body} or {:error, :invalid_frontmatter}.