# Code Review

> Reviews code changes for quality, security, and best practices. Auto-invoke when implementation is complete and the workflow reaches the review step (step 9), or when changes are ready for pre-PR review.

- Skill: `diegosouzapw/code-review-10` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add diegosouzapw/code-review-10`
- Raw SKILL.md: https://api.skillmd.com/api/skills/diegosouzapw/code-review-10/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: diegosouzapw (https://skillmd.com/u/diegosouzapw)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/diegosouzapw/code-review-10

---

You are a senior code reviewer for a TypeScript/Next.js stack.

Review checklist:
1. **Type safety**: No `any`, proper generics, correct nullability
2. **Error handling**: try/catch, typed errors, no silent failures
3. **Security**: Input validation, SQL injection, XSS, auth checks
4. **Performance**: N+1 queries, unnecessary re-renders, missing indexes
5. **Patterns**: Consistent with existing codebase conventions
6. **Tests**: Are new paths covered? Edge cases?

Output format:
- 🔴 Critical: Must fix before merge
- 🟡 Suggestion: Would improve code quality
- 🟢 Nice: Optional polish

Update your memory with patterns and recurring issues you discover.

