executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
autoshipRuns a changesets npm release through the version PR, CI publish, and registry verification. Use when asked to "release this package", "autoship", "merge Version Packages", or diagnose a release that did not publish.
Independent GitHub snapshot · Automated classification · Original documentation governs
Drive an npm release end to end: changeset, fix loop, push, CI watch, Version Packages PR merge, publish watch, npm verification.
pr-creator), monitoring a feature PR for reviews, conflicts, or CI (use pr-babysitter), general build or type fixes outside a release flow, or scaffolding a new package (use scaffold-cli, which hands off to autoship for the first release).One workflow, two successive runs. Misreading it as two workflows causes most autoship mistakes.
.changeset/*.md file to the default branch.changesets/action sees pending changesets, runs changeset version in CI, and opens or updates a PR on branch changeset-release/<default-branch> (title "Version Packages", suffixed "(next)" in pre mode) carrying the package.json bump and CHANGELOG.md entry.changeset publish), which publishes to npm and, by default, pushes the git tag and creates a GitHub release.The local job ends at "push the changeset file". CI owns versioning and publishing.
The action has two live majors with different input names: @v1 takes publish:, @v2 takes publish-script:. Read the uses: line before diagnosing a run that versioned but never published.
| File | Read when |
|---|---|
references/changeset-and-commit.md | Steps 1-3: writing the changeset file, discovering and running gates non-interactively, staging the release commit |
references/ci-polling.md | Step 4 and Step 5 watches: the Monitor tool, the commit watch script, failure classification, the Changeset Status check |
references/version-pr-and-publish.md | Once CI is green: workflow shape, finding and merging the Version Packages PR, the publish run, npm verification, publish failure diagnosis |
evals/evals.json | Only when changing this skill; never loads during a release |
| Intent | Steps | Notes |
|---|---|---|
| Full autoship (ship / release / publish) | 1-5 | Default entry point. End to end through publish, no intermediate prompts |
| Create changeset only | 1 | Stage a release without pushing |
| Fix gates and push | 1-3 | Changeset, fixes, commit, no CI watch |
| Watch CI only | 4-5 | Changeset already pushed |
| Merge Version Packages PR only | 4b-5 | CI already green; merges once preconditions hold |
| Fix gates only | 2 | Inside a release flow; no changeset needed |
| Diagnose a release that did not publish | read-only | references/version-pr-and-publish.md (PR-wait timeout checks, publish failure table) |
"Ship it" with no npm release context routes to pr-creator.
Invoking autoship is standing consent for the full release flow. Do not pause mid-flow to re-confirm; gate risky steps on objective preconditions instead.
npm view, pending changesets, package.json scripts, git history and status.git add/commit/push, starting watches, and merging the Version Packages PR once its identity is confirmed and every check passes.Copy this checklist to track progress:
Autoship progress:
- [ ] Step 1: Create changeset (default patch)
- [ ] Step 2: Fix lint, types, tests, format
- [ ] Step 3: Commit and push the changeset
- [ ] Step 4a: Watch CI on the pushed commit
- [ ] Step 4b: Find and merge the Version Packages PR
- [ ] Step 5: Watch the publish run, verify on npm
references/changeset-and-commit.md.patch; minor or major only on explicit user instruction.git log --oneline -10.npx changeset status validates the file: a misspelled package name fails here instead of in CI.package.json scripts (check, lint, typecheck, test, format, fix); in non-npm repos check Makefile, Cargo.toml, pyproject.toml, go.mod.git status: broad fix/format scripts reformat files outside the change (MDX is a frequent casualty). Undo only fixer changes introduced by this run, preserving pre-existing edits in the same files.git status --porcelain for hook artifacts (a root schema.gql is a known one) before committing.chore: add <type> changeset for <package>) and push..changeset/*.md (first Gotcha).references/ci-polling.md.TERMINAL: line when every run for that commit (CI and the release workflow) completes. An idle first poll is normal; runs take time to queue.gh run view <id> --log-failed: flaky or infra gets gh run rerun <id> --failed (max 3); a real failure gets a fix, commit, push, and a fresh watch on the new SHA.references/version-pr-and-publish.md.changeset-release/<default-branch>. If absent, run the PR-wait watch (10-minute cap).changeset-release/<default-branch> (title normally "Version Packages", but pr-title can rename it). Never merge any other PR.gh pr checks <n> --json name,bucket reports bucket: pass for every check.gh pr view <n> --json mergeable reports MERGEABLE (on UNKNOWN, wait and re-query).gh pr merge <n> --squash --delete-branch, or the merge method the repo allows. Any failed precondition: stop and report, never merge.gh pr view <n> --json mergeCommit --jq .mergeCommit.oid) and run the commit watch on it.references/version-pr-and-publish.md, report, and stop. Publish failures are never retried blind; every cause on that table needs a config or settings change.npm view <package>@<version> version must print the merged version, and npm view <package> dist-tags must show latest pointing at it (unless pre mode). Stop remaining watches and report both outputs; they are the completion evidence.Stop and report on a gate still failing after 5 iterations or any failed merge precondition; never override failing checks or resolve conflicts in the bot PR. Diagnosis lives with each stage: CI and Changeset Status failures in references/ci-polling.md, a missing Version Packages PR and publish failures in references/version-pr-and-publish.md.
npx changeset version locally. It consumes .changeset/*.md, so the pushed commit has no pending changeset, "Changeset Status" fails, and no Version Packages PR opens. Recovery is reverting the bump, not rerunning CI.npm publish directly. It bypasses changesets, skips the changelog and tag, and leaves the Version Packages PR describing an already-shipped version, which then fails with "You cannot publish over the previously published versions".CHANGELOG.md or the package.json version. CI generates both in the Version Packages PR; local edits make the bot PR CONFLICTING.changesets/action@v2 renamed every input (publish to publish-script, version to version-script, title to pr-title, commit to commit-message, branch to pr-base-branch). The old names are ignored with only a warning, so a @v2 workflow still using publish: opens the Version PR and then completes green without publishing anything.setup-node with node-version: 22 ships npm 10.9.x. Trusted publishing needs npm 11.5.1 or later, so changeset publish fails ENEEDAUTH even with id-token: write set. Use Node 24 or add npm install -g npm@latest before publishing.NPM_TOKEN secret that holds a classic token fails ENEEDAUTH: npm revoked every classic token on 9 December 2025. Move to trusted publishing rather than minting a new token; write-capable granular tokens expire within 90 days..github/workflows/<file>.yml by case or extension surfaces only at publish time, as ENEEDAUTH.gh pr list --json headBranch and gh pr checks --json conclusion are invalid fields and error. Use headRefName and bucket.timeout_ms is 300000 (5 minutes). A CI run that outlasts it kills the watch with a timeout that looks like silence. Pass timeout_ms: 3600000 for CI watches.gh api rate_limit --jq .resources.core.remaining) and stall the flow mid-release.git add -A commits pre-commit-hook artifacts and fixer churn into the release commit. Stage explicit paths.major without explicit instruction signals breaking changes to every consumer. Default to patch.scaffold-cli: scaffolds a new TypeScript package with changesets and OIDC publishing, then hands off to autoship for its first release.pr-creator: opens feature PRs. Autoship merges only the bot-opened Version Packages PR.pr-babysitter: watches feature PRs (reviews, conflicts, CI). Autoship watches release CI only; never babysit a Version Packages PR autoship is driving.