export interface SkillInvocation { skillName: string; rawArgs: string; source: 'builtin' | 'user' | 'project' | 'plugin' | 'imported' | 'command'; capabilities: { compose: boolean; subagents: boolean; }; } export interface PreflightContext { cwd: string; artifactDir: string; } export interface PreflightResult { manifestBlock: string; artifacts: Record; } export type SkillPreflight = (inv: SkillInvocation, ctx: PreflightContext) => Promise;