/** * New skill operation — scaffolds a new skill directory with manifest and SKILL.md. * * @experimental This API is unstable and may change without notice. */ import * as FileSystem from "effect/FileSystem"; import * as Path from "effect/Path"; import type { Handle } from "../../extensions/handle.js"; import type { OperationHandler } from "../../plan/apply-plan.js"; import type { Operation } from "../../plan/plan.js"; import { WorkspaceMutations } from "../../workspace/service-interface.js"; /** * Args for the new-skill operation. */ export interface NewSkillOperationArgs { /** Skill name (validated, lowercase with hyphens). */ readonly name: string; /** Profile (e.g., "@myorg"). */ readonly owner: Handle; /** Agent IDs selected by the CLI. Install/materialization consumes workspace configuration. */ readonly agents: ReadonlyArray; } /** * Scaffold a new skill in the workspace. * * @experimental This API is unstable and may change without notice. */ export type NewSkillOperation = Operation<"new-skill", NewSkillOperationArgs>; /** * New-skill operation handler. * * 1. Compute paths from the resolved workspace layout * 2. Check if skill already exists in settings * 3. Create skill directory (src/) * 4. Write skill.json manifest * 5. Write starter SKILL.md */ export declare const newSkill: OperationHandler; //# sourceMappingURL=new-skill.d.ts.map