{"id":"version-release","name":"version-release","summary":"このリポジトリに対して正しい意味バージョンアップを選択して適用してください。ユーザーが見えるすべてのリリースで使用し、変更セットがパッチ、マイナー、メジャーとしてリリースされるべきマージ前、パッケージ/プラグイン/デスクトップバージョンのメタデータが同期しなければならない時に使用されます。","body":"# Version Release Skill\n\nApply Semantic Versioning across CCAM:\n\n- **Patch** (`X.Y.Z+1`): backward-compatible fixes, docs-only work, dependency/security maintenance, refactors, or small improvements without a substantial new capability.\n- **Minor** (`X.Y+1.0`): backward-compatible features or meaningfully larger capabilities such as new workflows, pages, integrations, API fields/routes, or major UX surfaces.\n- **Major** (`X+1.0.0`): breaking public behavior, removed or renamed contracts, required migrations, or fundamental product/architecture changes.\n\nChoose the highest applicable category. If the boundary is ambiguous, prefer the higher bump or ask before release. Do not classify from diff size or commit count alone.\nAn explicit user-requested version takes precedence over automatic classification. Record the override, synchronize that exact version, and do not silently substitute a different patch, minor, or major number.\n\n## Workflow\n\n- Explain the chosen bump from the current root version.\n- Update root and desktop package/lockfile versions.\n- Update the OpenAPI version example and regenerate `openapi.yaml`.\n- Update the deployment surface: `docker-compose.yml` image tags (`ccam-dashboard`, `ccam-mcp`), the Helm chart's `version` and `appVersion`, every `deployments/kubernetes/**` version label, image tag, and kustomize `newTag`, and `deployments/scripts/deploy.sh` (both the `--tag` example and the `sed` substitution).\n- Update the release shown in `DEPLOYMENT.md`, `docs/DEPLOYMENT.md`, and `CITATION.cff`.\n- Update version-sensitive UI snapshots; the dashboard renders `UI build v<version>`, so regenerate and confirm the diff is only that line.\n- Run `npm run extensions:sync` to regenerate Claude/Codex plugin manifests and both marketplaces.\n- Keep independently shipped client/MCP/monitoring/VS Code package versions unchanged unless explicitly included.\n- Create or reuse the exact open GitHub milestone `v<version>` for the new root version. Query all milestones first. If the exact title already exists closed or more than once, stop and resolve that release state instead of creating a duplicate.\n- Assign the current open pull request containing the bump to `v<version>`. Read its `closingIssuesReferences` and assign every linked closing issue to the same milestone. If no PR exists yet, leave this step explicitly incomplete until the PR is created.\n- Verify the PR and every linked issue report the expected milestone with fresh GitHub reads.\n- Run `npm run extensions:validate`, relevant tests/builds, and the CLI version check.\n- Never create or move a release tag without explicit user approval.\n\n## Authoritative surface list\n\n`server/__tests__/release-version-consistency.test.js` is the machine-checkable release contract. Read it before bumping and run it after:\n\n```bash\nnode --test server/__tests__/release-version-consistency.test.js\n```\n\nIt covers root/desktop packages and lockfiles, live and generated OpenAPI, Compose and Helm, Kubernetes labels/images/kustomize tags, generated plugin manifests, both marketplaces, the deployment guides and `deploy.sh`, and the negative assertion that independently shipped subprojects were not dragged along.\n\nAny new file carrying the release version needs an assertion added in the same change. An unasserted surface drifts silently — `CITATION.cff` sat at `1.1.0` across many releases for exactly this reason.\n\nBefore finishing, sweep for the previous version and expect zero hits outside lockfile history and deliberate historical references such as \"pre-v2.0.9\":\n\n```bash\nprevious_version=\"$(git show HEAD:package.json | node -p 'JSON.parse(require(\"fs\").readFileSync(0,\"utf8\")).version')\"\ngrep -rFn \"$previous_version\" --exclude-dir=node_modules --exclude-dir=.git \\\n  --exclude-dir=dist --exclude-dir=.worktrees .\n```\n\n`grep -F` matters: the dots in a version are regex wildcards otherwise, so a\nplain `grep -r` also matches unrelated strings like `2a0b11`. Reading the\nprevious value from `HEAD:package.json` keeps the command runnable as-is\nmid-bump, before the change is committed.\n\nDo not bump: `sw.js` / `client/public/sw.js` cache generations (not release-tied; `wiki/sw.js` belongs to the docs skill), the Helm `values.yaml` `tag: \"\"` which falls back to `appVersion`, or the independently versioned `client`, `mcp`, `monitoring`, and `vscode-extension` packages.\n\nNever blanket find-and-replace the version across the repo: it pulls in the independent subprojects and rewrites historical references.\n\n## GitHub milestone workflow\n\nRun `gh auth status` first. Stop if the active account is not the intended identity for the repository.\n\n```bash\nrepo=\"$(gh repo view --json nameWithOwner --jq .nameWithOwner)\"\nversion=\"$(node -p \"require('./package.json').version\")\"\nmilestone=\"v${version}\"\npr=\"$(gh pr view --json number --jq .number)\"\n\nexisting=\"$(\n  gh api \"repos/${repo}/milestones?state=all&per_page=100\" --paginate \\\n    --jq \".[] | select(.title == \\\"${milestone}\\\") | [.number, .state] | @tsv\"\n)\"\n```\n\n- Empty `existing`: create with `gh api --method POST \"repos/${repo}/milestones\" -f title=\"${milestone}\"`.\n- One open match: reuse it.\n- Closed or duplicate matches: stop. Do not create another release milestone.\n- Assign the PR with `gh pr edit \"$pr\" --milestone \"$milestone\"`.\n- Read linked issues with `gh pr view \"$pr\" --json closingIssuesReferences`, then assign each same-repository issue with `gh issue edit <number> --milestone \"$milestone\"`.\n- If a closing issue belongs to another repository, stop and report it. Milestones are repository-scoped, so do not mutate another repository implicitly.\n- Verify with `gh pr view \"$pr\" --json milestone,closingIssuesReferences` and fresh `gh issue view <number> --json milestone` calls.\n\nMilestone creation and assignment are required release bookkeeping for a version bump. They do not authorize creating a Git tag or GitHub Release.\n\n## References\n\n- `references/version-checklist.md`","author":"@hoangsonww","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/hoangsonww/Claude-Code-Agent-Monitor/tree/master/.agents/skills/version-release","license":"MIT","category":"document","lang":"en","tokens":1346,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"agents/openai.yaml","size":384,"sha256":"c88663a9fdf229f38cf9be890359cd75e14041d8210cda0285ee52f2fe569b78"},{"path":"references/version-checklist.md","size":1406,"sha256":"3b67766b438c66da50d8f2d7ecb1d1412867d6e30017143f1d7d9d6e08c89927"}],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}