skills/practices/code-review/SKILL.md
Systematic code review process for domain leads reviewing specialist output. Covers correctness, security, performance, and convention compliance.
npx skillsauth add devjarus/coding-agent code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A structured checklist for domain leads reviewing specialist-produced code. Work through each section in order — correctness first, then the rest.
CLAUDE.md and the codebase?Be specific with location. Reference file:line rather than describing the problem abstractly.
Explain why. "This is wrong" is not actionable. "This creates an N+1 query because getUser is called inside a loop — consider batching with getUsersByIds" is.
Distinguish severity. Use consistent labels so the author knows what must change versus what is optional:
| Label | Meaning |
|-------|---------|
| blocker | Must be fixed before merge. Correctness, security, or data-loss risk. |
| major | Should be fixed before merge. Performance, maintainability, or convention issue. |
| minor | Fix if you have time. Small improvements, style preferences. |
| nit | Trivial. Take it or leave it. |
Offer alternatives. When blocking a change, suggest a path forward. Don't just reject — help.
Separate opinion from requirement. Prefix personal preferences with "I'd prefer..." to distinguish them from objective issues.
testing
Multi-source research method — decompose a question, fan out parallel investigators, interleaved-think each result, verify claims adversarially, synthesize a cited answer. Use for breadth-heavy research, stack comparisons, "which approach wins" questions.
testing
Decide when to use unit vs integration vs e2e tests, and when to mock vs use the real thing per dependency. Dependency injection is the enabler — without it you end up monkey-patching imports. Apply when writing tests of any kind.
development
Test-driven development process — write failing test, implement to pass, refactor. Use when implementing any feature or fixing bugs.
development
Patterns for sharing types, API contracts, and validation schemas between frontend and backend. Use when multiple domains consume the same data shapes to prevent contract drift.