/** * Skill Loader — loads and validates skills from multiple sources * * Implements agentskills.io specification with proper YAML parsing and Zod validation. * * @see https://agentskills.io/specification */ import { SkillDefinition, ParsedSkill, SkillSummary } from './types.js'; /** * Parse YAML frontmatter from SKILL.md content */ export declare function parseSkillContent(content: string): ParsedSkill & { error?: string; }; /** * Extract ONLY metadata from SKILL.md without parsing body/sections. * * Optimized for matimo_list_skills — reads YAML frontmatter only. * This avoids the overhead of parsing sections and body content. * * Returns SkillSummary: name, description, version, license, metadata, source. */ export declare function extractSkillMetadata(content: string, source?: 'builtin' | 'user' | 'catalog'): { success: boolean; metadata?: SkillSummary; error?: string; }; /** * SkillLoader reads and validates skills from directories */ export declare class SkillLoader { private logger; /** * Load all skills from a directory */ loadSkillsFromDirectory(skillsDir: string, source?: 'builtin' | 'user' | 'catalog'): SkillDefinition[]; /** * Load a single skill by name */ loadSkill(name: string, skillsDir: string, source?: 'builtin' | 'user' | 'catalog'): SkillDefinition | null; /** * Load a skill resource file (scripts/, references/, assets/) */ loadSkillResource(skillName: string, skillsDir: string, resourcePath: string): string; } //# sourceMappingURL=skill-loader.d.ts.map