Matrix Code Review
This skill should be used when the user asks to "review this code", "review PR", "code review", "review staged changes", "blast radius analysis", "check impact of changes", or needs comprehensive context-aware code review.
What this skill does
# Matrix Code Review
Perform comprehensive, context-aware code review using 5-agent architecture with 95% false positive reduction.
> **Tip:** This skill runs in a **forked context** for an unbiased perspective - similar to how a human reviewer would approach the code for the first time.
## Architecture
```
ORCHESTRATOR (parses target, routes, aggregates)
│
├── DETECTION AGENT → security, runtime, breaking, logic flaws, hygiene (nuke)
├── IMPACT AGENT → blast radius, transitive graph, test coverage
├── TRIAGE AGENT → tier assignment, confidence calibration, noise filter
├── REMEDIATION AGENT → context-aware fixes, regression checks
└── VERIFICATION AGENT → build, test, lint validation
```
## Usage
Parse user arguments from the skill invocation (text after the trigger phrase).
**Expected format:** `<target> [mode]`
- **target**: File path, PR number, or "staged" for staged changes
- **mode** (optional): `default` | `lazy` (default: from config or `default`)
## Modes
### Default Mode (Comprehensive)
Full 5-agent review pipeline with maximum index utilization:
- Detection: Security vulns, runtime issues, breaking changes, **hygiene (nuke scan)**
- Impact: Transitive blast radius (2-3 levels), service boundaries, test coverage
- Triage: Tier classification, >80% signal ratio target
- Remediation: Context-aware fixes matching codebase patterns
- Verification: Run build, test, lint commands automatically
### Lazy Mode (Quick)
Detection agent only:
- Direct code inspection
- Critical issues only (Tier 1)
- ~2-3 comments, no blast radius
## Review Pipeline
Follow the 5-agent orchestration detailed in `references/review-phases.md`:
1. **Orchestrator** - Parse target, dispatch agents, aggregate results
2. **Detection Agent** - Find security, runtime, breaking, logic issues
3. **Impact Agent** - Calculate transitive blast radius, test coverage
4. **Triage Agent** - Classify tiers, calibrate confidence, filter noise
5. **Remediation Agent** - Generate fixes, check regression risk
6. **Verification Agent** - Run build, test, lint; report results
**Early exit:** If Detection finds nothing critical, skip Impact/Triage depth.
## Examples
```
/matrix:review src/utils/auth.ts # Default mode (comprehensive)
/matrix:review staged # Review staged changes
/matrix:review staged lazy # Quick review of staged changes
/matrix:review 123 # Review PR #123
/matrix:review 123 lazy # Quick review of PR #123
```
## Additional Resources
### Reference Files
- **`references/review-phases.md`** - Orchestrator + 5-agent pipeline
- **`references/agents/detection.md`** - Detection patterns and output format
- **`references/agents/impact.md`** - Blast radius algorithm
- **`references/agents/triage.md`** - Tier classification and signal ratio
- **`references/agents/remediation.md`** - Fix generation and regression checks
- **`references/agents/verification.md`** - Build/test/lint command detection and execution
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.