Code Review
Intro
Code review is a structured pass over a diff against a fixed
checklist, then a categorized response: must-fix, should-fix, nit.
The goal is to surface real defects with specific line references,
not to rewrite the author's code.
Overview
The review checklist
Read the diff or changed files, then evaluate each change against:
- Correctness — Does the code do what it claims? Are edge
cases handled?
- Clarity — Are names descriptive? Is the logic easy to
follow on a single read?
- Tests — Are new behaviors tested? Do existing tests still
hold?
- Security — Hardcoded secrets, SQL injection, unsafe input
handling, missing authz?
- Performance — Unnecessary allocations, N+1 queries,
accidental O(n^2) loops?
- Style — Consistent with the project's existing conventions
(not your personal preferences)?
Categorize findings
Sort each finding into one bucket and label it explicitly:
- Must fix — bugs, security issues, broken tests, contract
violations
- Should fix — unclear naming, missing tests for non-trivial
paths, code smells
- Nit — style preferences, minor suggestions, taste calls
Always include specific line references and concrete suggestions.
Acknowledge what was done well — review is not adversarial.
Gotchas
Agent-specific failure modes — provider-neutral pause-and-self-check items:
- Burying must-fix items after style comments. When a security issue or correctness bug appears three paragraphs into a review, the author may miss it. Lead with must-fix items; put nits at the end.
- Vague comments without line references or concrete suggestions. "This looks weird" is not actionable. Every finding needs a specific line reference and a concrete suggestion — what is the problem and what would fix it.
- Stamp-of-approval review. Skimming the diff and approving to move it along defeats the purpose of review and gives the team false confidence. If you cannot read the changed lines, say so and ask to review in a smaller chunk.
- Reviewing huge diffs in one pass. Large diffs cause reviewer fatigue and cause real issues to be missed. Either push back on PR scope or break the review into sessions (security first, then logic, then style).
- Missing the escalation trigger. Line-by-line comments on a diff that has fundamental design issues waste both sides' time. When the design is wrong, stop the line review and raise the design concern first.
- Rewriting in review. Proposing complete rewrites of code that works demotivates authors and overreaches the reviewer's role. Propose the improvement once; the author owns the code.
- No acknowledgment of what was done well. All-negative reviews are adversarial over time and reduce the quality of future work. Code review should also surface what was done right.
Full reference
Example output shape
Must fix: parse_input() on line 42 doesn't handle empty
strings — this will panic.
Should fix: The variable x on line 15 could be renamed to
retry_count for clarity.
Nit: Consider extracting lines 30-45 into a helper function.
Overall: Good separation of concerns. The error handling pattern
is clean.
Anti-patterns
- Rewriting in review — propose, don't dictate. The author
owns the code.
- Bikeshedding — if it's a nit, label it a nit and move on.
- Stamp-of-approval review — skimming and approving without
reading the changed lines defeats the purpose.
- Vague comments — "this looks weird" is not actionable. Say
what's weird and what would fix it.
- Reviewing in one pass when the diff is huge — split the
review across sessions or push back on PR scope.
When to escalate
If the diff has fundamental design issues, stop the line-by-line
review and discuss the design first. Line comments on a diff that
should never have been written waste both sides' time.
1---2name: code-review3description: |4 Structured code review with a checklist covering correctness, clarity, tests, security, performance, and style. Use when reviewing a PR, diff, or set of code changes before merging — including phrases like "review this", "check my changes", or "is this ready to merge".5metadata:6 source: https://skillmd.com/skills/projectious-work/code-review7 processkit:8 apiVersion: processkit.projectious.work/v19 id: SKILL-code-review10 version: "1.1.0"11 created: 2026-04-06T00:00:00Z12 category: engineering13 layer: 314---1516# Code Review1718## Intro1920Code review is a structured pass over a diff against a fixed21checklist, then a categorized response: must-fix, should-fix, nit.22The goal is to surface real defects with specific line references,23not to rewrite the author's code.2425## Overview2627### The review checklist2829Read the diff or changed files, then evaluate each change against:3031- **Correctness** — Does the code do what it claims? Are edge32 cases handled?33- **Clarity** — Are names descriptive? Is the logic easy to34 follow on a single read?35- **Tests** — Are new behaviors tested? Do existing tests still36 hold?37- **Security** — Hardcoded secrets, SQL injection, unsafe input38 handling, missing authz?39- **Performance** — Unnecessary allocations, N+1 queries,40 accidental O(n^2) loops?41- **Style** — Consistent with the project's existing conventions42 (not your personal preferences)?4344### Categorize findings4546Sort each finding into one bucket and label it explicitly:4748- **Must fix** — bugs, security issues, broken tests, contract49 violations50- **Should fix** — unclear naming, missing tests for non-trivial51 paths, code smells52- **Nit** — style preferences, minor suggestions, taste calls5354Always include specific line references and concrete suggestions.55Acknowledge what was done well — review is not adversarial.5657## Gotchas5859Agent-specific failure modes — provider-neutral pause-and-self-check items:6061- **Burying must-fix items after style comments.** When a security issue or correctness bug appears three paragraphs into a review, the author may miss it. Lead with must-fix items; put nits at the end.62- **Vague comments without line references or concrete suggestions.** "This looks weird" is not actionable. Every finding needs a specific line reference and a concrete suggestion — what is the problem and what would fix it.63- **Stamp-of-approval review.** Skimming the diff and approving to move it along defeats the purpose of review and gives the team false confidence. If you cannot read the changed lines, say so and ask to review in a smaller chunk.64- **Reviewing huge diffs in one pass.** Large diffs cause reviewer fatigue and cause real issues to be missed. Either push back on PR scope or break the review into sessions (security first, then logic, then style).65- **Missing the escalation trigger.** Line-by-line comments on a diff that has fundamental design issues waste both sides' time. When the design is wrong, stop the line review and raise the design concern first.66- **Rewriting in review.** Proposing complete rewrites of code that works demotivates authors and overreaches the reviewer's role. Propose the improvement once; the author owns the code.67- **No acknowledgment of what was done well.** All-negative reviews are adversarial over time and reduce the quality of future work. Code review should also surface what was done right.6869## Full reference7071### Example output shape7273> **Must fix:** `parse_input()` on line 42 doesn't handle empty74> strings — this will panic.75>76> **Should fix:** The variable `x` on line 15 could be renamed to77> `retry_count` for clarity.78>79> **Nit:** Consider extracting lines 30-45 into a helper function.80>81> Overall: Good separation of concerns. The error handling pattern82> is clean.8384### Anti-patterns8586- **Rewriting in review** — propose, don't dictate. The author87 owns the code.88- **Bikeshedding** — if it's a nit, label it a nit and move on.89- **Stamp-of-approval review** — skimming and approving without90 reading the changed lines defeats the purpose.91- **Vague comments** — "this looks weird" is not actionable. Say92 what's weird and what would fix it.93- **Reviewing in one pass when the diff is huge** — split the94 review across sessions or push back on PR scope.9596### When to escalate9798If the diff has fundamental design issues, stop the line-by-line99review and discuss the design first. Line comments on a diff that100should never have been written waste both sides' time.