npx skills add ...
npx skills add boshu2/agentops --skill release
Run release validation. Triggers: "run release validation", "cut a release", "check release readiness".
npx skills add boshu2/agentops --skill release
Purpose: Take a project from "code is ready" to "tagged, pushed by the operator, and verified green on the exact tagged SHA."
Pre-flight validation, changelog from git history, version bumps across package files, release commit, annotated tag, curated release notes, and post-push exact-SHA CI verification. Local preparation is reversible. Publishing (including the GitHub Release page) is CI's job.
--skip-checks as an explicit degraded operator choice because an untested tag cannot become a trustworthy release boundary.WARN|FAIL|REFUTED -> AUTO-REDO: repair the owned release artifact or route the defect back to its producing bead, then rerun pre-flight and pawl; plain rejection never enters HOLD and never consumes the helper lane.BREAKER -> HOLD -> ONE-HELPER: freeze tag or publication guidance when an irreversible remote action, ambiguous artifact identity, or unavailable release authority prevents safe progress, then route exactly one bounded helper consultation with the audit packet.HELPER-UNSTUCK -> AUTO-REDO: leave HOLD, apply the bounded recovery, and re-earn local validation, exact-SHA evidence, reconciliation, and the pawl verdict.HELPER-ESCALATE -> HUMAN: stop automation and send the helper-provided release evidence to the operator.REFUSAL-LANE|EXPLICIT-JUDGMENT|EXHAUSTED-BUDGET -> HUMAN: skip the helper and route directly to the operator; these are the only direct-human states.| Argument | Required | Description |
|---|---|---|
version | No | Semver string (e.g., 1.7.0). If omitted, suggest based on commit analysis |
--check | No | Readiness validation only — don't generate or write anything |
--dry-run | No | Show generated changelog + version bumps without writing |
--skip-checks | No | Skip pre-flight validation (tests, lint) |
--changelog-only | No | Only update CHANGELOG.md — no version bumps, no commit, no tag |
| Mode | Invocation | Behavior |
|---|---|---|
| Full Release | /release [version] | Pre-flight → changelog → release notes → version bump → user review → write → release commit → tag → push guidance → exact-SHA CI verification. |
| Check | /release --check | Pre-flight checks only; reports GO/NO-GO. Composable with /validate. No writes. |
| Changelog Only | /release X.Y.Z --changelog-only | Updates CHANGELOG.md only — no version bumps, no commit, no tag. |
Read references/release-workflow-detail.md [blocked] for the full per-step procedure — bash commands, check tables, expected output, audit-record template, and worked examples. The index below is for orientation only; the agent must execute against release-workflow-detail.md for correctness.
scripts/ci-local-release.sh (blocking) plus version/lint/test/branch/changelog/SBOM/security checks. --check mode stops after this step.<last-tag>..HEAD. For non-HEAD cuts, see references/release-cut-and-bump.md [blocked].git log --oneline --no-merges <range> plus stats for ambiguity resolution.CHANGELOG.md. Notes prose uses the richer 8-label set per references/release-notes.md [blocked].package.json, pyproject.toml, etc.) plus AgentOps-specific manifests per references/release-cut-and-bump.md [blocked].--dry-run stops here.CHANGELOG.md update + version file edits.docs/releases/YYYY-MM-DD-v<version>-notes.md per references/release-notes.md [blocked]. MUST be staged before the release commit.docs/releases/YYYY-MM-DD-v<version>-audit.md resolved via scripts/resolve-release-artifacts.sh. Format in workflow-detail Step 16.git commit -m "Release v<version>" with all release artifacts staged.git tag -a v<version> -m "Release v<version>".gh release create locally; GoReleaser is sole creator.scripts/verify-release-ci.sh v<version> to print GO release-ci and ao reconcile --json | bash skills/release/scripts/validate-reconcile.sh "v<version>" to pass for that exact expected tag; exact-SHA CI alone never authorizes closeout.Checkpoint: before writing, confirm the operator approved the displayed changelog and version diff; before handoff, prove the release commit, annotated tag, audit, and notes agree on the version; after push, require exact-SHA CI plus reconciliation before declaring complete.
npm publish, cargo publish, twine upload. CI handles this.go build, npm pack, docker build. CI handles this.git push, no git push --tags. The user decides when to push.Everything this skill does is local and reversible:
git reset HEAD~1git tag -d v<version>docs/releases/*-notes.md before pushvalidate.yml run for the exact tagged SHA, run ao reconcile --json, and record the run id, conclusion, reconciliation overall status, and release-tag finding state in the handoff or release audit notes.docs/releases/YYYY-MM-DD-v<version>-audit.md, paired with docs/releases/YYYY-MM-DD-v<version>-notes.md and annotated ref refs/tags/v<version>.YYYY-MM-DD-v<version>-audit.md and YYYY-MM-DD-v<version>-notes.md, where <version> is the confirmed SemVer without a duplicate v prefix.VERSION="<version>", then run bash scripts/validate-release-audit-artifacts.sh --mode target --target-release "$VERSION" && bash scripts/verify-release-ci.sh "v$VERSION" && ao reconcile --json | bash skills/release/scripts/validate-reconcile.sh "v$VERSION"; command success alone is insufficient because the reconciliation JSON must name that exact expected tag, be semantically green, and contain no medium/high release finding.User says: /release 1.7.0
Agent runs pre-flight → reads v1.6.0..HEAD git history → classifies commits → drafts CHANGELOG.md entry + curated release notes → detects version files (package.json, version.go, plugin manifests) → presents draft for review → on approval, writes files, creates release commit, creates annotated tag, prints push guidance, then after the user pushes verifies scripts/verify-release-ci.sh v1.7.0, runs ao reconcile --json, and records the run id/conclusion plus reconciliation state.
User says: /release --check
Agent runs all pre-flight checks and outputs a GO/NO-GO summary table. No writes.
User says: /release (no version)
Agent classifies commits and suggests a version (major if breaking, minor if features, patch if fixes only) with reasoning, then asks the user to confirm or override.
User says: /release 1.7.0 --dry-run
Agent shows what the changelog entry + version bumps would look like, then stops without writing.
See references/release-workflow-detail.md for the full per-step example narration.
| Problem | Cause | Solution |
|---|---|---|
| "No commits since last tag" error | Working tree clean, no new commits | Commit pending changes or skip release |
| Version mismatch warning | package.json and go version disagree | Manually sync before release, or pick one as source of truth |
| Tests fail during pre-flight | Breaking change not caught earlier | Fix tests, or use --skip-checks (not recommended) |
| Dirty working tree warning | Uncommitted changes present | Commit or stash before release |
| GitHub Release page body is empty | GoReleaser conflict with existing draft | CI deletes existing releases before GoReleaser runs; do NOT gh release create locally |
ci-local-release.sh hangs on agents-hash | ~/.agents/patterns is large | Set AGENTS_HUB_OVERRIDE=/tmp/empty-hub before invocation |
See references/release-workflow-detail.md for the full troubleshooting matrix.
When wiring or auditing the CI workflow that backs --check mode (or the tag-triggered release pipeline that consumes the curated notes), pull the relevant patterns from references/gh-actions-ci-patterns.md (general CI) or references/gh-actions-release-automation.md (tag-triggered, draft flow, asset upload). When generating the curated release-notes file or auditing CHANGELOG.md drift, treat the changelog as an orientation layer and use references/changelog-as-research-artifact.md for the structured-section, breaking-change-callout, and notes-vs-changelog rules.