| name | code-review |
| description | Structured code review of pull requests — read diffs, check DoD, verify test coverage, check scope, provide blocking/non-blocking findings. |
Skill: Code Review
Perform a structured review of code changes.
When to Use
- Reviewing a pull request before merge
- Auditing staged changes before commit
- Checking if a PR meets Definition of Done
Steps
- Read diff —
gh pr diff <number>. Understand what changed and why.
- Check DoD — tests added/updated, no lint errors, docs updated if needed.
- Check tests — run
npx vitest run to verify tests pass.
- Check scope — ensure changes match the issue scope.
- Provide feedback — only flag bugs, security issues, logic errors.
Rules
- Do NOT modify code during review — only report findings.
- Focus on correctness, security, and logic. Ignore style and formatting.
- If the PR has no tests for new logic, flag as blocking.
- Verify CI status before approving:
gh pr checks <number>.