Code Review
A prioritized method for reviewing diffs — correctness, security, tests, design and maintainability — with severity labels, evidence-based findings and a consistent output format.
What it does
A prioritized method for reviewing diffs — correctness, security, tests, design and maintainability — with severity labels, evidence-based findings and a consistent output format.
- Category
- corequalityreview
- Platforms
- generic
- Capabilities
- reviewanalysis
Example tasks
- “Review this pull request diff and list blocking issues first.”
- “Check a change to the payment webhook handler for security and idempotency problems.”
- “Give feedback on my own diff before I open a PR.”
Works with
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/skills/<id>/SKILL.md |
| OpenAI Codex | Adapter | .codex/skills/<id>/SKILL.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | .github/instructions/<id>.instructions.md |
| Generic markdown | Adapter | docs/forgekit/skills/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
Full skill (free preview)
This is a free component, so its complete content is public. It is exactly what gets installed (before client-specific formatting).
Code Review
Review to find real problems and improve shared understanding, not to prove diligence. Spend attention in descending order of impact, ground every finding in the code, and stay within the scope of the change.
1. Before reading the diff
- Read the PR/commit description and linked issue: what is the intended behavior and what is out of scope?
- Look at the file list and size. If it is large (rough guide: > 400 changed lines or many unrelated files), suggest splitting rather than skimming.
- Find project conventions (
AGENTS.md, CONTRIBUTING, lint config) and the CI result. Do not comment on what a linter already enforces. - Read surrounding code, not only changed hunks: callers, callees, and existing tests of the touched functions.
2. Review order (highest risk first)
| Pass | Questions |
|---|---|
| Correctness | Does it do what the description claims? Edge cases: null/empty, boundaries, time zones, concurrency, partial failure, retries, ordering. Off-by-one, wrong operator, unhandled promise/error. |
| Security and privacy | Input validation, authorization on every path (not just authentication), injection (SQL, shell, template, path), SSRF, secrets in code/logs, PII exposure, unsafe deserialization, dependency additions. |
| Data and compatibility | Migrations safe and reversible? API/event/schema changes backward compatible? Mixed-version deploys? |
| Tests | Do tests fail without the change? Do they assert behavior, not implementation? Failure paths and edge cases covered? Flaky patterns (sleep, real network, shared state)? |
| Design | Right layer and ownership? Coupling, new abstractions justified, duplication of existing utilities, public surface growth. |
| Performance | N+1 queries, unbounded loops/lists, missing pagination or indexes, work on hot paths, memory growth. Only flag with a plausible scale argument. |
| Operability | Logging without secrets, metrics, error messages, timeouts, feature flag, rollback path. |
| Readability | Naming, function size, comments explaining why, dead code. |
3. Severity labels
- blocker: bug, security issue, data loss, breaking change, or missing test for risky logic. Must be fixed before merge.
- major: likely problem or significant maintainability cost; fix or justify.
- minor: improvement worth doing, not blocking.
- nit: style or preference; prefix with
nit:and keep rare. - question: you do not understand; ask instead of asserting.
- praise: call out something done well, briefly and specifically.
4. Writing findings
- Format:
path:line- severity - what is wrong - why it matters (the concrete failure) - suggested fix or example. - Show evidence: the input or scenario that breaks, the call path, or the test that would fail. If unsure, mark it as a question or "possible" and explain the doubt.
- Suggest, do not rewrite the author's design in comments; offer a minimal patch for small fixes.
- Do not report more than you can defend. Ten confident findings beat forty speculative ones; merge duplicates into one with a list of locations.
- Separate must-fix from preferences so the author knows what gates the merge.
5. Output template
Summary: one or two sentences on what the change does and overall verdict (approve / approve with minor / request changes).
Blockers:
1. path:line - ...
Major:
Minor / nits:
Questions:
Test gaps: scenarios not covered.
What I checked: areas reviewed and areas not reviewed (for example "did not run the code").
6. Self-review (reviewing your own diff)
Run the diff against the checklist above, remove debug code and unrelated formatting, check that the description explains why, and confirm the exact commands you ran to verify.
Common mistakes
- Reviewing only the diff and missing that an unchanged caller now breaks.
- Style commentary while real defects go unnoticed.
- Claiming something is a bug without a failing scenario.
- Approving without checking tests actually exercise the change.
- Rewriting to personal taste; if the repo convention allows it, let it pass.
- Burying blockers in a long list of nits.
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — Code Review
1.0.0
- Initial release.