Summary
The CLI has skill pack which validates a skill directory and creates a .skill ZIP bundle with SHA256. This is currently in packages/cli/src/commands/skills/pack.ts. Promoting it to the SDK enables CI/CD pipelines and platform tooling to build skill bundles without the CLI.
Proposed API
interface PackSkillResult {
success: boolean;
name?: string;
version?: string;
path?: string;
sha256?: string;
size?: number;
error?: string;
}
// On the Mpak facade or as a standalone utility:
async packSkill(skillDir: string, outputPath?: string): Promise<PackSkillResult>
Acceptance Criteria
Priority
Lower than #74 and #75 — this is a build-time operation, not runtime. But completes the full skill lifecycle in the SDK.
Summary
The CLI has
skill packwhich validates a skill directory and creates a.skillZIP bundle with SHA256. This is currently inpackages/cli/src/commands/skills/pack.ts. Promoting it to the SDK enables CI/CD pipelines and platform tooling to build skill bundles without the CLI.Proposed API
Acceptance Criteria
.skillZIP bundle with correct directory structureskill packupdated to use SDK methodPriority
Lower than #74 and #75 — this is a build-time operation, not runtime. But completes the full skill lifecycle in the SDK.