release-kick

release-kick is a command for Claude Code from s977043/river-review. It costs 64 tokens per session (3,796 once invoked), scanned A, original, MIT.

A release command for the River Review project that checks release instructions and pull-request state, updates an out-of-date branch, and verifies the release after merging.

In plain words
What is it for?
Preparing and completing release-please pull requests, handling branches that are behind the main branch, merging the release, and confirming publication.
Why use it?
It follows the project’s documented procedure for resolving a blocked release pull request and checking that the published release is available.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Bash(gh api user:*), Bash(gh auth switch:*), Bash(gh pr view:*), Bash(gh pr checks:*), Bash(gh pr merge:*), Bash(gh pr edit:*), Bash(gh issue view:*), Bash(gh a.

Part of the river-review plugin — 138 skills, 18 commands, 5 agents, 3 hooks shipped together

Good fit Preparing and completing release-please pull requests, handling branches that are behind the main branch, merging the release, and confirming publication.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/s977043/river-review
agentmods
npx agentmods add commands/s977043/river-review/release-kick

Made for: Claude Code.

Or install river-review, the plugin that ships this one along with the rest of its 138 skills, 18 commands, 5 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for release-kick

README.md
[![agentmods](https://agentmods.dev/badge/commands/s977043/river-review/release-kick.svg)](https://agentmods.dev/commands/s977043/river-review/release-kick)
Your own site
<a href="https://agentmods.dev/commands/s977043/river-review/release-kick"><img src="https://agentmods.dev/badge/commands/s977043/river-review/release-kick.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,796 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.03796
Opus 5 $0.00032 $0.01898
Sonnet 5 $0.00013 $0.00759
Haiku 4.5 $0.00006 $0.00380

Measured today against content hash 7a6c50fddd16, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

release-kick scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/release-kick.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

release PR #$ARGUMENTS を、BLOCKED 解除からマージ・リリース公開の検証まで一貫して実行する。

release-please が生成するリリース PR の head は GITHUB_TOKEN push であるため、通常は mergeStateStatus: BLOCKED("N of N required checks are expected")になる(CLAUDE.md「N of N required checks are expected = bot/GITHUB_TOKEN push」ガード参照)。この BLOCKED の原因・RELEASE_KICK_PAT のセットアップ・workflow_dispatch 版が deprecated である理由は docs/runbook/bot-pushed-head-kick.md が SSoT。kick の正規手順は scripts/release-please-kick.sh であり、workflow 版は使えない。本コマンドはそれを前提に、実際にマージして公開を確認するまでの実行手順を1コマンド化したもの。矛盾があれば runbook を正とし、本コマンドを修正する。

手順

Step 0. 手順書の鮮度確認

git fetch origin
git diff --quiet HEAD origin/main -- .claude/commands/release-kick.md docs/runbook/bot-pushed-head-kick.md || echo "手順書が古い: origin/main 版を読み直すこと"

ローカル main が origin より遅れていると、改訂前の手順書を読んだまま実走することになる。上のメッセージが出たら git pull で追いついてから、本コマンドと runbook を読み直す。差分がなければ何も出力されない。

v1.67.1 の実走では、ローカルが 24 コミット遅れていた。その結果、#1702 による改訂前の版を読み込んだまま実走している。#1702 のマージ時刻はキックの 16 分前だった。

Step 1. gh アカウント確認

gh api user --jq .login | grep -q s977043 || gh auth switch -u s977043

PreToolUse hook (gh-account-guard.sh) が defense-in-depth で効くが、セッション開始時の確認は省略しない。 s977043 は本リポジトリのメンテナアカウント(CLAUDE.md「Verify gh active account before write ops」ガードと同一の値で、そちらが SSoT)。フォーク運用時は自分のアカウントに読み替える。

Step 2. PR 状態の確認と BEHIND 判定

gh pr view $ARGUMENTS --json state,mergeStateStatus,headRefOid
releaseBranch=$(gh pr view $ARGUMENTS --json headRefName --jq .headRefName)
gh api "repos/:owner/:repo/compare/main...$releaseBranch" --jq '{status, ahead_by, behind_by}'

mergeStateStatus: BLOCKED は release-please PR の通常挙動。CLEAN なら Step 3〜5 をスキップして Step 6 へ進む。

BLOCKED の場合は behind_by の値で次に打つ手が変わる。mergeable_state は単一の値しか返さず BEHIND と BLOCKED の複合状態を見分けられないため、compare の behind_by で判定する。

behind_by 状態 次に進む Step 空コミット kick
> 0 BEHIND + BLOCKED Step 3(update-branch) CI が実発火すれば不要
0 純 BLOCKED Step 4(kick) 必要

Read the full file on GitHub · 158 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +10 lines 7a6c50fddd16
  2. 3d ago Changed 90cba73af0c2
  3. 7d ago First seen · 148 lines · 64 tokens per session scan A 2010d95aad41

Subscribe to this mod's changes

release-kick is a command published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 3,796 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.