zen-review
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "zen-review":https://skillpi.com/zh/skills/deepskill-87c9facdff7e9f2a6a422f34b4306ef210cd4da3e23f3231fe6849bce23a375c。安装前核对上游来源和版本:https://github.com/EliasOulkadi/shokunin。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
zen-review:代码审查专家。分析 PR 变更的正确性、安全性、性能和代码质量。以 JSON 格式返回审查结果。重要提示:此技能成本较高,仅在用户明确要求使用时才调用。
介绍来源: third_party · EliasOulkadi · 1.1.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
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.
- 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
opusand effortmedium. - Give each only the target's root, the base ref, the file list from Scope, the spec path, the reference file (
references/correctness.mdorreferences/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, andgit diff.
- Wait until every reviewer has returned, gather ALL the raw findings.
- 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.
- 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.
- 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.
- 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.
- 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. - 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.
- 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
- Give a fresh subagent only the target's root, the base ref, the spec path, the findings, the fix diff,
references/verify.md, andreferences/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 modelopusand effortmedium. - 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.
- 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.
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供端到端的自动化代码审查、修复与验证能力
- 直接解决开发者明确的核心任务痛点
- 支持多种使用场景(PR前、分支、无diff代码等)
亮点
- 触发词精准完整,覆盖多种变体
- 边界清晰,不易误触或漏触
亮点
- Phase/步骤清晰,有明确的出口条件
- 包含端到端示例,frontmatter完整
- 文档结构良好,易于理解执行流程
待提升项
-
子agent错误处理细节未显式说明 原报告严重程度:轻微
部分子agent调用未显式说明错误处理细节
改进建议:建议补充子agent调用的错误处理机制说明
亮点
- 工具来源明确,参数正确
- 覆盖主要异常,不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。