| name | review |
| description | Code review against GitLens standards with optional impact completeness audit |
/review - Code Review & Impact Audit
Review code changes against GitLens coding standards and verify change completeness.
Usage
/review [target]
- No argument: review staged changes (
git diff --cached)
all: all uncommitted changes
file:path: specific file
pr: current PR changes (gh pr diff)
impact: impact completeness audit only (skip code review checklist)
full: both code review + impact audit
Review Priorities
Review all changes for: correctness, matching user expectations, high performance (including proper caching and deferring of work), well-factored/structured/named code, minimal complexity, proper error handling and logging, comprehensive telemetry, and adherence to best practices. For webview changes, verify they are responsive, accessible, and work with VS Code theming.
Known Non-Issues (Do Not Flag)
debugger; statements — Webpack's production build automatically strips all debugger statements via the minimizer. They are intentional development aids and NOT a shipping concern. Do NOT flag them in reviews.
Part 1: Code Review Checklist
TypeScript & Imports
Naming
Error Handling
Performance
Webview (if applicable)
Scope & Simplicity
Telemetry & Security
Documentation & Skills
Part 2: Impact Completeness Audit
Run automatically for changes spanning 3+ files, or when impact / full is specified.
1. Identify Changed Symbols
From the diff, extract:
- Modified function signatures and type definitions
- Renamed or removed exports
- Changed error handling or decorator usage
2. Find All Consumers
For each modified symbol:
- Search all import statements referencing the modified file
- Search all call sites of modified functions
- Search all implementations/overrides in subclasses
- Check per-operation git providers:
packages/git/src/providers/ (shared domain providers)
packages/git-cli/src/providers/ (CLI implementations)
src/plus/integrations/host/providers/ (host integrations, e.g. githubGitProvider.ts)
3. Platform Coverage
4. Error & UI Impact
Instructions
Code Review Flow
- Get diff based on target
- Read full files for context around each change
- Analyze against Part 1 checklist
- Categorize: Critical (must fix), Warnings (should fix), Suggestions (nice to have)
- Include positive feedback for good patterns
Impact Audit Flow
- Extract changed symbols from diff
- Find all consumers of each symbol
- Check platform and UI coverage
- Report results:
### Consumers Checked
| Modified Symbol | Call Sites | All Updated? |
| --------------- | ---------- | ------------------------------- |
| functionA() | 12 | Yes |
| TypeB | 8 | 7/8 — MISSING: src/views/xyz.ts |
### Verdict
[COMPLETE / INCOMPLETE with remaining work]
Verification
pnpm exec tsc --noEmit
pnpm run lint