claudeers.
// Developer Tools

code-review-gate-skill

Auditable code review skill for Claude Code and Codex: four independent probes, evidence-backed findings, and a JSON-derived merge gate.

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up code-review-gate-skill (release-binary project) into my current project.
Found on https://claudeers.com/code-review-gate-skill
Repo: https://github.com/kyy-logs/code-review-gate-skill
Homepage/docs: —
Detected install method: release-binary → inspect the README
Category: devtools. Platforms: cli, api.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
unknown; community-verified: false. Confirm the source before running anything.
// or install directly (release-binary)

Grab the latest release asset from GitHub.

# download a build from https://github.com/kyy-logs/code-review-gate-skill/releases
// or clone
git clone https://github.com/kyy-logs/code-review-gate-skill

// compatibility

Platformscli, api
Operating systems—
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

Get your FREE $2.50 API credits to access TickAtlas financial data ↗

code-review-gate-skill

English | 简体中文

Evidence-backed code review. Static-first, probe-driven, and gated.

The skill sources live in skills/code-review-gate/ (English) and skills/code-review-gate-zh/ (Chinese), independently of any host's installation directory. The current stable release is v0.2.4; see VERSION.

Most AI reviews stop at “this looks risky.” This skill produces a review you can audit: every finding points to a location, a contract or code path, and a severity; every gate decision is rendered from machine-readable JSON. It reads the diff, surrounding source, tests, and project rules — no build, test run, or coverage report required.

It never modifies the code under review.

Latest news

v0.2.4 (2026-11-10)

Added

  • code-review: strengthen behavior-review evidence for v0.2.4

Full update history

Release status

v0.2.4 is a stable release within the scope described below. Pre-1.0 contract or format changes will be documented in NEWS.

  • Severity is three levels: high, medium, low. Records written by the earlier four-level version, including any critical value, are not compatible; collect-metrics rejects them. Re-run the review or migrate the records before using them with this release.
  • Scope: static-first review with four probes and JSON-derived report/gate output. It does not replace tests, CI, or human review.
  • Validation: 116 offline pipeline, NEWS, installation, bilingual, locale, and source-freshness tests; clean-project end-to-end gate runs; additional probe smokes. These are regression checks, not a general recall claim. Concurrency-defect detection has not been validated.

For the next stable release, update VERSION (for example, to 0.1.1) and push it to main. After Validate skills succeeds, the release workflow generates NEWS from commits, updates the README release information, and publishes the version tag and GitHub Release. Existing releases are preserved; failed CI does not publish.

Contents

Why this skill

No self-grading.

The implementation context does not sign off on its own work. Four probes run in fresh contexts, each files its own evidence, and the gate is derived from those records.

This is separation of duties, not independent human adjudication; all probes still use the same model.

Static-firstWorks on a fresh clone or a partial checkout. Coverage is optional, not a prerequisite.
Evidence contractA finding without a location, summary, and checkable evidence is not a finding.
Four probesBehavior, tests, rules, and impact are separate questions with separate reports.
Machine-checkable gateCounts and blockers come from JSON, not from prose the model retyped.
Auditable outputThe human report and the JSON records are rendered from the same source and verified against each other.

Quick start

Install

Run this command inside your project:

# English (default)
npx -y skills add kyy-logs/code-review-gate-skill --agent codex --skill code-review-gate --yes

# Chinese
npx -y skills add kyy-logs/code-review-gate-skill --agent codex --skill code-review-gate-zh --yes

Use --agent claude-code for Claude Code. Codex installs to .agents/skills/<skill>/; Claude Code installs to .claude/skills/<skill>/. Node.js 22.20+ is required. Install one language per project. The Python installers also accept --lang en|zh-CN and default to English.

Run

Ask in Claude Code:

Review these changes with code-review-gate.

Or invoke the skill directly:

/code-review-gate

For a fixed range:

Use code-review-gate on commits abc123..def456

The skill supports two review modes:

  • worktree — staged, unstaged, and untracked changes against the current HEAD.
  • commits — a fixed base..head range.

