principle-code-reviewlisted
Install: claude install-skill lugassawan/swe-workbench
# Code Review
Principles for high-signal code review. For tool-specific mechanics (diff-size routing, suggestion-block format, GitHub workflow), see the `reviewer` agent.
## Five-Axis Review Lens
Every review covers five axes:
- **Correctness** — off-by-ones, null paths, concurrency races, lost errors, unhandled edge cases, paired-guard predicate gaps (a check enforced by one sibling but missing in its pair).
- **Security** — injection, auth/authz gaps, secrets in code, unsafe deserialization, SSRF, missing input validation at trust boundaries.
- **Design integrity** — SOLID violations, leaky abstractions, tight coupling, circular deps, domain logic bleeding into infrastructure.
*For complexity / duplication / length, prefer Quality-stage output over subjective comments — see `workflow-development`.*
- **Tests** — missing coverage on new branches, brittle tests, tests that mirror implementation rather than behavior.
- **Comment quality** — unnecessary comments (WHAT-not-WHY, restates-the-code, commented-out code) and doc-comments over the per-language cap; hygiene-tier, in-diff `+` lines only, suggested-fix drop-or-simplify, never an auto-rewrite. Caps live in `principle-clean-code`.
## What's Not a Finding
Do not surface these:
- Formatting, import order, quote style — owned by the linter, not the reviewer.
- Stylistic preferences with no behavioral impact.
- Speculative "could be" comments without a concrete failure mode.
These erode review signal. If your only co