/review
Review a diff, branch, PR or path like a senior engineer: correctness, failure handling, security, compatibility, tests and performance, with a calibrated severity table and a clear verdict. Read-only.
What it does
Review a diff, branch, PR or path like a senior engineer: correctness, failure handling, security, compatibility, tests and performance, with a calibrated severity table and a clear verdict. Read-only.
- Category
- code-qualityreview
- Platforms
- any
- Capabilities
- review
Example tasks
- /review
- /review 214
- /review src/billing/
Works with
Related skills
Requires (installed automatically)
Recommended alongside
Permissions summary
Files
Reads files only
Shell
Runs a limited set of commands
Network
May fetch docs from the web
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/commands/<id>.md |
| OpenAI Codex | Adapter | .codex/prompts/<id>.md |
| Cursor | Native | .cursor/commands/<id>.md |
| VS Code (Copilot) | Native | .github/prompts/<id>.prompt.md |
| Generic markdown | Adapter | docs/forgekit/commands/<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 command (free preview)
This is a free component, so its complete content is public. It is exactly what gets installed (before client-specific formatting).
Review this change as a senior engineer would before approving it: $ARGUMENTS
Scope: if $ARGUMENTS is empty, review the working tree plus staged changes against the merge base with the default branch. If it is a PR number, branch, commit range or path, review exactly that. Review is read-only: never edit files, never commit, never push.
- Learn the house rules first. Read
CLAUDE.md/AGENTS.md,CONTRIBUTING*, lint/format/type config and the nearest existing code that does the same job as the change. Findings must be judged against these conventions, not generic taste. - Get the change. Use
git status,git diff <base>...HEAD,git diff --staged,git log --oneline <base>..HEAD(orgh pr diff <n>/gh pr view <n>whenghis installed and authenticated). Read the full surrounding file for every hunk, not just the diff, and follow callers/callees of changed public functions. State the intent of the change in one sentence; if the description and the diff disagree, that is a finding. - Delegate the deep read to the
code-revieweragent with the diff, the conventions you found and the stated intent. Apply the passes below yourself in parallel on anything it flags. - Review in this order (stop expanding a pass once it stops yielding evidence):
- Correctness: logic errors, off-by-one, null/empty/zero cases, wrong operators, race conditions, async misuse, resource leaks, timezone/locale/encoding.
- Failure handling: swallowed errors, missing timeouts/retries, partial failure, transactions, idempotency.
- Security and data: injection, authz on every new path, secrets/PII in code or logs, unsafe deserialization. Escalate anything serious to
/security-audit. - Compatibility: public API/schema/config/migration changes, breaking callers, rollout and rollback safety.
- Tests: does a test fail without this change? Missing edge/negative cases, mocks hiding behaviour, flaky constructs.
- Performance: N+1 queries, unbounded loops/lists, work on hot paths, accidental O(n^2).
- Maintainability: duplication of existing helpers, naming, dead code, scope creep, unrelated edits.
- Verify claims. Before reporting a bug, trace it to concrete lines and say how it triggers. If you can run the tests/linter/typechecker cheaply (detect the command from the repo), do so and quote the result; if you cannot, say "not run" rather than guessing.
- Be calibrated. Do not flag what the formatter or linter already enforces, pre-existing issues the change does not touch (list them separately at most), or pure preference. Mark confidence (high/medium/low) on each finding.
Severity: blocker (will break prod, lose data, open a vulnerability), major (likely bug or missing test for risky logic), minor (should fix, not merge-blocking), nit (optional).
Output format
Verdict:APPROVE, APPROVE WITH COMMENTS or REQUEST CHANGES, plus one sentence of reasoning.Summary:what the change does and the riskiest area, 2-3 lines.- Findings table, ordered by severity:
# | Severity | Confidence | File:line | Problem and evidence | Suggested fix(include a short code suggestion when the fix is not obvious). What is good:1-3 specific things worth keeping.Not verified:anything you could not run or read.Questions for the author:only genuine ambiguities.
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — /review
1.0.0
- Initial release.