Read the result

docs/work/active/{slug}/
├── code-review.md      # human report
├── review-snapshot.json
└── probes/
    ├── behavior-review.json
    ├── test-coverage.json
    ├── repo-guard.json
    └── impact-analysis.json

How it works

Four fresh-context probes run in parallel and write their own JSON; the main executor syncs, reconciles high findings, renders the report, and applies the gate.

The four probes use the same model in fresh contexts. This is separation of duties, not independent human review. A passing gate is not human approval, CI, or proof that no issues remain. The current skill has no separate reviewer or finding-verification stage; raw findings feed the report and gate.

  1. Scope — determine worktree or commits; record base and head as commit IDs, then init the run with --mode to pin review-snapshot.json.
  2. Probes — dispatch four independent agents with the same scope and diff, each writing its own probe JSON. Run in batches if host capacity is limited, or record a serial fallback if agents are unavailable. Cross-probe duplicates are retained and counted; actual speed and token savings remain unverified.
  3. Sync — validate probe JSON and derive counts with collect-metrics.
  4. Reconcile — high findings must be closed or marked false-positive by the probe.
  5. Report — render the human report’s fact sections from JSON, then verify them.
  6. Gate — source freshness, required-probe failures, and open high findings block the merge.

The four probes

ProbeRequiredQuestion it answers
behavior-reviewyesDoes the changed behavior match its actual contract and implementation path?
test-coverageyesAre the tests meaningful, and is incremental coverage measured when data exists?
repo-guardyesDoes the change violate repository or project rules?
impact-analysisnoWho calls this, what contracts change, and what is the performance/architecture blast radius?

Probes are intentionally narrow. behavior-review is not a linter, and repo-guard is not a general bug scanner.

Language and stack coverage

The default repo-guard workflow selects .java, .ts, .tsx, and .vue files for pattern scanning. The built-in rule pack includes Java- and Spring-specific guidance; selecting an extension does not establish complete framework or language coverage.

AI semantic checks can inspect relevant code beyond those extensions, but their results depend on the model and available contracts, source, and tests. The historical cases below exercise particular stacks and skill snapshots; they do not establish equally validated support across all stacks. Use applicable project rules and record unverified dependencies or language-specific behavior.

Evidence contract

Every finding records:

FieldMeaning
locationpath:line, or file level with a reason
summaryWhat is wrong — not “consider improving”
evidenceContract, code path, test output, or rule ID
severityhigh / medium / low
statusopen / reconciled / wontfix / false-positive

High-severity findings must cite the actual method signature and the contract they violate, or a concrete code path. A hunch is capped at medium until the evidence is checked.

Configuration

references/probes.yaml controls the probe registry:

Project-specific rules can live in .code-review/rules/, or be pointed to with CODE_REVIEW_RULES_DIR:

export CODE_REVIEW_RULES_DIR=/path/to/rules

A project rule package replaces the built-in package; it is not merged with it.

What this is not

  • Not a replacement for tests, CI, or human review.
  • Not a guarantee that a clean report means the change is correct.
  • Not a coverage tool: coverage is used when provided, not required.
  • Not a fixer: it does not modify the code under review.

Validation

Offline tests check JSON validation, derived counts, report consistency, installation, and gate behavior. Passing them does not establish defect-detection recall, false-positive rates, or the correctness of an AI finding.

A controlled comparison against a single-agent review, measuring missed defects, false positives, wall-clock time, and token usage on the same cases and model configuration, has not yet been established. The historical runs below are snapshot-specific observations and do not demonstrate an improvement over that baseline.

11-case historical Java regression (2026-10-29)
  • Baseline: commit 494a39bb, before behavior-review was extracted into a standalone probe. The snapshot validates the shared finding and gate contract, not the four-probe split itself.
  • 11/11 cases completed; static review.
  • Original behavior targets: 5/5 hit; including two independently confirmed edge cases, 5/7 required targets were found.
  • Clean and fixed controls: 4/4 passed without false blocking.
  • Two confirmed edge-case misses remain: legal input formatting in a parser, and a JSON representation round-trip in command rendering.
  • 33 raw findings: 8 high, 20 medium, 5 low; 0 confirmed false positives, with unverified items still open.
  • The full merge gate was not run.

