by kyy-logs
Auditable code review skill for Claude Code and Codex: four independent probes, evidence-backed findings, and a JSON-derived merge gate.
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/kyy-logs/code-review-gate-skillGuides for using ai agents skills like code-review-gate-skill.
See how code-review-gate-skill compares with popular alternatives.
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.3; 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.
v0.2.3 is a stable release within the scope described below.
Pre-1.0 contract or format changes will be documented in NEWS.
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.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.
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-first | Works on a fresh clone or a partial checkout. Coverage is optional, not a prerequisite. |
| Evidence contract | A finding without a location, summary, and checkable evidence is not a finding. |
| Four probes | Behavior, tests, rules, and impact are separate questions with separate reports. |
| Machine-checkable gate | Counts and blockers come from JSON, not from prose the model retyped. |
| Auditable output | The human report and the JSON records are rendered from the same source and verified against each other. |
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.
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.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
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.
worktree or commits; record base and head as commit IDs, then init the run with --mode to pin review-snapshot.json.collect-metrics.| Probe | Required | Question it answers |
|---|---|---|
behavior-review |
yes | Does the changed behavior match its actual contract and implementation path? |
test-coverage |
yes | Are the tests meaningful, and is incremental coverage measured when data exists? |
repo-guard |
yes | Does the change violate repository or project rules? |
impact-analysis |
no | Who 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.
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.
Every finding records:
| Field | Meaning |
|---|---|
location |
path:line, or file level with a reason |
summary |
What is wrong — not “consider improving” |
evidence |
Contract, code path, test output, or rule ID |
severity |
high / medium / low |
status |
open / 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.
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.
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.
494a39bb, before behavior-review was extracted into a standalone probe. The snapshot validates the shared finding and gate cocode-review-gate-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by kyy-logs. Auditable code review skill for Claude Code and Codex: four independent probes, evidence-backed findings, and a JSON-derived merge gate. It has 435 GitHub stars.
code-review-gate-skill's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/kyy-logs/code-review-gate-skill" and add it to your Claude Code skills directory (see the Installation section above).
code-review-gate-skill is primarily written in Python. It is open-source under kyy-logs on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh code-review-gate-skill against similar tools.
No comments yet. Be the first to share your thoughts!