zen-review

zen-review: Code review specialist. Analyze PR changes for correctness, security, performance, and code quality. Return review results in JSON format. Important note: this capability is costly and should only be invoked when the user explicitly requests it.

Last repository push
GitHub Stars
112
Forks
17
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "zen-review" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-87c9facdff7e9f2a6a422f34b4306ef210cd4da3e23f3231fe6849bce23a375c. Verify the upstream source and version against https://github.com/EliasOulkadi/shokunin before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

zen-review: Code review specialist. Analyze PR changes for correctness, security, performance, and code quality. Return review results in JSON format. Important note: this capability is costly and should only be invoked when the user explicitly requests it.

0 Downloads

Introduction source: third_party · EliasOulkadi · 1.1.0 Reference

SkillPi interpretation

Tasks
Every skill named here is required.** When a step names one (/name), invoke it with the Skill tool at that step and follow it in full. Working from memory of a skill is not following it.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: zen-review
description: >
  Review a change for correctness (does it work, and is what it says true) and
  for design (is this the smallest system that does the job), then fix and verify
  every fix with a fresh verifier. Use for review, code review, review my changes,
  hunt bugs, prove it with tests, check it holds at real data volumes, check it
  does what the spec asks, simplify, cleanup, boyscout, or challenge what an API
  or tool surface offers. Works mid-implementation, before a PR, on a branch, on
  a PR, or on code with no diff at all. Fixes by default unless you say "report
  only" or "review only". Light mode (one reviewer for all applicable correctness
  areas, one for all applicable design areas) unless you say "full" or "full
  mode": then one reviewer per area. Not for UI layout or visual design, though
  frontend code is in scope.

Zen Review

Every skill named here is required. When a step names one (/name), invoke it with the Skill tool at that step and follow it in full. Working from memory of a skill is not following it.

A system's description is its code plus everything a consumer must remember to use it. Correctness makes the description true. Design makes it smaller. Review, fix, and verify autonomously. In report-only or review-only mode, make no edits.

1. Scope

request -> target: the files under review, the base, the spec

List the files under review: git diff <base> (uncommitted: HEAD; branch: merge base; PR: fetch it) plus untracked files, which git diff never shows; or the named paths when there is no diff. Note the spec, ticket, or plan if one is named. Name unrelated dirty files and leave them.

2. Find

reviewers -> raw findings -> deduped findings = finding list

This run looks at the target as it stands now. Carry nothing from earlier runs; the repo's own history stays readable. Rerunning after fixes is the normal loop. Use the same target and the same reviewer prompts each run: a prompt changed by the last run's findings biases reviewers, and an unchanged one makes a shorter list a real signal. Within a run, the fix diff goes to Verify, not back here.

  1. Launch general purpose reviewers in parallel. Light (default): one reviewer for all applicable correctness areas, one for all applicable design areas. Full (user said full or full mode): one reviewer per applicable area. Always: lines, removed, callers, spec, tests, reuse, simplify, ownership, conventions, contract. Also, when the diff touches them: load, boundaries, time, efficiency, model, surface. When in doubt whether an area applies, include it. In Claude Code, launch each reviewer with model opus and effort medium.
  2. Give each only the target's root, the base ref, the file list from Scope, the spec path, the reference file (references/correctness.md or references/design.md), the assigned area name(s), and the repo's rule files that govern the changed paths: CLAUDE.md, AGENTS.md, rule files in their ancestor directories, and the policies those files name. Put this in the prompt:
    • A governing rule's "Not a finding" list is binding: a possible finding it names is not returned.
    • List coverage first: every changed file and every definition the change adds or removes. Then work through all of it. A full diff is longer than one command shows; what an added function duplicates is usually unchanged and outside the diff.
    • Finish each assigned area. Return up to ten possible findings per area, strongest first: file:line, the area name, one line on what is wrong, and the failure scenario (correctness) or the better version (design).
    • Never edit, never start subagents, read history only with git show, git log, and git diff.
  3. Wait until every reviewer has returned, gather ALL the raw findings.
  4. Dedup findings on the same line or mechanism, keeping the most concrete. Then group them by root cause: the rule, mechanism, or missing model fact behind them.
  5. Communicate result of Find to the user – mode, how many reviewers launched, which areas skipped, and most importantly, raw findings count (grouped correctness / design), final deduped counts (also grouped), and the number of root causes with one line each. This is the finding list.

