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.
You run one by typing its /name in Claude Code.
1 caution to review before installing
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.
git push を実行する前に 2 レビュー を必ず実行させ、 未レビューな commit が remote に到達するのを構造的にブロックするプラグインです。 2 レビューはどちらも subagent 経由で実行されます:
pre-push-review:code-reviewer subagent (self-contained correctness バグ検出 / 詳細は Agents)pre-push-review:security-reviewer subagent (self-contained security review / 詳細は Agents)codex review の gate は独立した pre-push-codex-review プラグインが提供し、本プラグインは codex review のマーカー (.claude-pre-push-codex-reviewed) を参照しません。両プラグインを併用すると push 前のレビューは 3 レビュー構成になります。
correctness バグ検出に security review を重ねた defense-in-depth です。 修正や commit 列の変更 (add→revert / amend / rebase 含む) により hash が変わると 2 マーカーは自動失効し、 Claude は再走させる以外に push を通す手段がありません (= ループが構造的に強制されます)。
2 レビューをどちらも subagent 経由に統一していることの意味:
Agent tool で起動し、2 marker とも auto-mark.sh が SubagentStart の launch attestation、PostToolUse (SubagentHandback) での hand-back された report の記録、SubagentStop での parent-safe report 検証を経て発行します。/pre-push-review:review slash command が 2 subagent を並列発出: deny メッセージとともに案内されます。 wall-clock は最遅レビュー 1 本の時間で完了します。Linked worktree では marker、launch attestation、tombstone を main .git 直下ではなく、git rev-parse --absolute-git-dir が返す worktree 専用 git-dir (.git/worktrees/<name>/) に保存します。block-pre-push.sh の deny メッセージは実際の marker storage を表示するため、main .git の同名ファイルを見てレビュー状態を判断しないでください。
v7.1.0
claude plugin marketplace add natsuume/natsuume-cc-marketplace
claude plugin install pre-push-review@natsuume-plugins
jq は push gate の必須依存です。jq が見つからない環境では、未レビューの push を通さないため block-pre-push.sh が git push を fail-closed に deny し、インストール後の再実行を案内します。push と無関係な Bash 呼び出しは影響を受けません。
現行の Codex runtime では安全な reviewer identity 契約を構築できないため、本プラグインは Claude Code 専用で、Codex marketplace では配布していません。
/pre-push-review:reviewファイル: commands/review.md
push 前 2 レビューを 同じアシスタントメッセージで並列に 2 subagent として起動する確定的フローです。 deny メッセージから案内されたら、 Claude はこのコマンドを実行し、 2 subagent (pre-push-review:code-reviewer + pre-push-review:security-reviewer) を 1 つの assistant message 内で並列 Agent tool call として発出します。 2 subagent はどちらも model: "opus" を明示して起動します。 順序や引数の自律判断は構造的に排除されています。
並列発出が技術的に成立しない / 一部のレビューが失敗した場合は、 2 subagent を順次起動しても push gate の構造的保証は同じ (2 マーカーの hash 一致が成立すれば push 可)。 wall-clock が伸びるだけのトレードオフです。
一部の marker のみ「未実行」 / 「失効」 の場合は、 該当 subagent だけを Agent tool で単独再起動するのが正規経路です (block-pre-push.sh の deny メッセージも同じ案内をします。 完了は SubagentStop で検知されるため起動 mode は問いません)。 2 subagent 並列発出が既定であることは変わりません。
Bash)ファイル: hooks/scripts/block-pre-push.sh
git push を含むコマンドを検出した際、 commit 列 (HEAD / merge-base の OID) + ブランチ全差分 + 未コミット差分のハッシュと 2 つのレビューマーカー (code-reviewer / security-reviewer subagent 起因) のハッシュを比較し、 2 マーカーがすべて一致しなければ deny を返します。 変更がテキスト系文書だけの push では、 security-reviewer のマーカーだけを要求します (テキスト系文書のみの変更)。
動作:
git push --dry-run / git push -n (remote ref を更新しない診断 push) は markers の状態に関わらず通す (no-op なので gate 不要)git push) と複合コマンド (xxx && git push ..., cd dir && git push ...) の双方を検出git -C dir push や git --git-dir=... push、 GIT_DIR=... git push のような target-override 形式も許容 (cooperative 利用前提)git-guardrails の block-default-branch-push.sh に委譲 (重複 deny メッセージを避けるため)head <HEAD の commit OID> 行 + mbase <merge-base の commit OID> 行 + git diff <merge-base> HEAD + git diff --cached + git diff (diff 3 種はいずれも --no-ext-diff --no-textconv 付き) を連結した入力に対する sha256 として計算する。 HEAD の commit OID をハッシュ入力に束縛しているため、 レビュー後に commit A を積んでから revert して戻す (net diff は review 時と同一でも commit 列は変わっている) 操作でもマーカーは自動失効する。 未コミットの edit があると git diff --cached / git diff の内容が変わりハッシュも変わるため、 markers が失効し commit + 再 review を強制できるdeny 時の permissionDecisionReason には、 各マーカーの状態 (未実行 / 失効 / ✓ 最新の差分でレビュー済み) と /pre-push-review:review を記載する。 変更がテキスト系文書だけの push では、 security review のマーカーの状態と pre-push-review:security-reviewer の起動だけを記載するnpx claudepluginhub natsuume/natsuume-cc-marketplace --plugin pre-push-reviewBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground