Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude hands work to one, or you mention it with @.
1 critical · 1 caution to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it decides whether tool calls may run; sees, changes or blocks tool calls.
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
gh pr merge を実行する前に codex review (OpenAI クロスモデルレビュー) の完了を確認し、未レビューな PR が merge されるのを防ぐプラグインです。個人環境 (ChatGPT Plus の codex CLI) 向けに、git push の都度ではなく merge 前に 1 回だけ codex review を行う運用を成立させます。GitHub には何も書きません。単独 install で自立動作します。
レビュー済みの証拠は merge 実行 repo の git-dir 直下にあるローカル記録 です。codex-reviewer subagent が起動する wrapper は、レビュー対象の PR 番号と head SHA を pending attestation として git-dir 直下に書き、subagent lifecycle hook (auto-mark.sh) が parent-safe report を検証して final attestation へ昇格します。gh pr merge を実行すると、merge gate が final attestation を PR 番号と現在の head SHA の両方と照合し、一致した場合だけ merge を通します。PR に commit を追加すると head SHA が変わるため、記録は自動的に「古いレビュー」となり、再レビューなしには merge が通りません。PR の変更がテキスト系文書だけの場合は、記録を要求せずに merge を通します (テキスト系文書のみの変更)。
v4.1.0
claude plugin marketplace add natsuume/natsuume-cc-marketplace
claude plugin install pre-merge-cross-review@natsuume-plugins
公式 codex プラグインへの依存があるため、codex review wrapper を動作させるには次も install してください:
claude plugin install codex@openai-codex
review cadence (Codex review 一定回数ごとの checkpoint 強制) の計数は pre-push-codex-review (v4.0.0 以上) の lifecycle hook が担います。計数対象は codex-reviewer です。本 plugin は pre-push-codex-review との同時 install を前提としないため、本 plugin 単独構成 (個人環境) では review cadence は適用されません (明示的な仕様です)。
jq と gh は merge gate の必須依存です。いずれかが見つからない環境では、未レビューの merge を通さないため block-pre-merge.sh が gh pr merge を fail-closed に deny し、インストール後の再実行を案内します。merge と無関係な Bash 呼び出しは影響を受けません。
ただし jq 不在時はコマンド文字列を取り出せず判定が hook payload 全体に対する粗い文字列フィルタに落ちるため、merge と無関係でも gh / pr / merge に類する文字列を含むコマンドが稀に deny されることがあります (jq を install すると解消します)。
Bash)ファイル: hooks/scripts/block-pre-merge.sh
次の手順で merge を確認します:
gh pr merge の連続列を含む場合のみ関与する。含まないコマンドには関与しない (無出力)。連続列の検出は粗い文字列判定であり、quoted な言及等で誤爆した場合はコマンドの言い換えで回避できる--auto / --admin (遅延 merge 予約・保護 bypass) または --repo / -R (別 repo の PR を merge しうる repo selector) の文字列を含む場合は deny する (粗い文字列検出でよく、レビュー記録の有無に依らない)gh pr merge [<number>] [flags...] に完全一致するかを確認する (照合の前に、コマンド前後の空行・空白・区切りだけは落とす)。番号を置けるのは gh pr merge の直後の 1 語だけで、それ以降は長フラグ (--name / --name=value) と単文字の短フラグ (-d 等) のみを許す。短フラグの束ね形 (-dR 等) は受理しない (束の中に repo selector を隠すと --repo / -R の文字列検出をすり抜けるため)。一致しない関与形 — リダイレクト (> file / 2>&1 / 10> file 等)、シェル演算子による連結 (&& / || / ; / | / &)、quote、$ 展開、フラグより後ろの数字、複数の merge、前置コマンド — は 一律 deny する (gate の解釈と shell の実挙動が乖離しうるため。リダイレクトや連結を外した単独コマンドへの言い換えで対応する)cwd (merge が実行されるディレクトリ) を正本とする。cwd の欠落・空・非絶対パス・不在ディレクトリ・移動不能はいずれも deny する (hook プロセスの cwd への fallback は持たない)gh pr view --json number,headRefOid,baseRefName) に委ねる (正規形で番号があればその番号、無ければ current branch の PR)。gh / jq が見つからない・PR を解決できない・取得に失敗した・PR 番号や head SHA が得られない場合はすべて deny する (fail-closed)。gh は取得だけに使い、PR のレビューやコメントは読まず、GitHub には何も書かないrefs/remotes/origin/<base branch 名> と PR の head SHA の merge-base から head までの変更がテキスト系文書だけなら、レビュー記録を照合せずに無出力で終了する (既定の許可フローに委ねる。定義と判定の範囲は テキスト系文書のみの変更)。base branch 名が空・- 始まり・git の branch 名の規則を満たさない場合と、head SHA が 40 桁の小文字 16 進数でない場合は判定せず、判定が成立しない場合と同じく次の記録の検証へ進む.claude-pre-merge-codex-reviewed) が symlink でない通常ファイルで、1 行目 pr=<全数字> / 2 行目 head=<40 hex 小文字> の形式を満たし、PR 番号と現在の head SHA の両方に一致する場合のみ無出力で終了する (既定の許可フローに委ねる)。記録は消さない (merge が失敗して再実行する場合も同じ記録で通り、head SHA が変われば自動的に失効する)pre-merge-cross-review:codex-reviewer subagent の実行を案内する。subagent がレビューを実行してローカルに記録を保存し、その後の gh pr merge で gate が記録を検証してから merge に進む流れを示す。レビューは current branch の PR に対して実行され記録もその PR に紐づくため、別 PR を番号指定して merge する場合は、先にその PR のブランチへ git switch してから subagent を起動する必要がある旨も併せて案内するBash)ファイル: hooks/scripts/block-bg-codex-wrapper.sh
codex review wrapper (run-pre-merge-codex-review.sh) の起動を検証する PreToolUse hook です。hook payload トップレベルの agent_type が pre-merge-cross-review:codex-reviewer (namespace 付き完全一致) でなければ fail-closed に deny します。background 起動・pipeline 経由の起動も同様に deny します。wrapper の basename を pre-push-codex-review の wrapper (run-pre-push-codex-review.sh) と別名にしているのは、両 plugin が併存する環境で互いの wrapper 検出 gate (basename ベース) が相手の wrapper 起動を deny し合う干渉を塞ぐためです。
ファイル: hooks/scripts/auto-mark.sh
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub natsuume/natsuume-cc-marketplace --plugin pre-merge-cross-review