Run devcycle's own release and its issue and roadmap bookkeeping. Use when asked to release or ship, merge dev into main, tag a version, close the issues a release fixed, or after any PR merges into dev (update the issues and roadmap).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Release?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/konstantinroehrl-release)
---
name: release
description: "Run devcycle's own release and its issue and roadmap bookkeeping. Use when asked to release or ship, merge dev into main, tag a version, close the issues a release fixed, or after any PR merges into dev (update the issues and roadmap)."
---
# release
A runbook for this repo's maintainer. It owns the order of the steps, not the rules behind them:
the rules live in the files linked below, which you read instead of restating.
## Entry points
- **A PR merged into `dev`**: do § Issue bookkeeping and § Roadmap bookkeeping, then stop. No release is implied.
- **A release asked for**: reconcile (those two sections), run § Release flow, then mark the release.
## Issue bookkeeping
1. `git fetch origin dev`, then `node scripts/release-scope.mjs` (no `--version`: no release is being prepared) lists the unreleased PRs with the issues each closes or refs, the commits no PR was found for, and one changelog line per PR. It reads `origin/dev`, so run it from any checkout. Owner of the PR discovery and keyword parsing: `scripts/release-closing-refs.mjs`.
2. Re-verify every issue claim against live code and `gh`, never a remembered or pasted count. `gh issue list --limit 200` — the bare default of 30 undercounts.
3. Per PR, read `closingIssuesReferences` and the body's `Closes/Fixes/Resolves/Refs #n`.
- A full fix closes only once the release carries it to `main` (`CONTRIBUTING.md` § Closing issues).
- `Refs` leaves the issue open. An umbrella issue (such as #478) says what remains.
- A fix whose keyword never reached `main` is closed by hand, with a comment naming the PR and the version.
4. For a stale backlog, the `triage-issues` skill's `show` lookup and landed-fix scan report fixes that already landed (commit or PR); draft the closes for them under step 5 (`skills/triage-issues/SKILL.md`).
5. Draft every close or comment and show it before making it (the confirm-first rule in `skills/write-issue/SKILL.md`). Folding rules are `references/issue-folding.md`'s.
## Roadmap bookkeeping
The roadmap is `docs/superpowers/specs/2026-08-15-devcycle-roadmap.md`. It is gitignored: edit it in place and never commit it.
- Its `## Status` table has the columns `| Item | State | Where | Date |`; `State` is one of `open`, `on dev`, `shipped`, `obsolete`, `superseded`.
- After a merge to `dev`, the touched rows become `on dev` with `PR #n`.
- At release they flip to `shipped` with `vX.Y.Z` and the date.
- Leave the `### Rn` item sections alone, except for a one-line pointer.
- Save a `.pre-prune-<date>` copy before removing any planning text.
- If the table does not exist yet, say so and offer the one-off catch-up. Do not invent rows.
## Release flow
Why each step exists: `CONTRIBUTING.md` § Releasing.
1. Scope by the `chore(release): prepare vX.Y.Z` line in `origin/dev`'s oneline log, never a ref range.
2. Pick the version from the commit types since that line.
3. Draft the CHANGELOG prose headless at the top of `CHANGELOG.md`, in a temporary worktree off `origin/dev`. Run `node scripts/validate.mjs` there first, and start from `release-scope.mjs`'s changelog lines.
4. Wait for every `Validate` run on `dev` to pass: `gh run list --branch dev`.
5. Push nothing to `dev` while `Prepare release` runs, and never re-dispatch it once anything sits on the prepare commit.
6. `gh workflow run "Prepare release" --ref dev -f title=<conventional title>`. Without `--ref dev` it targets `main`.
7. Fire the release PR's checks, because the implicit token opens it with none: `gh pr close <n>` then `gh pr reopen <n>`, without `-q`.
8. `git fetch origin dev`, then `node scripts/release-scope.mjs --version <X.Y.Z> --release-pr <n>` (it reads `origin/dev`). Exit 1 means a `missing` issue; fix the release PR's body before merging.
9. Squash-merge with the exact release title and a `Closes` body: `gh pr merge <n> --squash`. Wait for `Release` and `Back-merge` (`gh run watch`).
10. Verify:
- the tag `devcycle--vX.Y.Z` and the GitHub release exist (`gh release view`);
- `git diff --stat origin/main origin/dev` is empty;
- `main` is 0 commits behind `dev`.
Then close the issues (§ Issue bookkeeping), mark the roadmap (§ Roadmap bookkeeping) and remove the worktree.
`tests/unit/drive-execution.test.mjs` is a known flake: rerun with `gh run rerun --failed` and say so in the report.
## Never
- Push `main`, move or delete a tag, or force-push.
- Merge, release, close or comment unless the maintainer asked for it in this conversation.
## Pitfalls seen
- `Prepare release` bumps twice if re-dispatched after anything landed on the prepare commit.
- The release PR opens with zero checks (step 7).
- `gh workflow run` defaults to `main` (step 6).
- A closing keyword lost because a squash subject ended in an issue number. The collector now follows each commit's associated PR; step 8 is the second line of defence.