Agentplane release and packaging operator

From basilisk-labs/agentplane · View interactive version

Agentplane release and packaging operator is an AI agent skill from the GitHub repository basilisk-labs/agentplane. Use when preparing, validating, publishing, auditing, or recovering an Agentplane release, especially package build ordering, version parity, npm/GitHub/GHCR/external distribution publication, public install smoke tests, hosted publish evidence, or release CI failures.

How to use this skill

Skill file

Agentplane Release And Packaging Operator

Use This Skill When

Core Rule

Treat release work as a state machine, not a linear script. Before mutating, identify the current state of git tags, package versions, generated manifests, hosted workflows, and npm visibility.

Required Preflight

  1. Run the normal Agentplane preflight and load release policy when release/version/publish files are in scope.
  2. Inspect the release task README and agentplane task verify-show <task-id>.
  3. Check working tree cleanliness with git status --short --untracked-files=no.
  4. Inspect recent release incidents:
  1. Confirm which packages are release participants:

Version And Public Package Checks

Use these before publishing and during recovery:

bun run release:parity
bun run release:state
node scripts/check-npm-version-availability.mjs <version>
npm view @agentplaneorg/core@<version> version
npm view @agentplaneorg/recipes@<version> version
npm view agentplane@<version> version

Expected invariant: core, recipes, CLI package versions, and CLI dependencies on core/recipes all agree with the release version.

Script Entry Points

Use the repo-local wrappers before composing ad hoc release command sequences:

bun run release:state
bun run release:next-action -- --check-registry
bun run release:version:bump -- --bump patch
bun run release:version:bump -- --version <version> --write
bun run release:candidate:prepare
bun run release:evidence:collect -- --version <version>

Build Ordering

Build workspace packages in dependency order. Build agentplane before @agentplane/testkit, because testkit imports agentplane's generated declaration surfaces.

Preferred order:

bun run --filter=@agentplaneorg/core build
bun run --filter=agentplane build
bun run --filter=@agentplane/testkit build
bun run --filter=@agentplaneorg/recipes build

If CI fails with TS6305 for packages/agentplane/dist/*.d.ts while building @agentplane/testkit, the likely cause is that agentplane was not built before @agentplane/testkit.

Publish Flow

  1. Run release planning and generated release notes checks.
  2. Run fast release gates first; run heavy gates before publishing.
  3. Apply the release only after parity and generated freshness checks pass.
  4. Publish each public package with provenance and access=public.
  5. Record hosted workflow URLs and package visibility evidence in the release task.
  6. Run a clean install smoke outside the repository:
tmpdir="$(mktemp -d)"
npm_config_prefix="$tmpdir/prefix" npm install -g agentplane@<version>
"$tmpdir/prefix/bin/agentplane" runtime explain

Recovery Matrix

Platform Publication Matrix

Treat release publication as complete only when the canonical publish-result.json proves every required channel.

Required channels:

Handoff states that are not completion:

Post-Publish Audit

Before closing a release task, download or locate the publish-result artifact from the Publish release workflow and run:

bun run release:postpublish:audit -- --publish-result <path-to-publish-result.json>

Expected result: the command exits 0 and reports no failures.

If it fails:

gh workflow run publish-distribution-module.yml \
  -f tag=vX.Y.Z \
  -f sha=<release-sha> \
  -f module=homebrew

Use module=scoop, module=setup-agentplane, module=ghcr, module=github-release, module=external, or module=all as needed.

Verification Contract

Minimum evidence for a release task:

Do not close a release task with only local tests if publication or installation was part of scope.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.