[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74K8C1XTRKYZ54DS91M8ZSW":3,"skill-same:01M74K8C1XTRKYZ54DS91M8ZSW":52},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M74K8C1XTRKYZ54DS91M8ZSW","release",null,"Acauhi99\u002Fopencode-agent-system","Acauhi99","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F109399110?v=4","01M74JTV4VH2YAER6TABE78RKF","Acauhi","01M74JTV5CXNC5DEV2XR5SBFG3",1,"MIT","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Frelease\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: release\ndescription: Cut a versioned release for a project — bump the manifest version (semver major\u002Fminor\u002Fpatch, default minor), commit, create an annotated git tag, and generate release notes from commits since the last tag. Runs the full `check-pr-readiness` gauntlet against the release range plus the `check-release-risk` briefing before tagging, so what gets tagged is shippable. Accepts `mode=fast|balanced|production` (default: `production`). Use when the user says \"cut a release\", \"release this\", \"tag a release\", \"bump version\", \"publish a new version\", \"\u002Frelease\", \"\u002Frelease patch\", \"\u002Frelease major\", or asks to ship a new version. Supports package.json, pyproject.toml, Cargo.toml, plain VERSION files, and Claude Code plugin marketplaces (diff-driven per-plugin bumps via .claude-plugin\u002Fmarketplace.json + plugins\u002F*\u002F.claude-plugin\u002Fplugin.json). Skip for unreleased prototypes with no prior tag history if the user only wants a changelog (use a changelog tool instead) and for workspace-style monorepos (Nx, Turborepo, Cargo workspaces) where each package publishes independently.\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  source: \"Adapted from AgentSystemLabs\u002Fcore (MIT)\"\n  requires_codegraph: true\n---\n\n> **Tool mapping (OpenCode):** This skill uses:\n> - `question` tool for user prompts (not `AskUserQuestion`)\n> - `task` tool for subagents (not `Agent` or `Task` subagent syntax)\n> - `skill({ name: \"...\" })` to load other skills (not `Skill(skill=\"...\", args=\"...\")`)\n> - `codegraph_explore`, `codegraph_search`, `codegraph_context` for codebase exploration (preferred)\n> - `todowrite` for phase\u002Fprogress tracking\n> - `grep`, `glob`, `read`, `bash` as fallback when `.codegraph\u002F` not initialized\n>\n> **Context rule:** This skill supersedes any prior skill instructions. Follow ONLY these instructions now. Read the user's goal and any mode\u002Finclude\u002Fskip from the conversation context.\n\n# Release\n\nRead `mode=`, `include=`, `skip=` from conversation context. Default to `production` if not specified.\n\nPhased workflow. Do not skip phases. Each phase has an explicit exit condition; if it fails, stop and surface to the user — do not paper over.\n\n**Bump type from args**: `major` | `minor` | `patch`. Default `minor` if no arg passed.\n\n**Quality mode from args**: `mode=fast|balanced|production`. Default `production` if no `mode=` passed.\n\n---\n\n## Modes\n\nA tag points at code that other people (and CI, package registries, ops dashboards) will treat as \"this is what shipped.\" Default mode is `production` and you should rarely downgrade.\n\n| Mode | Quality gate (Phase 1.5) |\n|---|---|\n| `fast` | Residue sweep only (console.log \u002F `.only` \u002F debugger \u002F merge markers \u002F TODO additions in the release range). |\n| `balanced` | `fast` + typecheck + lint on the release range. Blocks on type\u002Flint errors. |\n| `production` (default) | Full `check-pr-readiness` (loaded via `skill({ name: \"check-pr-readiness\" })`) against the release range (last tag → HEAD, or all history when no prior tag). Blocks on any red gate. |\n\nThe `check-release-risk` briefing in Phase 5 runs **in all modes** — it surfaces what changed, not whether the code is shippable.\n\n---\n\n## Phase 1 — Preflight\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: working tree is clean, on the release branch, and the last tag is identifiable (or confirmed-absent).\n\nRun in parallel:\n\n```\ngit status --porcelain\ngit rev-parse --abbrev-ref HEAD\ngit describe --tags --abbrev=0 2>\u002Fdev\u002Fnull || echo \"NO_PRIOR_TAG\"\ngit remote -v\n```\n\nThen:\n\n1. **Dirty tree** (`git status --porcelain` non-empty) → STOP. Show the user the dirty files and ask whether to stash, commit separately, or abort via `question` tool. Do not auto-stash.\n2. **Branch check** — if not on `main` \u002F `master` \u002F `release\u002F*`, ask the user to confirm before continuing via `question` tool. Releasing from a feature branch is almost always a mistake.\n3. **No prior tag** — note it; release notes will use \"all commits\" as the range. Do not invent a baseline tag.\n4. **Detect manifest** (first match wins, in this order):\n   - `package.json` → Node\n   - `pyproject.toml` → Python (look for `[project] version` or `[tool.poetry] version`)\n   - `Cargo.toml` → Rust (`[package] version`)\n   - `VERSION` (plain text, single semver line) → generic\n   - `.claude-plugin\u002Fmarketplace.json` → Claude Code plugin marketplace. **MANDATORY — READ [`references\u002Fclaude-plugin-marketplace.md`](references\u002Fclaude-plugin-marketplace.md)** before Phase 2; this layout has multiple version fields and a diff-driven bump rule that the default single-manifest flow gets wrong.\n   - None found → STOP and ask the user where the version lives via `question` tool.\n\nState the detected manifest, current version, and last tag back to the user before proceeding.\n\n---\n\n## Phase 1.5 — Quality gate (mandatory)\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: the release range passes the mode-appropriate quality gate, or the user has explicitly bypassed.\n\nCompute the release range: `\u003Clast-tag>..HEAD` if a prior tag exists, otherwise the full history reachable from `HEAD`.\n\nRun the mode-appropriate gate from the **Modes** table:\n- `mode=production` → invoke `check-pr-readiness` by loading `skill({ name: \"check-pr-readiness\" })` against the release range. Pipe its report through verbatim.\n- `mode=balanced` → typecheck + lint on the files changed in the release range + residue sweep on the release range diff.\n- `mode=fast` → residue sweep on the release range diff only.\n\nIf any gate fails, **stop**. Ask via `question` tool with options:\n- **Fix and retry** → exit; user fixes and re-invokes `\u002Frelease`.\n- **Tag anyway with failing gates** → require an explicit acknowledgement string; record the bypassed gates in the annotated tag body (`Bypassed-gates: \u003Clist>`) and the release notes.\n\nA tag with bypassed gates is the escape hatch for \"we know it's broken but we need the marker\" — not the default.\n\n---\n\n## Phase 2 — Compute next version\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: a single `NEXT_VERSION` string ready to write.\n\nParse current version as `MAJOR.MINOR.PATCH` (strip leading `v` if present in tag, never in manifest). Drop any pre-release\u002Fbuild suffix and warn the user that it's being dropped.\n\nApply standard semver: major resets minor+patch, minor resets patch.\n\nVerify the resulting tag does not already exist:\n\n```\ngit rev-parse v$NEXT_VERSION 2>\u002Fdev\u002Fnull && echo \"TAG_EXISTS\"\n```\n\nIf it exists → STOP. The user must either pick a different bump or delete the stale tag deliberately.\n\n---\n\n## Phase 3 — Write manifest + lockfile sync\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: manifest shows `NEXT_VERSION`; lockfile (if any) is consistent.\n\n- **package.json**: prefer `npm version $NEXT_VERSION --no-git-tag-version` (also updates `package-lock.json`). For pnpm: `pnpm version $NEXT_VERSION --no-git-tag-version`. For yarn: `yarn version --new-version $NEXT_VERSION --no-git-tag-version`. Detect from lockfile presence (`pnpm-lock.yaml`, `yarn.lock`, `package-lock.json`). If no JS package manager is on PATH, edit `package.json` directly via Edit and warn the user that the lockfile will be out of sync until they run their installer locally.\n- **pyproject.toml**: edit the `version = \"...\"` line directly via Edit. Do not run `poetry version` blindly — it picks up from cwd and may surprise.\n- **Cargo.toml**: edit `version = \"...\"` under `[package]`. Run `cargo update -p \u003Cpkgname> --precise $NEXT_VERSION` only if `Cargo.lock` exists and the user confirms.\n- **VERSION**: overwrite with `NEXT_VERSION\\n`.\n- **Claude plugin marketplace**: follow [`references\u002Fclaude-plugin-marketplace.md`](references\u002Fclaude-plugin-marketplace.md). Bump only changed plugins; show the full bump table before staging.\n\nShow the diff to the user before staging.\n\n---\n\n## Phase 4 — Generate release notes\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: a notes string ready to use as the tag annotation and shown to the user.\n\nRange:\n- If prior tag exists: `LAST_TAG..HEAD`\n- Else: all commits (`git log --reverse`)\n\nGroup by conventional-commit prefix when commits use them; fall back to a flat list when they don't. Detect: if ≥50% of the first 20 non-merge subjects match a conventional-commit prefix (`feat:`, `fix:`, `chore:`, `docs:`, `refactor:`, `perf:`, `test:`, `build:`, `ci:`) → group; else flat list.\n\n**If conventional commits detected**, emit:\n\n```\n## vNEXT_VERSION (YYYY-MM-DD)\n\n### Features\n- \u003Csubject> (\u003Cshort-sha>)\n\n### Fixes\n- ...\n\n### Other\n- ...  # chore\u002Fdocs\u002Frefactor\u002Fetc collapsed here\n```\n\n**If not detected**, emit a flat list:\n\n```\n## vNEXT_VERSION (YYYY-MM-DD)\n\n- \u003Csubject> (\u003Cshort-sha>)\n- ...\n```\n\nUse:\n\n```\ngit log $RANGE --pretty=format:'%s|%h|%an' --no-merges\n```\n\nSkip merge commits. Do not include author emails. Do not invent groupings the commits don't support.\n\nShow the notes to the user. Ask via `question` tool with options: `(a)ccept \u002F (e)dit \u002F (q)uit`. On `e`, open the user's editor or accept inline edits.\n\n---\n\n## Phase 5 — Commit, tag, and push gate\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: local commit + annotated tag exist; remote push is **explicitly authorized** by the user.\n\nBefore creating the release commit\u002Ftag, invoke `check-release-risk` by loading `skill({ name: \"check-release-risk\" })` against the release range unless the range is empty, doc-only, or comment-only. Include any risks in the push gate so the user sees public API, persistence, auth\u002Fpayment, env\u002Fsetup, manual QA, docs\u002Fchangelog, and rollback concerns before publishing the tag.\n\nRun sequentially (each must succeed before the next):\n\n```\ngit add \u003Cmanifest> \u003Clockfile-if-any>\ngit commit -m \"chore(release): vNEXT_VERSION\"\ngit tag -a vNEXT_VERSION -m \"\u003Crelease notes>\"\n```\n\nTag prefix is `v` (e.g. `v1.4.0`). The manifest stays unprefixed.\n\n**STOP before pushing.** Show:\n\n```\nLocal release ready:\n  commit: \u003Csha> chore(release): vNEXT_VERSION\n  tag:    vNEXT_VERSION\n\nTo publish:\n  git push --follow-tags\n\nPush now? (y\u002FN)\n```\n\nOnly run `git push --follow-tags` on explicit `y` via `question` tool. Default is no-push so the user can review or amend.\n\n---\n\n## NEVER\n\n- **NEVER push the tag without explicit user confirmation in this turn**\n  **Instead:** Stop after creating the local tag and ask via `question` tool. A prior session's \"yes\" doesn't carry forward.\n  **Why:** Tags pushed to shared remotes are effectively immutable — collaborators, CI, and package registries may pick them up within seconds. Rolling back means a force-delete on the remote and a new tag, which breaks anyone who already pulled.\n\n- **NEVER bump and tag with a dirty working tree**\n  **Instead:** Stop in Phase 1, surface dirty files, let the user resolve.\n  **Why:** The release commit silently absorbs unrelated changes; the tag then points at code that doesn't match the user's mental model of \"what shipped in this version.\"\n\n- **NEVER skip Phase 1.5 to \"save time\" or because the user said \u002Frelease in a hurry**\n  **Instead:** Run the mode-appropriate gate. If they want speed, they can pass `mode=fast` — that's a documented downgrade, not a silent skip.\n  **Why:** A version tag is treated as authoritative by CI, package registries, and downstream consumers. Letting a broken build get a tag burns trust and forces a `v…-rc` or yank cycle. The whole point of the redesign is that the tag means shippable.\n\n- **NEVER record a bypassed gate without the `Bypassed-gates:` annotation in the tag body**\n  **Instead:** When the user picks \"tag anyway with failing gates,\" append `Bypassed-gates: \u003Clist>` to both the annotated tag's body and the release notes.\n  **Why:** Bypasses are sometimes necessary; silent bypasses are not. The annotation is what lets a future operator look at `git tag -l -n99 v1.4.0` and know this version shipped with known failures.\n\n- **NEVER reuse or overwrite an existing tag**\n  **Instead:** Stop in Phase 2 when the target tag exists; require deliberate user action.\n  **Why:** Re-tagging poisons caches in registries (npm, crates.io), CI artifact stores, and downstream consumers' lockfiles. The original tag may already be deployed.\n\n- **NEVER fabricate release notes or invent conventional-commit groupings the log doesn't support**\n  **Instead:** Use the actual subject lines; fall back to a flat list when commits aren't conventional.\n  **Why:** Synthetic notes mislead users about what changed and erode trust in every future release note this skill produces.\n\n- **NEVER edit the manifest without also syncing the lockfile**\n  **Instead:** Use the package manager's `version` subcommand when available (`npm version`, `pnpm version`), or run the lockfile update explicitly.\n  **Why:** A version-bump commit with an out-of-sync lockfile breaks `npm ci` \u002F `pnpm install --frozen-lockfile` in CI immediately after the tag is cut.\n\n- **NEVER use `git tag` (lightweight) instead of `git tag -a` (annotated)**\n  **Instead:** Always `git tag -a vX.Y.Z -m \"\u003Cnotes>\"`.\n  **Why:** Lightweight tags have no author, date, or message — release notes vanish, and `git describe` behaves inconsistently.\n\n- **NEVER bump a `marketplace.json` without auditing every per-plugin `plugin.json`**\n  **Instead:** Always run the diff-driven sweep from `references\u002Fclaude-plugin-marketplace.md`. Bump every changed plugin alongside the marketplace.\n  **Why:** Claude Code's plugin updater reads each plugin's own `version`, not the marketplace version. A marketplace-only bump ships a release that's invisible to users — this is the v0.12.0 → v0.12.1 churn that motivated this rule.\n\n- **NEVER bump a per-plugin `plugin.json` whose code didn't change since `LAST_TAG`**\n  **Instead:** Run `git diff --name-only $LAST_TAG..HEAD -- plugins\u002F\u003Cname>\u002F ':!plugins\u002F\u003Cname>\u002F.claude-plugin\u002Fplugin.json'` per plugin; bump only those with non-empty output. The marketplace-level bump is separate and always happens.\n  **Why:** Bumping unchanged plugins forces consumers to re-download them, pollutes their changelog with empty releases, and makes \"what actually changed in v0.X\" un-answerable from version numbers alone.\n\n- **NEVER skip a phase because \"the repo looks fine\"**\n  **Instead:** Run preflight every time; cheap checks catch the dirty-tree \u002F wrong-branch \u002F existing-tag cases that cost the most to undo.\n  **Why:** The cost asymmetry is enormous — a 2-second `git status` versus a force-pushed bad tag.\n","> **Tool mapping (OpenCode):** This skill uses:\n> - `question` tool for user prompts (not `AskUserQuestion`)\n> - `task` tool for subagents (not `Agent` or `Task` subagent syntax)\n> - `skill({ name: \"...\" })` to load other skills (not `Skill(skill=\"...\", args=\"...\")`)\n> - `codegraph_explore`, `codegraph_search`, `codegraph_context` for codebase exploration (preferred)\n> - `todowrite` for phase\u002Fprogress tracking\n> - `grep`, `glob`, `read`, `bash` as fallback when `.codegraph\u002F` not initialized\n>\n> **Context rule:** This skill supersedes any prior skill instructions. Follow ONLY these instructions now. Read the user's goal and any mode\u002Finclude\u002Fskip from the conversation context.\n\n# Release\n\nRead `mode=`, `include=`, `skip=` from conversation context. Default to `production` if not specified.\n\nPhased workflow. Do not skip phases. Each phase has an explicit exit condition; if it fails, stop and surface to the user — do not paper over.\n\n**Bump type from args**: `major` | `minor` | `patch`. Default `minor` if no arg passed.\n\n**Quality mode from args**: `mode=fast|balanced|production`. Default `production` if no `mode=` passed.\n\n---\n\n## Modes\n\nA tag points at code that other people (and CI, package registries, ops dashboards) will treat as \"this is what shipped.\" Default mode is `production` and you should rarely downgrade.\n\n| Mode | Quality gate (Phase 1.5) |\n|---|---|\n| `fast` | Residue sweep only (console.log \u002F `.only` \u002F debugger \u002F merge markers \u002F TODO additions in the release range). |\n| `balanced` | `fast` + typecheck + lint on the release range. Blocks on type\u002Flint errors. |\n| `production` (default) | Full `check-pr-readiness` (loaded via `skill({ name: \"check-pr-readiness\" })`) against the release range (last tag → HEAD, or all history when no prior tag). Blocks on any red gate. |\n\nThe `check-release-risk` briefing in Phase 5 runs **in all modes** — it surfaces what changed, not whether the code is shippable.\n\n---\n\n## Phase 1 — Preflight\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: working tree is clean, on the release branch, and the last tag is identifiable (or confirmed-absent).\n\nRun in parallel:\n\n```\ngit status --porcelain\ngit rev-parse --abbrev-ref HEAD\ngit describe --tags --abbrev=0 2>\u002Fdev\u002Fnull || echo \"NO_PRIOR_TAG\"\ngit remote -v\n```\n\nThen:\n\n1. **Dirty tree** (`git status --porcelain` non-empty) → STOP. Show the user the dirty files and ask whether to stash, commit separately, or abort via `question` tool. Do not auto-stash.\n2. **Branch check** — if not on `main` \u002F `master` \u002F `release\u002F*`, ask the user to confirm before continuing via `question` tool. Releasing from a feature branch is almost always a mistake.\n3. **No prior tag** — note it; release notes will use \"all commits\" as the range. Do not invent a baseline tag.\n4. **Detect manifest** (first match wins, in this order):\n   - `package.json` → Node\n   - `pyproject.toml` → Python (look for `[project] version` or `[tool.poetry] version`)\n   - `Cargo.toml` → Rust (`[package] version`)\n   - `VERSION` (plain text, single semver line) → generic\n   - `.claude-plugin\u002Fmarketplace.json` → Claude Code plugin marketplace. **MANDATORY — READ [`references\u002Fclaude-plugin-marketplace.md`](references\u002Fclaude-plugin-marketplace.md)** before Phase 2; this layout has multiple version fields and a diff-driven bump rule that the default single-manifest flow gets wrong.\n   - None found → STOP and ask the user where the version lives via `question` tool.\n\nState the detected manifest, current version, and last tag back to the user before proceeding.\n\n---\n\n## Phase 1.5 — Quality gate (mandatory)\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: the release range passes the mode-appropriate quality gate, or the user has explicitly bypassed.\n\nCompute the release range: `\u003Clast-tag>..HEAD` if a prior tag exists, otherwise the full history reachable from `HEAD`.\n\nRun the mode-appropriate gate from the **Modes** table:\n- `mode=production` → invoke `check-pr-readiness` by loading `skill({ name: \"check-pr-readiness\" })` against the release range. Pipe its report through verbatim.\n- `mode=balanced` → typecheck + lint on the files changed in the release range + residue sweep on the release range diff.\n- `mode=fast` → residue sweep on the release range diff only.\n\nIf any gate fails, **stop**. Ask via `question` tool with options:\n- **Fix and retry** → exit; user fixes and re-invokes `\u002Frelease`.\n- **Tag anyway with failing gates** → require an explicit acknowledgement string; record the bypassed gates in the annotated tag body (`Bypassed-gates: \u003Clist>`) and the release notes.\n\nA tag with bypassed gates is the escape hatch for \"we know it's broken but we need the marker\" — not the default.\n\n---\n\n## Phase 2 — Compute next version\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: a single `NEXT_VERSION` string ready to write.\n\nParse current version as `MAJOR.MINOR.PATCH` (strip leading `v` if present in tag, never in manifest). Drop any pre-release\u002Fbuild suffix and warn the user that it's being dropped.\n\nApply standard semver: major resets minor+patch, minor resets patch.\n\nVerify the resulting tag does not already exist:\n\n```\ngit rev-parse v$NEXT_VERSION 2>\u002Fdev\u002Fnull && echo \"TAG_EXISTS\"\n```\n\nIf it exists → STOP. The user must either pick a different bump or delete the stale tag deliberately.\n\n---\n\n## Phase 3 — Write manifest + lockfile sync\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: manifest shows `NEXT_VERSION`; lockfile (if any) is consistent.\n\n- **package.json**: prefer `npm version $NEXT_VERSION --no-git-tag-version` (also updates `package-lock.json`). For pnpm: `pnpm version $NEXT_VERSION --no-git-tag-version`. For yarn: `yarn version --new-version $NEXT_VERSION --no-git-tag-version`. Detect from lockfile presence (`pnpm-lock.yaml`, `yarn.lock`, `package-lock.json`). If no JS package manager is on PATH, edit `package.json` directly via Edit and warn the user that the lockfile will be out of sync until they run their installer locally.\n- **pyproject.toml**: edit the `version = \"...\"` line directly via Edit. Do not run `poetry version` blindly — it picks up from cwd and may surprise.\n- **Cargo.toml**: edit `version = \"...\"` under `[package]`. Run `cargo update -p \u003Cpkgname> --precise $NEXT_VERSION` only if `Cargo.lock` exists and the user confirms.\n- **VERSION**: overwrite with `NEXT_VERSION\\n`.\n- **Claude plugin marketplace**: follow [`references\u002Fclaude-plugin-marketplace.md`](references\u002Fclaude-plugin-marketplace.md). Bump only changed plugins; show the full bump table before staging.\n\nShow the diff to the user before staging.\n\n---\n\n## Phase 4 — Generate release notes\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: a notes string ready to use as the tag annotation and shown to the user.\n\nRange:\n- If prior tag exists: `LAST_TAG..HEAD`\n- Else: all commits (`git log --reverse`)\n\nGroup by conventional-commit prefix when commits use them; fall back to a flat list when they don't. Detect: if ≥50% of the first 20 non-merge subjects match a conventional-commit prefix (`feat:`, `fix:`, `chore:`, `docs:`, `refactor:`, `perf:`, `test:`, `build:`, `ci:`) → group; else flat list.\n\n**If conventional commits detected**, emit:\n\n```\n## vNEXT_VERSION (YYYY-MM-DD)\n\n### Features\n- \u003Csubject> (\u003Cshort-sha>)\n\n### Fixes\n- ...\n\n### Other\n- ...  # chore\u002Fdocs\u002Frefactor\u002Fetc collapsed here\n```\n\n**If not detected**, emit a flat list:\n\n```\n## vNEXT_VERSION (YYYY-MM-DD)\n\n- \u003Csubject> (\u003Cshort-sha>)\n- ...\n```\n\nUse:\n\n```\ngit log $RANGE --pretty=format:'%s|%h|%an' --no-merges\n```\n\nSkip merge commits. Do not include author emails. Do not invent groupings the commits don't support.\n\nShow the notes to the user. Ask via `question` tool with options: `(a)ccept \u002F (e)dit \u002F (q)uit`. On `e`, open the user's editor or accept inline edits.\n\n---\n\n## Phase 5 — Commit, tag, and push gate\n\nUse `todowrite` to mark this phase as `in_progress`.\n\nExit condition: local commit + annotated tag exist; remote push is **explicitly authorized** by the user.\n\nBefore creating the release commit\u002Ftag, invoke `check-release-risk` by loading `skill({ name: \"check-release-risk\" })` against the release range unless the range is empty, doc-only, or comment-only. Include any risks in the push gate so the user sees public API, persistence, auth\u002Fpayment, env\u002Fsetup, manual QA, docs\u002Fchangelog, and rollback concerns before publishing the tag.\n\nRun sequentially (each must succeed before the next):\n\n```\ngit add \u003Cmanifest> \u003Clockfile-if-any>\ngit commit -m \"chore(release): vNEXT_VERSION\"\ngit tag -a vNEXT_VERSION -m \"\u003Crelease notes>\"\n```\n\nTag prefix is `v` (e.g. `v1.4.0`). The manifest stays unprefixed.\n\n**STOP before pushing.** Show:\n\n```\nLocal release ready:\n  commit: \u003Csha> chore(release): vNEXT_VERSION\n  tag:    vNEXT_VERSION\n\nTo publish:\n  git push --follow-tags\n\nPush now? (y\u002FN)\n```\n\nOnly run `git push --follow-tags` on explicit `y` via `question` tool. Default is no-push so the user can review or amend.\n\n---\n\n## NEVER\n\n- **NEVER push the tag without explicit user confirmation in this turn**\n  **Instead:** Stop after creating the local tag and ask via `question` tool. A prior session's \"yes\" doesn't carry forward.\n  **Why:** Tags pushed to shared remotes are effectively immutable — collaborators, CI, and package registries may pick them up within seconds. Rolling back means a force-delete on the remote and a new tag, which breaks anyone who already pulled.\n\n- **NEVER bump and tag with a dirty working tree**\n  **Instead:** Stop in Phase 1, surface dirty files, let the user resolve.\n  **Why:** The release commit silently absorbs unrelated changes; the tag then points at code that doesn't match the user's mental model of \"what shipped in this version.\"\n\n- **NEVER skip Phase 1.5 to \"save time\" or because the user said \u002Frelease in a hurry**\n  **Instead:** Run the mode-appropriate gate. If they want speed, they can pass `mode=fast` — that's a documented downgrade, not a silent skip.\n  **Why:** A version tag is treated as authoritative by CI, package registries, and downstream consumers. Letting a broken build get a tag burns trust and forces a `v…-rc` or yank cycle. The whole point of the redesign is that the tag means shippable.\n\n- **NEVER record a bypassed gate without the `Bypassed-gates:` annotation in the tag body**\n  **Instead:** When the user picks \"tag anyway with failing gates,\" append `Bypassed-gates: \u003Clist>` to both the annotated tag's body and the release notes.\n  **Why:** Bypasses are sometimes necessary; silent bypasses are not. The annotation is what lets a future operator look at `git tag -l -n99 v1.4.0` and know this version shipped with known failures.\n\n- **NEVER reuse or overwrite an existing tag**\n  **Instead:** Stop in Phase 2 when the target tag exists; require deliberate user action.\n  **Why:** Re-tagging poisons caches in registries (npm, crates.io), CI artifact stores, and downstream consumers' lockfiles. The original tag may already be deployed.\n\n- **NEVER fabricate release notes or invent conventional-commit groupings the log doesn't support**\n  **Instead:** Use the actual subject lines; fall back to a flat list when commits aren't conventional.\n  **Why:** Synthetic notes mislead users about what changed and erode trust in every future release note this skill produces.\n\n- **NEVER edit the manifest without also syncing the lockfile**\n  **Instead:** Use the package manager's `version` subcommand when available (`npm version`, `pnpm version`), or run the lockfile update explicitly.\n  **Why:** A version-bump commit with an out-of-sync lockfile breaks `npm ci` \u002F `pnpm install --frozen-lockfile` in CI immediately after the tag is cut.\n\n- **NEVER use `git tag` (lightweight) instead of `git tag -a` (annotated)**\n  **Instead:** Always `git tag -a vX.Y.Z -m \"\u003Cnotes>\"`.\n  **Why:** Lightweight tags have no author, date, or message — release notes vanish, and `git describe` behaves inconsistently.\n\n- **NEVER bump a `marketplace.json` without auditing every per-plugin `plugin.json`**\n  **Instead:** Always run the diff-driven sweep from `references\u002Fclaude-plugin-marketplace.md`. Bump every changed plugin alongside the marketplace.\n  **Why:** Claude Code's plugin updater reads each plugin's own `version`, not the marketplace version. A marketplace-only bump ships a release that's invisible to users — this is the v0.12.0 → v0.12.1 churn that motivated this rule.\n\n- **NEVER bump a per-plugin `plugin.json` whose code didn't change since `LAST_TAG`**\n  **Instead:** Run `git diff --name-only $LAST_TAG..HEAD -- plugins\u002F\u003Cname>\u002F ':!plugins\u002F\u003Cname>\u002F.claude-plugin\u002Fplugin.json'` per plugin; bump only those with non-empty output. The marketplace-level bump is separate and always happens.\n  **Why:** Bumping unchanged plugins forces consumers to re-download them, pollutes their changelog with empty releases, and makes \"what actually changed in v0.X\" un-answerable from version numbers alone.\n\n- **NEVER skip a phase because \"the repo looks fine\"**\n  **Instead:** Run preflight every time; cheap checks catch the dirty-tree \u002F wrong-branch \u002F existing-tag cases that cost the most to undo.\n  **Why:** The cost asymmetry is enormous — a 2-second `git status` versus a force-pushed bad tag.\n",{},"main","a40966cd3b7323e693a9fd665ab9c720d8bf9634","skills\u002Frelease",0,"https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@acauhi\u002Fopencode-agent-system","https:\u002F\u002Fgithub.com\u002FAcauhi99","@github Backend Engineer","2026-07-07 22:24:45",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Acauhi99\u002Fopencode-agent-system --skill release",{"tool":38,"command":39},"bunx","bunx skills add Acauhi99\u002Fopencode-agent-system --skill release",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Acauhi99\u002Fopencode-agent-system --skill release","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Frelease\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fclaude-plugin-marketplace.md","REFERENCE","参考文档",2726,"https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Frelease\u002Freferences\u002Fclaude-plugin-marketplace.md",[53,59,65,72,78,85],{"skillNo":54,"name":55,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M74KEHKFCSF2H23R44MR5DN8","write-tests","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-tests\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M74KEEXZW2185BZ3VJCM7AF6","update-changelog","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Fupdate-changelog\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M74KDVH470SS6WPS8WK3VSW3","triage","Move issues and external PRs through a state machine of triage roles — categorise, verify, grill if needed, and write agent-ready briefs.","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M74KDKGNY0MQXQ0ZHAGYSJJ4","to-prd","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Fto-prd\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M74KD9YN0K59GWMWDT5YHBKY","to-issues","Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Fto-issues\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M74KD14VJAJZ8E4ENN0KP9GV","testing-plan","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Ftesting-plan\u002FSKILL.md",[],[]]