Risk areas exercised by these cases:

Risk areaCasesObserved result
Resource lifecycleDBeaverFound an input stream left open after copying; confirmed target.
Execution logicKestra, Keycloak guidesFound duplicate interpreter/command assembly in Kestra; confirmed target. Also reported switch fall-through in Keycloak, with downstream impact only partly supported.
Input boundaries and value handlingLang-1, Spring AI AlibabaFound hexadecimal overflow handling and blank-string sentinel problems; confirmed targets. The leading-zero return-type finding remained a contract dispute and was rated too high.
Permissions and data scopeKeycloak groups (m01), ElasticsearchFound authorization resource IDs used as group IDs; confirmed target. The non-default filesystem permission-bypass candidate still needs threat-model and exploitability evidence.
API compatibilityKestraIdentified public SPI return-type changes and new abstract methods; compatibility break supported, affected external plugins not measured.
Cache and state consistencyKeycloak login cache (m02)Reported an invalidation risk involving organization-wrapped models; runtime consequences remain unverified.
Performance and repeated workElasticsearch, Kestra, Keycloak login cacheReported logging overhead, repeated rendering/downloads, and extra lookups; performance impact was not benchmarked.
Test quality and regression protectionDBeaver, Keycloak, KestraIdentified missing branch tests, tests bypassing the changed production entry point, and incorrect cleanup or cache-invalidation coverage.

The two confirmed misses were Keycloak's valid tileVisible = "false" syntax bypassing validation, and Kestra's JSON render/parse round-trip corrupting command values containing quotes, backslashes, or newlines.

The four controls checked false alarms: the Lang-1 fix, normal pagination, normal tag normalization, and a valid login-cache delegation path that should not be reported as recursion. Passing a control does not establish that its entire change is defect-free.

The evaluation harness and raw reports are kept out of the published repository. This snapshot is a regression result, not a claim of general recall.

9-case expansion (2026-10-30)
  • Separate run 2026-10-30-review9-1a4adc1 on an older main (1a4adc1); it did not re-run the 11 historical cases. Do not combine the two batches into a 20/20 claim.
  • 9/9 cases completed; 36/36 probe records; 0 probe errors or skipped cases.
  • Positive targets: 4/6. Fixed controls: 3/3 stopped reporting.
  • 22 raw findings: 7 high, 13 medium, 2 low. This older run used the reviewer (5 run / 4 skip); the current skill has no independent reviewer.
  • Confirmed misses: x01's legal d flag and x04's cancellation/loading lifecycle.
  • Severity or contract caveats remain for several cases, including x02, x05, x06, and x08; this is not a general recall claim.

Requirements

  • Claude Code with Agent Skills support, or Codex with custom-agent support.
  • Bash 3.2+, Git, awk, grep, sed (macOS: invoke with /bin/bash; Linux/Windows Git Bash: bash).
  • Python 3.9+ is required to run the review scripts; PyYAML is used for report parsing and metrics.
  • Node.js 22.20+ is required for the npx skills install entry.

Repository layout

code-review-gate-skill/
├── README.md
├── README.zh-CN.md
├── NEWS.md
├── LICENSE
├── VERSION
├── assets/
│   ├── code-review-architecture.svg
│   └── code-review-architecture.zh-CN.svg
├── .github/workflows/
│   ├── news-update.yml
│   ├── skill-validation.yml
│   ├── star-history.yml
│   └── sync-news.yml
├── scripts/
│   ├── check-skill-locales.py
│   ├── install
│   ├── install.py
│   ├── install-remote.py
│   ├── news-update.py
│   ├── sync-skill-scripts.py
│   └── sync-news.py
├── shared/scripts/
│   ├── collect-metrics
│   ├── lib-metrics
│   ├── rule-grep
│   └── sync-results.py
├── skills/
│   ├── code-review-gate/
│   │   ├── SKILL.md
│   │   ├── assets/
│   │   ├── references/
│   │   └── scripts/
│   └── code-review-gate-zh/
│       ├── SKILL.md
│       ├── assets/
│       ├── references/
│       └── scripts/
└── tests/

Star history

Updated daily by star-history.yml.

Contributing

Issues and pull requests are welcome. For a behavior change, include the review target (repo and base/head), expected and observed result or gate decision, and evidence that distinguishes them.

For a probe or schema change, update the probe document, output contract, and affected scripts together.

Run tests with python -m unittest discover -s tests -v; set CODE_REVIEW_TEST_BASH to include shell and installation checks. These tests do not call models or establish defect recall.

For user-facing changes, add an entry to NEWS.md. Pushes to main update the README news preview; locally, run python scripts/news-update.py and python scripts/sync-news.py (use --check to verify only). Keep the Chinese README aligned.

License

This repository is distributed under the MIT License.

Project policy and output

Optional .code-review/config.json (paths relative to the reviewed project):

{
  "output_dir": "docs/work",
  "line_target": 85,
  "branch_target": 80
}

85% / 80% are configurable defaults. Line coverage blocks below target; branch coverage is advisory. Probes, gates, and reports use the same effective targets. CODE_REVIEW_OUTPUT_DIR overrides the output root; pass identical settings to every shell invocation. Source inspection is read-only, but the workflow writes active/<slug>/code-review.md, probes/*.json, review-snapshot.json, root-level workflow-events.log, and scorecards / quality-trend.csv on archive. Start a new review with bash "$CODE_REVIEW_SKILL_DIR/scripts/collect-metrics" init <unique-slug> --mode worktree (or --mode commits --base <base> [--head <head>]). With --mode, init writes review-snapshot.json; new runs should always pass it. Omitting --mode keeps the legacy behavior and skips freshness checking. Existing active, archived, or event-history slugs are rejected. Re-rendering the same run updates only automatic report regions; do not run concurrent writers for the same run. The effective thresholds are returned by init and recorded in the generated report; keep configuration stable when resuming, and re-check findings and re-render after policy changes. gate-pass code-review recomputes review-snapshot.json and returns stale-review when the reviewed source changed; run snapshot <slug> after a fix and re-review. The minimum shell is Bash 3.2. macOS can use /bin/bash; Linux / Windows Git Bash use bash. A macOS CI job is configured; a passing macOS result has not been established locally.

// faq

What is code-review-gate-skill?

Auditable code review skill for Claude Code and Codex: four independent probes, evidence-backed findings, and a JSON-derived merge gate.. It is open-source on GitHub.

Is code-review-gate-skill free to use?

code-review-gate-skill is open-source under the MIT license, so it is free to use.

What category does code-review-gate-skill belong to?

code-review-gate-skill is listed under devtools in the Claudeers registry of Claude-compatible tools.

8 views
★ 453 stars
unclaimed
updated 9 days ago

// embed badge

code-review-gate-skill on Claudeers
[![Claudeers](https://claudeers.com/api/badge/code-review-gate-skill.svg)](https://claudeers.com/code-review-gate-skill)

// retro hit counter

code-review-gate-skill hit counter
[![Hits](https://claudeers.com/api/counter/code-review-gate-skill.svg)](https://claudeers.com/code-review-gate-skill)

// reviews

// guestbook

0/500

// related in Developer Tools

🔓

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Curs…

// devtoolsaffaan-m/⟨JavaScript⟩★ 297,269◷ MIT[ claude ]
🔓

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

// devtoolsDietrichGebert/⟨JavaScript⟩★ 187,728◷ MIT[ claude ]
🔓

AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…

// devtoolssafishamsi/⟨Python⟩★ 147,800◷ MIT[ claude ]
🔓

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

// devtoolsgarrytan/⟨TypeScript⟩★ 140,465◷ MIT[ claude ]
→ see how code-review-gate-skill connects across the ecosystem