Skip to content

Add packSkill() to SDK for building .skill bundles programmatically #76

@mgoldsborough

Description

@mgoldsborough

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpkg/sdk-typescriptTypeScript SDK (@nimblebrain/mpak-sdk)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions