/** * SMI-1788: SubagentGenerator - Generate companion subagent definitions * * Creates subagent definitions for skills that benefit from parallel * execution with context isolation. Subagents enable: * - 37-97% token savings through context isolation * - Parallel execution of heavy operations * - Specialized tool access per agent * * Part of the Skillsmith Optimization Layer for transforming * community skills into more performant versions. * * SMI-6276 (Wave 6 Step 1): companion-agent frontmatter is now generated * per TARGET CLIENT via `SubagentGenerator.client-profiles.ts` — this file * no longer emits Claude-native tool names / a Claude `model:` value * unconditionally for every client `COMPANION_AGENT_TARGETS` writes a * companion file for. Types split to `.types.ts`, pure helpers split to * `.helpers.ts` (500-line standard). */ export type { ClaudeModel, SubagentDefinition, SubagentGenerationResult, } from './SubagentGenerator.types.js'; export { CLAUDE_MODELS } from './SubagentGenerator.types.js'; import type { SkillAnalysis } from './SkillAnalyzer.js'; import { type ClientId } from '../install/paths.js'; import { type SubagentGenerationResult } from './SubagentGenerator.types.js'; /** * Generate a companion subagent for a skill * * @param skillName - The name of the skill * @param description - The skill's description * @param content - The full SKILL.md content * @param analysis - Analysis from SkillAnalyzer * @param client - SMI-6276: target client for the generated companion-agent * frontmatter shape (default: canonical / `claude-code`, preserving prior * behavior for every existing caller). See `SubagentGenerator.client-profiles.ts`. * @returns Subagent generation result */ export declare function generateSubagent(skillName: string, description: string, content: string, analysis: SkillAnalysis, client?: ClientId): SubagentGenerationResult; /** * Generate a minimal subagent for skills that don't need full analysis * * @param skillName - The name of the skill * @param description - The skill's description * @param content - The full SKILL.md content * @param client - SMI-6276: target client for the generated companion-agent * frontmatter shape (default: canonical / `claude-code`, preserving prior * behavior for every existing caller). See `SubagentGenerator.client-profiles.ts`. * @returns Subagent generation result */ export declare function generateMinimalSubagent(skillName: string, description: string, content: string, client?: ClientId): SubagentGenerationResult; declare const _default: { generateSubagent: typeof generateSubagent; generateMinimalSubagent: typeof generateMinimalSubagent; }; export default _default; //# sourceMappingURL=SubagentGenerator.d.ts.map