Agent skill
review
Code review against GitLens standards with optional impact completeness audit
Install this agent skill to your Project
npx add-skill https://github.com/gitkraken/vscode-gitlens/tree/main/.claude/skills/review
SKILL.md
/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 changesfile:path: specific filepr: 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 alldebuggerstatements 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
- No
anyusage (exceptions only for external APIs) - Explicit return types for public methods
-
.jsextension in all imports (ESM requirement) - Import order: node built-ins → external → internal → relative
-
import typefor type-only imports - No default exports
- Path aliases (
@env/) for environment-specific code
Naming
- Classes: PascalCase (no
Iprefix) - Methods/Variables: camelCase
- Constants: camelCase (not SCREAMING_SNAKE_CASE)
- Files: camelCase.ts
- Private members: leading underscore allowed
Error Handling
- Git errors use
ErrorClass.is(ex, 'reason')pattern — notinstanceof+.message.includes() - Errors logged with context via
Logger.error() - No suppressed/ignored errors
- Graceful degradation for network/API failures
Performance
- Appropriate caching (
@memoize(), GitCache, PromiseCache) - Debounce expensive operations
- Lazy loading for heavy services
Webview (if applicable)
- Lit Elements for reactive UI
- VS Code theming via CSS custom properties (
--vscode-*) - Keyboard navigation and ARIA attributes
-
disconnectedCallback()cleanup for listeners
Scope & Simplicity
- No unnecessary new types/abstractions for single-use scenarios
- Changes scoped to the request — no unrelated drive-by changes
- Fix addresses root cause (feature not disabled instead of fixed)
Telemetry & Security
- Appropriate telemetry events for user actions
- No sensitive data in logs/telemetry
- No command injection, XSS, or hardcoded secrets
Documentation & Skills
- Check if changes affect patterns documented in
AGENTS.md,docs/architecture.md, ordocs/coding-standards.md— update if so - Check if any skills in
.claude/skills/reference changed APIs, patterns, or file paths — update if so - CHANGELOG entry needed for user-facing changes
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 sub-providers:
src/env/node/git/sub-providers/(15 sub-providers)src/plus/integrations/providers/github/sub-providers/(11 sub-providers)src/git/sub-providers/(shared)
3. Platform Coverage
- Node.js code path (
src/env/node/) - Browser code path (
src/env/browser/) - Shared code (
src/git/,src/system/)
4. Error & UI Impact
- New error cases handled at all catch sites
- Error types use
.is()pattern correctly - Webview IPC protocol changes reflected in both host and app
- Command changes reflected in
contributions.json
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 # Type-check
pnpm run lint # Lint check
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
investigate
Structured investigation of a bug or unexpected behavior before implementing a fix
commit
Create well-formatted git commits following GitLens conventions
analyze
Deep design and implementation analysis with devil's advocate evaluation
add-command
Create new VS Code commands with all required boilerplate
add-icon
Add new icons to the GitLens GL Icons font
deep-planning
Use when formulating the best technical approach for a task — before writing implementation plans or code. Triggers on architecture decisions, complex features, refactors, or when the user asks how to approach something. Investigates current codebase, questions existing patterns, researches alternatives, and presents approaches with trade-offs.
Didn't find tool you were looking for?