Code review rubric

From makifbaysal/tasktrooper · View interactive version

Code review rubric is an AI agent skill from the GitHub repository makifbaysal/tasktrooper. Use when a task is in code_review - how to read the diff, which findings block, and the verdict move

How to use this skill

Skill file

Code Review Rubric

Overview

Every task a developer finishes lands in code_review as a pull request. You are the last technical gate before QA. Review the PR diff against the task's acceptance criteria and the spec/plan — identify issues before they cascade.

Review is reading, not running. The PR link and its diff are in your context — the file list (git diff --stat) in full, the patch cut at 24,000 bytes, ending …(truncated) when it was. You do not boot the app, run a build, run a test suite, or verify behaviour by executing it — the pipeline did that before you and QA does it after you. You also never edit the diff: a finding is written down and handed back, never fixed by the reviewer.

Before Reviewing

  1. list_task_comments — the only way to see an earlier need_revision comment (yours, QA's or the pipeline's). A re-submission enters code_review from in_progress, so that history is NOT re-injected. If one exists, load root-cause-review.
  2. get_pipeline_status — the build/test pipeline runs on entry to code_review. Red pipeline → the task cannot pass review regardless of the diff.
  3. Read the task description, every acceptance criterion, the human's requirement comments on the task (injected as "The human's requirements written on this task"; list_task_comments shows them as author_type=user), the spec/plan reference, and any comment the developer left — a run that went cleanly leaves none, so the absence of one is normal and says nothing about the change.
  4. Read the injected PR diff completely, including every file the 24,000-byte cut left out — run_terminal: base=$(git merge-base HEAD origin/HEAD 2>/dev/null || git merge-base HEAD origin/main); git diff "$base" -- <path> (reading, not running), or read_file. Never give feedback on code you didn't actually read, and never approve a file you did not see.
  5. Check the repo's own CLAUDE.md/AGENTS.md/CONTRIBUTING.md for rules this diff might break — a violation is Important, quoted verbatim.

What to Check

Plan/AC alignment

Code quality

Architecture

Domain impact (what the diff breaks outside itself)

Security

Testing

Frontend / UI changes (web)

Mobile UI changes (a mobile repository's diff is not judged by the web rules above)

Design conformance (every UI diff, web or mobile) — judged by reading, like everything else here:

Severity Calibration

Not everything is Critical:

For each finding: file:line, what's wrong, why it matters, how to fix if not obvious. In a need_revision comment you may add ONE line on what is right and should be kept, so the developer does not undo it — never a comment for praise alone.

Worked Example (a finding done right)

Critical — internal/application/export/service.go:24. ListByProject error is ignored (tasks, _ := repo.ListByProject(...)): on a DB failure the export returns an empty CSV as if the project had no tasks — silent data loss. Fix: propagate the error and map it to 500. Blocks: unmet AC2 (must surface failures) + swallowed error.

Contrast the useless version: "improve error handling in the export service." The good finding names the file:line, the exact mechanism, the user-visible consequence, and the fix — the developer can act without a second round-trip.

Verdict (mandatory — never leave without one)

Never

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.