Activate after writing or editing code and BEFORE running the final
verification step. Also activate when the user pastes code and asks
for a review, or when the agent wants to gate a skill update.
Principle
Reviews catch what tests cannot see: intent drift, silent regressions,
and code that technically works but will break the next editor.
Inputs
changed_files: the files / hunks to review.
purpose: one-line statement of what the change should achieve.
reference: original spec, issue, or plan the change maps to.
Steps
Intent check — does each edit map back to a line in purpose?
Flag hunks that drift.
Scope creep — unrelated renames / formatting mixed into a
focused fix? Split if non-trivial.
Error handling — new call sites to I/O / HTTP / subprocess have
explicit error paths (not just except Exception: pass)?
Tests — did any existing assertion weaken (broader tolerance,
deleted edge case)? Restore or justify.
Invariants — was a class invariant (e.g. "every tool row has a
permission tier") maintained?
Dead paths — code added that is never reachable from the
feature's entry point? Drop.
Logging / observability — significant state change logged? On
the happy path only, or also on failure?
Names — any new symbol that will be misleading in 3 months?
Rename if yes, keep if no.
Non-goal check — the change should NOT accidentally handle
something out of scope (e.g. a skill refactor that changes memory
policy).
1---2name: kkkirito-123-zlagent-code-review-quality3description: code-review-quality4---56# code-review-quality78## Trigger910Activate after writing or editing code and BEFORE running the final11verification step. Also activate when the user pastes code and asks12for a review, or when the agent wants to gate a skill update.1314## Principle1516> Reviews catch what tests cannot see: intent drift, silent regressions,17> and code that technically works but will break the next editor.1819## Inputs2021- `changed_files`: the files / hunks to review.22- `purpose`: one-line statement of what the change should achieve.23- `reference`: original spec, issue, or plan the change maps to.2425## Steps26271. **Intent check** — does each edit map back to a line in `purpose`?28 Flag hunks that drift.292. **Scope creep** — unrelated renames / formatting mixed into a30 focused fix? Split if non-trivial.313. **Error handling** — new call sites to I/O / HTTP / subprocess have32 explicit error paths (not just `except Exception: pass`)?334. **Tests** — did any existing assertion weaken (broader tolerance,34 deleted edge case)? Restore or justify.355. **Invariants** — was a class invariant (e.g. "every tool row has a36 permission tier") maintained?376. **Dead paths** — code added that is never reachable from the38 feature's entry point? Drop.397. **Logging / observability** — significant state change logged? On40 the happy path only, or also on failure?418. **Names** — any new symbol that will be misleading in 3 months?42 Rename if yes, keep if no.439. **Non-goal check** — the change should NOT accidentally handle44 something out of scope (e.g. a skill refactor that changes memory45 policy).4647## Output Format4849Grade each finding as:5051- 🟥 **must-fix**: blocks merge.52- 🟧 **should-fix**: merge allowed but tracked.53- 🟩 **nit**: optional polish.5455```56### code-review-quality findings5758- 🟥 _<file>:<line>_ <one-line issue> — _why it matters_59- 🟧 ...60- 🟩 ...6162(零 must-fix 时写 "✅ no blocking issues found")63```6465## Verification6667- Every finding cites `<file>:<line>`.68- Must-fix items are addressed before declaring done.69- No finding is vague ("looks weird") — each has a concrete trigger.7071## Failure Signals7273- 0 findings on a 300-line diff: review was rubber-stamped.74- "nit" storm with no must-fix on a patch that later breaks: the75 gradient is wrong — recalibrate severity thresholds.76- The same class of issue appears repeatedly across reviews: promote77 it to a guardrail (skill, hook, or lint rule).7879---80> Source: [Kkkirito-123/ZLAgent](https://github.com/Kkkirito-123/ZLAgent) — distributed by [TomeVault](https://tomevault.io).81<!-- tomevault:4.0:skill_md:2026-06-16 -->
Run npx skillmds@latest add tomevault-io/kkkirito-123-zlagent-code-review-quality in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
code-review-quality It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.