Skip to main content

parse_frontmatter

Function parse_frontmatter 

Source
pub fn parse_frontmatter(content: &str) -> (Option<AnthropicFrontmatter>, &str)
Expand description

Parse YAML frontmatter from SKILL.md content.

Returns (Some(frontmatter), body) if --- delimiters found and YAML parses, or (None, original_content) on any failure (graceful fallback).