/** * Skill Engine — Machine-Readable Skill Discovery & Validation * * Parses YAML frontmatter from .claude/commands/*.md skill files, * providing programmatic discovery, dependency validation, and * tier/category filtering. * * Uses regex-based parsing (no js-yaml dependency). */ export type SkillTier = 'any' | '1' | '2' | '3'; export type SkillCategory = 'core-workflow' | 'planning' | 'memory' | 'verification' | 'communication' | 'analysis' | 'system' | 'documentation' | 'infrastructure'; export interface SkillRequirements { env: string[]; integrations: string[]; } export interface SkillManifest { name: string; description: string; tier: SkillTier; category: SkillCategory; autoInvoked: boolean | 'cron'; dependencies: string[]; relatedSkills: string[]; requirements: SkillRequirements; /** Original file path (set by loadSkills) */ filePath?: string; } export interface ValidationResult { valid: boolean; errors: string[]; } /** * Parse a SkillManifest from raw file content. * Returns null if no valid frontmatter is found. */ export declare function parseSkillManifest(content: string): SkillManifest | null; /** * Load all skill manifests from a directory of .md files. */ export declare function loadSkills(skillsDir: string): Promise; /** * Filter skills by tier. Returns skills available at the given tier. * 'any' tier skills are always included. Numeric tiers include skills * at that tier or lower. */ export declare function getSkillsByTier(skills: SkillManifest[], tier: SkillTier): SkillManifest[]; /** * Validate that all skill dependencies and relatedSkills reference * existing skills in the manifest set. */ export declare function validateDependencies(skills: SkillManifest[]): ValidationResult; //# sourceMappingURL=skill-engine.d.ts.map