# Code Review

> Review a diff, PR, or changed files for correctness, style, and risk. Use when the user asks for a code review, PR review, or to look over changes.

- Skill: `archit-13028/code-review` (Agent Skill)
- Install (CLI): `npx skillmds@latest add archit-13028/code-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/archit-13028/code-review/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Archit-13028 (https://skillmd.com/u/archit-13028)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/archit-13028/code-review

---


# Code Review

## When to use

Trigger on: review this, check my diff, any issues in this PR.

## Instructions

1. Read the whole diff before writing anything.
2. Check, in order:
   - Logic errors and off-by-one mistakes
   - Error handling: swallowed exceptions, missing nil checks
   - Concurrency: shared state, missing locks, race windows
   - Security: injection, secrets in code, unsafe input handling
3. Report findings ordered by severity (critical first, nit last).
4. For each finding, quote the line and suggest a concrete fix.

## Output format

- `critical` - must fix before merge
- `warning` - should fix
- `nit` - optional polish

End with a one-line verdict: approve / approve with nits / request changes.

