/** * Skills loader — reads SKILL.md files with YAML frontmatter from disk. * * Skill directory structure: * skills// * SKILL.md — Required. YAML frontmatter (name, description) + markdown body. * tools.json — Optional. { "tools": ["tool_name_1", ...] } * * @module */ /** * Cut a one-line description at a word boundary, with an ellipsis, never * mid-word. Shared by the two skills indexes — the fleet-wide one in the base * prompt (worker.ts) and a session owner's private one (session-manager.ts) — * which sit in the same prompt and must look the same. */ export declare function clipDescription(text: string, max: number): string; export interface Skill { /** Skill name from YAML frontmatter (falls back to directory name). */ name: string; /** Skill description from YAML frontmatter. */ description: string; /** Markdown body (everything after the YAML frontmatter). */ prompt: string; /** Tool names declared in tools.json (empty if no tools.json). */ toolNames: string[]; /** Absolute path to the skill directory. */ dir: string; } /** * Load all skills from a directory. Each subdirectory containing a * SKILL.md file is treated as a skill. * * @param skillsDir - Path to the skills root directory. * @returns Array of loaded skills. Directories without SKILL.md are skipped. */ export declare function loadSkillsSync(skillsDir: string): Skill[]; export declare function loadSkills(skillsDir: string): Promise; export declare function composeDeclaredSkillsPrompt(agentPrompt: string, declaredSkillNames: string[] | undefined, skills: Skill[]): { prompt: string; missing: string[]; }; //# sourceMappingURL=skills.d.ts.map