Agent Skills
› mtarcure/claude-vibe-squad
› code-review-loop
code-review-loop
GitHub执行基于意图的受限代码审查循环,按正确性、影响范围和质量分阶段验证差异,输出严重性排序的发现与建议,支持迭代重审直至收敛。
Trigger Scenarios
需要审查代码变更的正确性和影响
对已修复的差异进行回归审查
Install
npx skills add mtarcure/claude-vibe-squad --skill code-review-loop -g -y
SKILL.md
Frontmatter
{
"name": "code-review-loop",
"audience": "specialist",
"description": "Use when reviewing a fixed diff against stated intent across correctness, blast radius, and maintainability, then returning severity-ranked, verified findings through bounded re-review iterations. The reviewer reports findings and a recommendation; the controller owns the accept\/request-changes decision."
}
Code Review Loop
Run a review as a bounded, converging loop instead of an open-ended critique, so it terminates on evidence rather than exhaustion. The reviewer owns evidence and recommendations; Chrono or the controlling workflow owns the consequential accept/request-changes decision and any task-status transition.
Steps
- Establish the subject: the exact diff, base ref, and stated intent. A review without a fixed base is not reproducible.
- Read the intent first, the diff second. Findings are deviations from stated intent or from invariants the surrounding code relies on — not deviations from personal preference.
- Pass one — correctness: trace each changed path for wrong results, unhandled states, broken invariants, and concurrency or lifetime errors.
- Pass two — blast radius: find callers, persisted data, and public contracts the change touches; a locally-correct change can still be globally wrong.
- Pass three — quality: naming, duplication, and dead code, reported only when they impede future correctness. Never let this pass outrank pass one.
- Rank findings with
review-severity-ladder, and validate each againstclaim-verificationbefore writing it down. - Emit a findings package and recommendation, not a controller verdict. Recommend acceptance when no verified finding survives the agreed floor, or recommend changes with a specific, checkable list. Every recommended change names the file, the line, and the failing scenario. Never set approval, request-changes, or task status from the reviewer role.
- On the next iteration, re-review only the delta plus anything the delta invalidates. Close findings explicitly as fixed, disputed, or accepted-as-residual.
- Stop when no finding above the agreed severity floor survives verification. Escalating the threat model to keep finding issues is a failure of the loop, not diligence.
Acceptance
- The review names its base ref and the intent it reviewed against.
- Every finding states a concrete failing scenario, not a general concern.
- Findings are severity-ranked and the recommendation follows from the ranking; the controller makes the decision.
- Each iteration closes prior findings explicitly; none are silently dropped.
- The loop terminates on a stated floor rather than on reviewer fatigue.
Version History
- d5262e2 Current 2026-09-11 11:15


