agentleFS
nonz250nonz250/ai-rotom/.claude/skills/bump-version/SKILL.md

bump-version

Skill23 starsChanged 9 days agoMITView on GitHub

npm で公開する mcp-server(@nonz250/ai-rotom)の版を上げ、GitHub Release を作って npm への公開とリモート版のデプロイまでを進める。ユーザーが「バージョンを上げて」「版上げ」「bump version」「リリースして」「1.5.0 を出して」「npm に公開して」と言ったときに使用する。

  • Commits and pushes

44 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oss-pr, pr-automation and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • volovelySkill

    pr-fix

    This skill should be used when the user asks to "fix PR comments", "address PR feedback", "resolve PR comments", provides a GitHub PR URL with intent to fix, or says "pr-fix". It reads all review comments on a PR, decides which need code fixes vs. replies, makes the fixes, and posts replies — all with explicit user approval before any GitHub action.

    Also in 3 projects that use this

  • lbednerSkill

    i18n

    Use when a code or template change introduces a new translation message key, in either the framework CLI (aegis/i18n/locales/) or a generated project's CLI (the app/i18n/locales/ template tree). Covers adding the real English string, stubbing the same key into every other locale for parity, and the separate translation PR that later replaces placeholders with reviewed native text.

    Also in 4 projects that use this

  • AnthropicSkill

    architecture

    Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.

    Also in 4 projects that use this

  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 5 projects that use this

  • +2 more from CES-Ltd

The file

Files
SKILL.md

mcp-server の版上げとリリース

版の方針はルートの CLAUDE.md の「版とリリース」に従う。npm に出した版は取り消せないので、Release を公開する前に必ずユーザーの確認を取る。

1. 上げる版を決める

上げる版はユーザーが決める。引数で渡された版は $ARGUMENTS で、これを使う。空なら、今の版と前のタグからマージされた PR を見せて聞く。上げ幅を提案しない。

node -p "require('./packages/mcp-server/package.json').version"
gh release list --limit 1
gh pr list --state merged --base main --limit 200 --search "merged:>$(gh release view --json publishedAt -q .publishedAt)" --json number,title -q '.[] | "#\(.number) \(.title)"'

一覧が 200 件ちょうどなら、それより前の PR が切れているので、そのことをユーザーに伝える。

X.Y.Z の形で、今の版より大きいことを確かめる。引数に v が付いていたら外す。タグにも v は付けない。

2. 版を書き換える

main を最新にしてから topic ブランチを切る。ほかの topic ブランチから切ると、そのブランチの未マージのコミットが版上げの PR に混ざる。ブランチ名は bump-version-X.Y.Z とし、個人の命名の決まりがあればそれに従う。以降の <repo> はリポジトリのパスに置き換える。

git -C <repo> switch main
git -C <repo> pull --ff-only
git -C <repo> switch -c bump-version-X.Y.Z

次の 3 か所を同じ版にする。

npm version X.Y.Z --workspace=@nonz250/ai-rotom --no-git-tag-version --ignore-scripts

これで packages/mcp-server/package.json と package-lock.json が変わる。続けて packages/mcp-server/src/core-server.ts の SERVER_VERSION を手で同じ版に書き換える。初期化でクライアントに名乗る版で、ずれると core-server.test.ts が落ちる。

package-lock.json の差分が mcp-server の version の 1 行だけであることを確かめる。integrity などほかの行が変わっていたら、先に進まずユーザーに伝える。

git -C <repo> diff --stat
git -C <repo> diff package-lock.json
npm test

3. PR を作る

コミットメッセージは chore: mcp-server のバージョンを X.Y.Z に上げる とし、本文にこの版に含める主な変更と、破壊的変更があればそのことを書く。create-pr の手順で Draft PR を作る。Ready とマージはユーザーが行う。

4. Release を下書きで作る

PR がマージされたら、その PR のマージコミットを指して Release を下書きで作る。手元の main の先頭を指すと、まだ push していないコミットや、版上げの後にマージされた PR まで含めてしまう。

gh release create X.Y.Z --draft --title X.Y.Z --target "$(gh pr view <PR 番号> --json mergeCommit -q .mergeCommit.oid)" --generate-notes

前の版から破壊的変更があるときは、自動で作られた一覧の上に ## Breaking Changes を足し、該当する PR と利用者が何をすればよいかを書く。書き方は過去の Release にそろえる。

mkdir -p "${CLAUDE_JOB_DIR:-/tmp}/tmp"
gh release view X.Y.Z --json body -q .body > "${CLAUDE_JOB_DIR:-/tmp}/tmp/release-X.Y.Z.md"
gh release edit X.Y.Z --notes-file "${CLAUDE_JOB_DIR:-/tmp}/tmp/release-X.Y.Z.md"

5. 公開する

下書きの URL と本文をユーザーに見せ、公開してよいか確認を取ってから公開する。

gh release edit X.Y.Z --draft=false

公開すると次の 2 つのワークフローが動く。

  • publish.yml が npm に公開する
  • deploy-worker.yml がリモート版をデプロイする

それぞれの run を探し、run_in_background で完了を待つ。公開の直後はまだ run が作られていないことがあり、そのまま一覧の先頭を取ると前の版の run を見てしまう。release で動いた run は headBranch がタグ名になるので、X.Y.Z の run が出てくるまで探し直す。

gh run list --workflow publish.yml --event release --json databaseId,headBranch,status -q '.[] | select(.headBranch == "X.Y.Z")'
gh run list --workflow deploy-worker.yml --event release --json databaseId,headBranch,status -q '.[] | select(.headBranch == "X.Y.Z")'
gh run watch <run-id> --exit-status

run が進まないときは、その状態をユーザーに伝えて待つ。失敗したら、ログの要点をユーザーに伝える。勝手に再実行しない。

6. 結果を確かめる

npm の版が上がったことを確かめる。

npm view @nonz250/ai-rotom version

本番のリモート版にリクエストを送って確かめることはしない。デプロイのワークフローが成功したことまでを報告し、動作の確認はユーザーに任せる。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.