code-review
Review a frozen code diff against acceptance criteria and emit JSON for loopzero review.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- code-review
- description
- Review a frozen code diff against acceptance criteria and emit JSON for loopzero review.
02 资源文件 1
- 参考文档agents/openai.yaml42 B
03 SKILL.md 正文
Code Review
Review one frozen diff without editing the tree. Read the contract, the PR body, and surrounding code. Confirm the exact head and follow the contract's scope and budget and missing-evidence rule; never approve blind. Apply local gate receipt reuse.
Judge
Treat narratives, acceptance claims, and passing tests as hypotheses. Trace changed paths through callers and data, including empty, missing, boundary, concurrent, failure, and retry cases. Check:
- Each acceptance criterion has proof; tests exercise the claimed behavior.
- Named tests and checks exist in the diff or tree.
- Callers, data shapes, permissions, builds, docs, and contract remain consistent.
Audit sibling callers, readers, transitions, and retries when a defect reveals a class; report its instances together. Distinguish unavailable proof from demonstrated defects. Findings need an anchor, failure condition, impact, and smallest fix; generic advice is not a finding.
Output And Exit
Return exactly one JSON object, with no surrounding text:
{
"verdict": "approve",
"findings": [{
"severity": "suggestion",
"path": "src/file.py",
"line": 42,
"title": "Concise title",
"body": "Evidence, impact, and the smallest improvement"
}]
}
Include all five finding fields. verdict is approve or request_changes;
severity is critical, important, or suggestion, per
the contract.
Any blocking finding requires request_changes; otherwise approve, with
suggestions or an empty list.
Anchor findings precisely. path and line may be null when no precise
location exists; loopzero review anchors such blocking findings on a changed file.
04 同仓库更多 Skills
typesafe-ai
Design or implement TypeSafe judgments for routing, ranking, extraction, and verification when application behavior needs semantic understanding; use as a supporting method within the current planning or delivery task.
write-tests
Add or improve behavior-focused coverage when testing is the task; use diagnose for observed failures.
write-design-doc
Create or refine a durable design contract: exploration, ADR, initiative, blueprint or guide.
work-issue
Deliver one live GitHub issue through verified merge and closure or an explicit partial-delivery boundary; use only for work anchored to an issue.
security-review
Add security review to diffs changing auth, sessions, permissions, secrets, endpoints, external calls, config, file or shell primitives, serialization, or dependencies.
review
Assess a non-diff artifact, system, architecture, workflow, agent configuration, or idea without changing it.