Code review

From squadcodercom/squadcoder · View interactive version

Code review is an AI agent skill from the GitHub repository squadcodercom/squadcoder. Review a diff or PR like a senior engineer: correctness and edge cases first, then security, performance, readability, and tests — with severity-tagged, actionable findings tied to specific lines. Prioritizes real bugs over style nits and verifies claims against the code. Activate for: review this c

How to use this skill

Skill file

Code Review — senior-engineer pass over a diff/PR

Find what matters and say it clearly. A good review surfaces real defects with evidence, not a

list of style opinions. Default to reviewing the changed lines and their blast radius.

Step 0 — orient

Review dimensions (in priority order)

  1. Correctness & edge cases — does it do what it claims? Off-by-one, null/empty/None, error paths,

async races, unhandled rejections, boundary inputs, wrong default. This is most of the value.

  1. Security — input validation, injection (SQL/command/path traversal), authn/authz checks,

secrets in code/logs, unsafe deserialization, XSS/CSRF for web, SSRF for fetchers.

  1. Resource & performance — N+1 queries, unbounded loops/memory, missing pagination, blocking I/O

on a hot path, leaks (listeners, handles), needless re-renders.

  1. API & data contracts — backward compatibility, migration safety, nullable changes, error shapes.
  2. Readability & maintainability — names, dead code, duplication, function size, matches the

surrounding style. Flag, don't bikeshed.

  1. Tests — is the new behavior covered? Are the tests meaningful (assert real outcomes) or hollow?

How to report findings

For each finding:

Group by severity; lead with blockers. Example:

[blocker] auth.ts:42 — token compared with ==, so an empty token matches when the stored

value is also falsy. Use a constant-time compare and reject empty tokens.

Discipline

If you're unsure, say "possible issue — verify X", don't state it as fact.

prefer logical properties.

Output shape

A short summary verdict (approve / approve-with-changes / request-changes), then findings grouped by

severity, then a one-line note on test coverage.

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.