/** * Skills Manager - Loads and manages Anthropic Agent Skills * * Skills are SKILL.md markdown files in ~/.ncp/skills// * Each skill contains metadata in YAML frontmatter and prompts for Claude * * This aligns with Anthropic's official skills format from: * https://github.com/anthropics/skills */ export interface SkillMetadata { name: string; description: string; version?: string; author?: string; license?: string; tags?: string[]; tools?: string[]; plugin?: string; } export interface LoadedSkill { metadata: SkillMetadata; content: string; path: string; directory: string; } export declare class SkillsManager { private skillsDir; private loadedSkills; constructor(); /** * Initialize skills directory structure */ initialize(): Promise; /** * Discover and load all skills from ~/.ncp/skills/ * Each skill is in its own directory with a SKILL.md file */ loadAllSkills(): Promise; /** * Load a single skill from its directory * Expects: ~/.ncp/skills//SKILL.md */ loadSkill(skillDirName: string): Promise; /** * Parse SKILL.md YAML frontmatter using js-yaml library * Format: * --- * name: skill-name * description: Description text * version: 1.0.0 * tags: * - tag1 * - tag2 * --- */ private parseSkillMetadata; /** * Get all loaded skills */ getLoadedSkills(): LoadedSkill[]; /** * Get a specific skill by name */ getSkill(name: string): LoadedSkill | undefined; /** * Get skill content for inclusion in prompts * This is how skills work - they're injected into Claude's context */ getSkillPrompt(skillName: string): string | null; /** * List all available skills with their tools */ listSkills(): Array<{ name: string; description: string; plugin?: string; }>; /** * Remove a skill */ removeSkill(skillName: string): Promise; /** * Install a skill from a SKILL.md file * This creates the directory structure expected by loadSkill() */ installSkillFromFile(sourcePath: string, skillName?: string): Promise; /** * Get all tool names across all loaded skills * Note: Anthropic skills don't provide executable tools, * they provide context/prompts that enhance Claude's capabilities */ getAllSkillTools(): string[]; } //# sourceMappingURL=skills-manager.d.ts.map