3. Check

finding list -> each finding is labeled CONFIRMED, UNPROVEN or DISPROVED

Regardless of mode, light or full, work through EVERY finding in the finding list.

  1. Go through EVERY finding in the finding list and try to confirm or break it in the code. Assign one of CONFIRMED, UNPROVEN or DISPROVED statuses to each finding. DISPROVED is a false positive: quote the line that proves it, or the governing rule that lists it as not a finding. Unsure is UNPROVEN, never DISPROVED. Do not disprove or drop findings based on importance or severity.
  2. Communicate result of Check to the user – total number of findings in the finding list, and how many got confirmed, disproved or unproven.

4. Fix

fix all CONFIRMED findings

Regardless of mode, light or full, work through EVERY finding in the confirmed set.

Load /principles. A finding names a problem, and the fix it suggests is only one option. For each finding, first ask what would make it impossible: a deleted path, a single owner, a type or constraint, a smaller rule. Use that if it exists. Then ask what the finding says about the design, and look for the same cause elsewhere. Patch only when nothing removes the cause.

  1. Fix ALL confirmed findings, starting with those that delete code, because a bug in deleted code needs no fix. For a bug, write the failing test first: it must fail for the predicted reason, then pass. It is a row in the scenario or table that covers the bug's path; a new test only where none covers it. Several solutions: choose by /principles and by the standard Verify will apply from references/verify.md. Before fixing, group confirmed findings by the rule that produces them. Two or more on one rule, in this run or across runs, question the rule first (the contract area's question); when the smaller contract changes a requirement, it goes to Needs your decision and its findings wait on the answer.
  2. Never patch in code a finding that changes a definition or a contract. Send it back to the spec through /brainstorming, which runs /grilling again on the artifact it changes; its findings wait.
  3. Leave a real choice unfixed when /principles cannot settle it. It goes to Needs your decision.

Do not cut corners. Use judgment to leave the touched code cleaner than you found it. Do not skip design findings. Design is as important as correctness.

5. Verify

  1. Give a fresh subagent only the target's root, the base ref, the spec path, the findings, the fix diff, references/verify.md, and references/correctness.md. Not why a fix was chosen. Not a request to confirm — a verifier asked to confirm confirms. Ask it to break each fix in its place in the system and to name a better solution where one exists. In Claude Code, launch it with model opus and effort medium.
  2. Rerun the repo's tests and checks; quote failures. Fix here, without restarting Find, and verify again. Apply a better solution when /principles settle it; otherwise Needs your decision. A confirmed finding still unfixed is open. When a second round of fixes fails on the same premise, stop fixing: read Attack the Premise, name the premise, and take it back to the spec.
  3. A change made after this run's verification (a decision from the spec, a bot finding, a merge) gets its own verifier before the work is reported ready.

6. Report

Write it with /readable in the format of references/report.md. No praise. Needs your decision is the report's /grilling round, on the code each decision changes; after the answers, Fix and Verify.

Version history

  1. v4.2.2 GitHub ↗
    Original release notes

    Skills: 41 Scripts: 20 Templates: 5 Rules: 4

Current listing version

1.1.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 提供端到端的自动化代码审查、修复与验证能力
  • 直接解决开发者明确的核心任务痛点
  • 支持多种使用场景(PR前、分支、无diff代码等)
Trigger Precision85/100

Highlights

  • 触发词精准完整,覆盖多种变体
  • 边界清晰,不易误触或漏触
Structure and Standards90/100

Highlights

  • Phase/步骤清晰,有明确的出口条件
  • 包含端到端示例,frontmatter完整
  • 文档结构良好,易于理解执行流程
Execution Reliability80/100

Areas to improve

  • 子agent错误处理细节未显式说明 Reported severity: Minor

    部分子agent调用未显式说明错误处理细节

    Recommendation: 建议补充子agent调用的错误处理机制说明

Highlights

  • 工具来源明确,参数正确
  • 覆盖主要异常,不可逆操作有确认机制
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.