commit-review-gate

commit-review-gate is a skill for Claude Code, Codex from orlando-japan/claude-code-setting. It costs 39 tokens per session (487 once invoked), scanned A, original, MIT.

A final review checklist for a cleaned Git change before it is committed. It classifies the change as Pass, Pass with nits, or Block based on scope, risk, evidence, history, and commit-message clarity.

In plain words
What is it for?
Use it to review a staged diff and decide whether it is ready to commit or needs further changes.
Why use it?
It catches mixed changes, hidden risks, missing validation, and unclear history before they become part of the project’s commit record.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/orlando-japan/claude-code-setting/commit-review-gate
Any agent
npx skills add orlando-japan/claude-code-setting --skill commit-review-gate
Clone the repo
git clone --depth 1 https://github.com/orlando-japan/claude-code-setting

Made for: Claude Code, Codex.

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 commit-review-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/commit-review-gate.svg)](https://agentmods.dev/skills/orlando-japan/claude-code-setting/commit-review-gate)
Your own site
<a href="https://agentmods.dev/skills/orlando-japan/claude-code-setting/commit-review-gate"><img src="https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/commit-review-gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 487 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.00487
Opus 5 $0.00019 $0.00244
Sonnet 5 $0.00008 $0.00097
Haiku 4.5 $0.00004 $0.00049

Measured 4d ago against content hash 9538b25e0c4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commit-review-gate 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 4d ago.

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.

templates/extra/skills/commit-review-gate/SKILL.md · 72 lines

What it actually says

Commit review gate

This is the last reviewer pass before a commit is created or blessed. The diff should already be clean; now the question is whether the history entry is actually worth keeping.

Review goal

Decide whether the proposed commit is:

  • Pass — safe, scoped, and history-worthy
  • Pass with nits — acceptable now, but a few improvements are still worth noting
  • Block — should not be committed in its current form

Gate checklist

  1. Scope clarity
    • Does the staged diff represent one logical change?
  2. Risk clarity
    • Are migration, config, auth, or data risks clearly surfaced?
  3. Evidence level
    • Is there a matching test, validation step, or obvious reason why one is unnecessary?
  4. History quality
    • Will a future reviewer understand why this commit exists?
  5. Message readiness
    • Is the intended commit type/scope obvious from the diff?

Default decision rules

Pass

  • single logical change
  • no hidden safety risk
  • evidence level is appropriate
  • commit message shape is obvious

Pass with nits

  • basically sound, but naming / test / body rationale could be sharper

Block

  • mixed scope
  • hidden risky files
  • no evidence for a risky change
  • commit intent is unclear
  • should be split into multiple commits first

Preferred output

Decision: Pass | Pass with nits | Block

Why:
- <scope assessment>
- <risk assessment>
- <evidence assessment>

If blocked, do this next:
- <split / test / unstaging action>

Anti-patterns

  • Re-running hygiene instead of reviewing — this skill assumes the diff is already cleaned.
  • Approving because the code "looks fine" — commit quality is about scope and history, not only correctness.
  • Blocking on tiny style nits — reserve Block for issues that harm safety, scope, or history quality.
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. 4d ago First seen · 72 lines · 39 tokens per session scan A 9538b25e0c4e

Subscribe to this mod's changes

commit-review-gate is a skill published in the GitHub repository orlando-japan/claude-code-setting (2 stars, last pushed 3mo ago), licensed MIT. It adds 39 tokens to every session and 487 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

fresh-eyes-review

This skill should be used as a mandatory final sanity check before git commit, PR creation, or declaring work done. Triggers on "commit", "push", "PR", "pull request", "done", "finished", "complete", "ship", "deploy", "ready to merge". Catches security vulnerabilities, logic errors, and business rule bugs that slip…

2389-research/fresh-eyes-review · 83 tokens

commit

Creates commits with Conventional Commits format (feat/fix/docs/refactor/test/chore), automatic scope detection, co-author attribution, and pre-commit hook compliance. Validates staged changes, generates descriptive messages focusing on the 'why', and prevents secrets or generated-only files from being committed.…

yonatangross/orchestkit · 91 tokens

git-iris

Use this skill when generating commit messages, pull request descriptions, release notes, changelogs, or code reviews in a repository where git-iris is available. Activates on requests like "commit this", "write a commit message", "draft a PR", "generate release notes", "write a changelog", or "review my changes" when…

hyperb1iss/git-iris · 81 tokens

lrc

Manage LiveReview code review for staged changes in this repo. Run /lrc review to open a browser-based AI review of staged changes before committing. Use /lrc skip to bypass review and write an attestation, or /lrc vouch to manually approve without AI. Check and toggle hook state with /lrc hooks status, hooks disable…

HexmosTech/git-lrc · 124 tokens

fix-pr-commit-titles

Bulk-rewrite commit titles on a PR branch to match [LKPR-N] format using filter-branch — avoids per-commit hook re-runs.

Jessinra/Lorekeeper · 38 tokens

commit-convention

Git commit convention for Lorekeeper — enforced by commit-msg hook. Covers author identity, ticket tags, and message format for both PM (Akane) and Dev roles.

Jessinra/Lorekeeper · 38 tokens