/** * SKILL.md Parser * * Parses SKILL.md files containing YAML frontmatter and Markdown body. * Used by SkillService and SkillCatalogService to load skill definitions * from the new SKILL.md format (replacing skill.json + instructions.md). * * @module utils/skill-md-parser */ /** * Result of parsing a SKILL.md file. */ export interface SkillMdParseResult { /** Parsed YAML frontmatter as a plain object */ frontmatter: Record; /** Markdown body content after the frontmatter */ body: string; } /** * Parse a SKILL.md file's content into frontmatter and body. * * Expects the format: * ``` * --- * name: Skill Name * description: What it does * ... * --- * * # Markdown body here * ``` * * @param content - Raw content of the SKILL.md file * @returns Parsed frontmatter object and markdown body * @throws Error if frontmatter delimiters are missing or YAML is invalid */ export declare function parseSkillMd(content: string): SkillMdParseResult; //# sourceMappingURL=skill-md-parser.d.ts.map