roocommander
Version:
Bridge Claude Code skills to Roo Code with intelligent orchestration. CLI tool + Custom Mode + 60+ production-tested skills for Cloudflare, AI, Frontend development.
35 lines • 1.29 kB
TypeScript
/**
* YAML Frontmatter Parser
*
* Wraps gray-matter library to extract YAML frontmatter from markdown files.
* Provides error handling and validation for skill files.
*/
import { ParsedFrontmatter } from './types.js';
/**
* Parse YAML frontmatter from a markdown file
*
* @param filePath - Absolute path to markdown file
* @returns Parsed frontmatter data and content
* @throws SkillParseError if file can't be read or YAML is malformed
*/
export declare function parseFrontmatter(filePath: string): Promise<ParsedFrontmatter>;
/**
* Extract keywords from description text
*
* Looks for "Keywords:" line in description and extracts comma-separated values.
* Example: "Keywords: react, typescript, vite" → ["react", "typescript", "vite"]
*
* @param description - Full description text
* @returns Array of keywords (empty if not found)
*/
export declare function extractKeywords(description: string): string[];
/**
* Extract "Use when:" section from description
*
* Extracts text after "Use when:" up to next section or end of paragraph.
*
* @param description - Full description text
* @returns "Use when" text, or undefined if not found
*/
export declare function extractUseWhen(description: string): string | undefined;
//# sourceMappingURL=yaml-parser.d.ts.map