/orc:release [--dry-run] [--tag-only]from orc
Cuts a semver release from conventional commits: verifies clean tree and green test suite, computes version bump, shows evidence preview, then tags and creates a GitHub release. Supports --dry-run and --tag-only flags.
Ships in orc. Installing the plugin adds it to Claude Code.
Cut a release from the commit history: verify the tree is releasable, compute the semver bump from conventional commits since the last tag, show the evidence, gate, then tag + gh release create. Doctrine lives in orc:release-management — invoke it (announce it) before Phase 2.
Do not run this command in orc's own repository. orc releases via the dual-tag process documented in docs/contributing.md: plugin releases use orc--v* tags (manifest bump in orc/.claude-plugin/plugin.json, tag in the last PR of a release train), and CLI releases use plain v* tags that trigger the goreleaser workflow (.github/workflows/release-cli.yml) — with a guard job that rejects cross-namespace tags. A generic single-tag release here would either misfire the CLI workflow or ship a plugin nobody can install. If the current repo is orc, stop and point the user at docs/contributing.md.
--dry-run — stop after the preview: compute the bump, render the evidence, write nothing, tag nothing.--tag-only — skip the changelog and GitHub release; just create + push the annotated tag.!orc-workspace-detect --banner
Context is injected above (ORC_* vars are exported for any Bash you run — do not re-run detection). This command is single-repo: in workspace mode, ask which repo to release via AskUserQuestion and operate inside it. If the repo is orc itself (remote or directory name matches), stop per "Not for orc itself".
Hard rule from orc:release-management — never release from a dirty tree or red suite.
git status --porcelain — must be empty. Untracked files count as dirty.package.json scripts, Makefile, go test ./..., cargo test, pytest — whatever the repo actually uses). Read the output; per orc:verification-before-completion, no green claim without evidence.On any failure, print the danger callout and stop:
> **🛑 Cannot release**
>
> <dirty tree: N modified/untracked files | test suite failed: summary>. Fix, commit, and re-run — there is no override.
orc-state init --command release --total-phases 5. Defer to orc:state-protocol for schema and rules; checkpoint each phase (orc-state phase set <n> + orc-state digest write -) so /orc:resume can continue an interrupted run.Invoke orc:release-management (announce it). Following it:
git describe --tags --abbrev=0; monorepo prefix-aware if the tag history says so). No tags → first release: propose an initial version instead of computing one.git log <last-tag>..HEAD --no-merges — classify every commit: breaking (! / BREAKING CHANGE:) → major, feat → minor, fix/perf → patch, rest → none; highest wins. Apply the pre-1.0 convention when the repo is pre-1.0.gh pr list --state merged --search "<sha>" --json number,url --limit 1, or the (#N) suffix on squash-merge repos).Save the classified list to ${ORC_STATE_DIR}/<branch>/files/release-evidence.md.
Render the preview with the evidence — the commit list grouped by type is what makes the bump auditable:
> **📋 Release preview**
>
> `<last-tag>` → `<next-version>` (**<major|minor|patch>**) — <N> commits since <last-tag>.
Breaking:
<sha7> <subject> (#PR)
Features:
<sha7> <subject> (#PR)
Fixes:
<sha7> <subject> (#PR)
Other (no bump):
<sha7> <subject>
If --dry-run: stop here, mark the session status: done with dry_run: true in the checkpoint.
Print the gate headline (**⛔ Gate — release**, per orc:callouts), then AskUserQuestion:
<next-version> — proceed"Skip this phase entirely when --tag-only.
CHANGELOG.md or equivalent): prepend the new version section — grouped breaking/features/fixes with PR links, matching the file's existing style — and commit it (chore(release): <next-version>, per orc:git-commit).AskUserQuestion: "Create CHANGELOG.md?" — Create it / Skip — release notes only. Only create on explicit consent.Either way, write the notes for this version to ${ORC_STATE_DIR}/<branch>/files/release-notes.md — Phase 5 uses it.
Annotated tag, then push:
git tag -a "<next-version>" -m "<next-version>"
git push origin "<next-version>"
(Plus the changelog commit push if Phase 4 committed one.)
Unless --tag-only:
gh release create "<next-version>" --title "<next-version>" \
--notes-file "${ORC_STATE_DIR}/<branch>/files/release-notes.md"
Fall back to --generate-notes only if the notes file is missing.
Update the checkpoint to status: done with the version and URLs, then echo:
> **➡️ Released**
>
> Tag: `<next-version>` · Release: <gh release URL> · Compare: <repo>/compare/<last-tag>...<next-version>
CHANGELOG.md without explicit consent.${ORC_STATE_DIR}/<branch>/files/release-evidence.md — classified commit list${ORC_STATE_DIR}/<branch>/files/release-notes.md — the published notes--dry-run / --tag-only).orc/orc.json set to doneIf interrupted between phases, /orc:resume reads the checkpoint and continues from the next pending phase — Phase 1 preflight re-runs regardless (the tree may have changed since).
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
30 commands in this plugin
/address/orc:addressAnswer reviewer comments on YOUR open PR — categorize unresolved threads, push fixes, and post replies. Workspace-aware across linked PRs./adr/orc:adrAuthor an Architecture Decision Record (ADR) — produce a numbered docs/adr/NNNN-*.md following the orc:adr-writing template. Also handles supersession and status transitions on existing ADRs./ci/orc:ciDiagnose and fix a red CI run — dispatches orc-ci-investigator, then routes on its verdict: auto-fix via orc-code-fixer, flake re-run, infra escalation, or /orc:debug hand-off/context/orc:contextWrite or refresh docs/agents/project-context.md, the binding rules file executor agents load before code./debug/orc:debugSystematic root-cause investigation, then fix with TDD — never proposes a fix before finding the cause; resumable diagnosis + regression test in .orc/ state. Workspace-aware. For a quick one-off look without session state, prefer the bundled /debug./deps/orc:depsAudit, survey, and upgrade project dependencies — one-bump-per-commit loop, majors escalated, never auto-applied. Verbs: audit (default) | outdated | upgrade.npx claudepluginhub higoralves/orc --plugin orcOther plugins' commands for the same job