/** * Skills System - Agent Skills standard implementation */ export interface SkillMetadata { name: string; description: string; license?: string; compatibility?: string; allowedTools?: string[]; metadata?: Record; } export interface Skill { metadata: SkillMetadata; instructions: string; path?: string; } export interface SkillDiscoveryOptions { paths?: string[]; includeSystem?: boolean; includeUser?: boolean; includeProject?: boolean; } /** * Parse SKILL.md file */ export declare function parseSkillFile(content: string): Skill; /** * Skill Manager - Load and manage skills */ export declare class SkillManager { private skills; private discoveryPaths; constructor(options?: SkillDiscoveryOptions); private setupDiscoveryPaths; /** * Discover and load skills from configured paths */ discover(): Promise; /** * Load a skill from a SKILL.md file */ loadSkill(skillPath: string): Promise; /** * Register a skill manually */ register(skill: Skill): void; /** * Get a skill by name */ get(name: string): Skill | undefined; /** * List all loaded skills */ list(): Skill[]; /** * Generate XML prompt for skills */ generatePrompt(skillNames?: string[]): string; /** * Validate a skill */ validate(skill: Skill): { valid: boolean; errors: string[]; }; } /** * Create a skill manager */ export declare function createSkillManager(options?: SkillDiscoveryOptions): SkillManager; /** * Skill properties from SKILL.md frontmatter. * Python parity with praisonaiagents/skills/models.py SkillProperties. */ export interface SkillProperties { name: string; description: string; license?: string; compatibility?: string; allowedTools?: string; metadata: Record; path?: string; } /** * Create SkillProperties with defaults. */ export declare function createSkillProperties(partial: Partial & { name: string; description: string; }): SkillProperties; /** * SkillLoader - Progressive skill loading. * Python parity with praisonaiagents/skills/loader.py SkillLoader. */ export declare class SkillLoader { private cache; /** * Load skill metadata only (Level 1 - ~100 tokens). */ loadMetadata(skillPath: string): Promise; /** * Load full skill with instructions (Level 2 - <5000 tokens). */ loadFull(skillPath: string): Promise; /** * Load skill resources (Level 3 - as needed). */ loadResources(skillPath: string): Promise<{ scripts: string[]; references: string[]; assets: string[]; }>; /** * Clear the cache. */ clearCache(): void; } /** * Create a skill loader. */ export declare function createSkillLoader(): SkillLoader;