
Deep Agent Review
- 6 installs
- 5 repo stars
- Updated June 3, 2026
- dimitrigilbert/ai-skills
Run an exhaustive multi-agent code review with area specialists, verified findings, and remediation plans.
About
Orchestrates an exhaustive multi-agent code review with area specialists, verified findings, and remediation plans. A developer uses it for a deep, thorough audit of a codebase.
- Orchestrates explorer, specialist, verifier, and master-plan subagent phases
- All findings are verified before the final report to kill false positives
Deep Agent Review by the numbers
- 6 all-time installs (skills.sh)
- Ranked #870 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
- Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/dimitrigilbert/ai-skills --skill deep-agent-reviewAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 6 |
|---|---|
| repo stars | ★ 5 |
| Last updated | June 3, 2026 |
| Repository | dimitrigilbert/ai-skills ↗ |
What it does
Run an exhaustive multi-agent code review with area specialists, verified findings, and remediation plans.
Files
Deep Agent Review
Orchestrate exhaustive multi-agent code reviews with progressive findings, verified claims, and actionable remediation plans.
Core Principle
One approval at start, then complete autonomous execution with verified findings.
YOU ARE THE ORCHESTRATOR: You coordinate review phases by dispatching specialized subagents. You never write findings yourself - you manage the review process.
What Makes This Different
| Standard Review | Deep Agent Review |
|---|---|
| Single reviewer | Multiple domain specialists |
| End-of-review findings | Progressive findings (saved as you go) |
| Generic categories | Area-aware deep dives |
| Unverified claims | All claims verified before final report |
| One-size-fits-all | Severity-specific remediation plans |
Execution Model
START
│
▼
1. EXPLORER: Map codebase into semantic areas
└─ Output: review/areas.yaml
│
▼
2. USER APPROVAL: Review and approve areas
│
▼
3. SPECIALISTS: Deep review each area (parallel)
├─ Save findings incrementally to review/[area].yaml
└─ Classify: type, severity, file:line, fix plan
│
▼
4. VERIFIERS: Verify all claims by severity
├─ Critical verifier → plans/review/critical-verified.yaml
├─ High verifier → plans/review/high-verified.yaml
└─ Medium/Low verifier → plans/review/standard-verified.yaml
│
▼
5. MASTER PLANS: Generate remediation roadmaps
└─ Output: plans/review/master-plan.yaml
│
▼
REPORT: Summary with statisticsQuick Start
1. Initialize Review
Initialize deep agent review for this codebase.You will:
- Dispatch an Explorer agent to map semantic areas
- Create
review/areas.yamlwith area definitions
2. Approve Areas
Review review/areas.yaml and confirm:
- Areas cover all important code
- Specializations are appropriate
- No blind spots
3. Execute Review
Once approved:
Execute the review.All phases run automatically without further interaction.
Phase Details
Phase 1: Exploration
Goal: Map codebase into semantic areas, not generic layers.
Explorer prompt template:
ROLE: Codebase Explorer
MISSION: Map this codebase into semantic areas for deep review.
REQUIREMENTS:
- Go beyond "backend/frontend/database"
- Identify domain-specific areas (auth, payments, game-lifecycle, etc.)
- Understand HOW things work, not just WHERE they are
- Identify cross-cutting concerns
- Note any incomplete/broken features
OUTPUT: Create review/areas.yaml with:
areas:
- name: "[semantic name]"
description: "[what this area does and why it matters]"
paths: ["glob/patterns/**"]
focus: ["specific concerns for this area"]
specialist: "[recommended agent type]"
cross_cutting:
- name: "[concern name]"
affects: ["area names"]
broken_incomplete:
- feature: "[name]"
evidence: "[what's missing/broken]"
impact: "[user/business impact]"
SPECIALIST MAPPING:
- Security concerns → code-reviewer or general with security focus
- Frontend/UI → frontend-developer
- Backend/API → backend-security-coder
- Architecture → architect-review
- DevOps/Infra → devops-troubleshooter
- General exploration → explore agent
Save to: review/areas.yamlSemantic area examples:
auth-flow- Authentication, session management, tokensgame-lifecycle- Game creation, publishing, state transitionsleaderboard-system- Scoring, ranking, displayadmin-controls- Admin features, permissions, managementuser-data- User profiles, preferences, privacyapi-surface- All endpoints, validation, responsesdata-layer- Schema, queries, migrations, caching
Phase 2: Specialist Review
Goal: Deep dive into each area with progressive findings.
Specialist prompt template:
ROLE: [Area] Specialist
AREA: [area name]
MISSION: Conduct exhaustive review of [area name].
SCOPE:
- Paths: [glob patterns]
- Focus: [specific concerns]
FINDINGS FORMAT:
Save findings incrementally to review/[area-name].yaml
findings:
- id: "[area]-[number]"
type: "[security|quality|performance|correctness|maintainability|accessibility]"
severity: "[critical|high|medium|low|nitpick]"
title: "[brief description]"
file: "[path]"
line: [line number or range]
description: |
[detailed explanation of the issue]
evidence: |
[code snippet or behavior description]
impact: |
[what happens if not fixed]
fix:
approach: "[high-level fix strategy]"
steps:
- "[step 1]"
- "[step 2]"
effort: "[low|medium|high]"
references:
- "[URL or doc reference]"
REVIEW APPROACH:
1. Start with high-level understanding (read key files)
2. Find obvious issues, save immediately
3. Go deeper into edge cases, save incrementally
4. Check cross-cutting concerns (security, perf, etc.)
5. Review error handling and edge cases
6. Look for missing/incomplete features
7. Final pass for anything missed
SEVERITY GUIDELINES:
- CRITICAL: Security breach, data loss, system down
- HIGH: Feature broken, security risk, major perf issue
- MEDIUM: Feature degraded, quality issue, minor security concern
- LOW: Code smell, minor bug with workaround
- NITPICK: Style, minor improvement
TYPE GUIDELINES:
- security: Auth, injection, exposure, permissions
- quality: Code structure, patterns, duplication
- performance: Speed, memory, scalability
- correctness: Logic errors, wrong behavior
- maintainability: Documentation, complexity, tests
- accessibility: A11y compliance, screen readers
SAVE PROGRESSIVELY:
- Don't wait until end to save findings
- Save after each major discovery
- Update file as you find more
- This allows parallel progress tracking
Save to: review/[area-name].yamlPhase 3: Verification
Goal: Verify all claims before finalizing.
Critical/High verifier template:
ROLE: [Severity] Verifier
MISSION: Verify all [critical/high] severity findings are accurate.
INPUT FILES:
- review/*.yaml (all area findings)
VERIFICATION PROCESS:
For each [critical/high] finding:
1. Read the referenced file and line
2. Confirm the issue exists as described
3. Verify the severity is appropriate
4. Validate the fix approach is viable
5. Check for additional context that changes assessment
OUTPUT FORMAT:
Save to: plans/review/[severity]-verified.yaml
verified:
- id: "[original finding id]"
status: "[confirmed|adjusted|rejected]"
adjusted_severity: "[if changed]"
notes: "[verification notes]"
additional_context: "[any new information]"
rejected:
- id: "[original finding id]"
reason: "[why this finding is incorrect]"
explanation: "[what's actually happening]"
RULES:
- Be skeptical - verify don't trust
- Read actual code, don't assume
- If severity is wrong, adjust it
- If finding is wrong, reject with explanation
- If more context needed, note it
Save to: plans/review/[severity]-verified.yamlStandard verifier (medium/low/nitpick):
ROLE: Standard Verifier
MISSION: Verify medium, low, and nitpick severity findings.
[Same process as above but for lower severities]
Save to: plans/review/standard-verified.yamlPhase 4: Master Plan Generation
Goal: Create actionable remediation roadmap.
Planner template:
ROLE: Remediation Planner
MISSION: Create master remediation plan from verified findings.
INPUTS:
- plans/review/critical-verified.yaml
- plans/review/high-verified.yaml
- plans/review/standard-verified.yaml
OUTPUT: plans/review/master-plan.yaml
structure:
meta:
generated: "[timestamp]"
total_findings: [count]
by_severity:
critical: [count]
high: [count]
medium: [count]
low: [count]
nitpick: [count]
by_type:
[type]: [count]
remediation:
immediate: # Critical issues
- id: "[finding id]"
title: "[brief title]"
files: ["[affected files]"]
effort: "[estimated effort]"
dependencies: ["[blocking issues]"]
short_term: # High issues
- id: "[finding id]"
title: "[brief title]"
files: ["[affected files]"]
effort: "[estimated effort]"
medium_term: # Medium issues
- id: "[finding id]"
title: "[brief title]"
files: ["[affected files]"]
effort: "[estimated effort]"
backlog: # Low and nitpick
- id: "[finding id]"
title: "[brief title]"
execution_order:
- phase: 1
focus: "[what to fix]"
findings: ["[ids]"]
estimated_effort: "[total]"
- phase: 2
focus: "[what to fix]"
findings: ["[ids]"]
estimated_effort: "[total]"
Save to: plans/review/master-plan.yamlFile Structure
review/
├── areas.yaml # Phase 1: Area definitions
├── auth-flow.yaml # Phase 2: Area findings
├── game-lifecycle.yaml
├── leaderboard.yaml
└── ...
plans/review/
├── critical-verified.yaml # Phase 3: Verified critical
├── high-verified.yaml # Phase 3: Verified high
├── standard-verified.yaml # Phase 3: Verified medium/low
└── master-plan.yaml # Phase 4: Remediation roadmapDispatching Agents
Parallel Dispatch (Specialists)
// Dispatch all area specialists simultaneously
areas.forEach(area => {
dispatchAgent({
type: area.specialist, // code-reviewer, frontend-developer, etc.
prompt: specialistPrompt(area),
async: true
});
});
// Wait for all to complete
await allComplete();
// Verify all review/*.yaml files existSequential Dispatch (Verification)
// Verify in severity order
await dispatchAgent({
type: 'code-reviewer',
prompt: criticalVerifierPrompt()
});
await dispatchAgent({
type: 'code-reviewer',
prompt: highVerifierPrompt()
});
await dispatchAgent({
type: 'code-reviewer',
prompt: standardVerifierPrompt()
});
// Generate master plan
await dispatchAgent({
type: 'architect-review',
prompt: plannerPrompt()
});Severity Classification
| Severity | Definition | Example |
|---|---|---|
| Critical | System compromised, data loss, security breach | SQL injection, auth bypass, data exposure |
| High | Feature broken, major security risk, severe perf | Broken payment flow, missing auth check, N+1 at scale |
| Medium | Feature degraded, quality issue, minor security | Missing input validation, poor error handling, code duplication |
| Low | Minor bug with workaround, code smell | Off-by-one edge case, missing null check in rare path |
| Nitpick | Style, naming, minor improvement | Variable naming, comment clarification |
Type Classification
| Type | Scope | Focus Areas |
|---|---|---|
| security | Auth, data, access | Injection, auth bypass, exposure, permissions |
| quality | Code health | Duplication, patterns, complexity, coupling |
| performance | Speed, resources | N+1, memory leaks, blocking ops, caching |
| correctness | Logic, behavior | Wrong calculations, missing cases, race conditions |
| maintainability | Long-term health | Documentation, tests, complexity, dependencies |
| accessibility | A11y compliance | Screen readers, keyboard nav, contrast, ARIA |
Critical Rules
Rule 1: Progressive Saving
Specialists MUST save findings incrementally, not at the end.
- Find something → Save immediately
- Find more → Append/update
- This enables progress tracking and recovery
Rule 2: Verified Claims
No finding appears in final report without verification.
- Verifiers read actual code
- Verifiers confirm or reject claims
- Only verified findings go to master plan
Rule 3: Orchestrator Doesn't Review
You coordinate, you don't review.
- Dispatch specialists
- Collect their outputs
- Dispatch verifiers
- Generate reports
- Never write findings yourself
Rule 4: Semantic Areas
Areas reflect domain, not architecture.
- "game-lifecycle" not "backend"
- "auth-flow" not "database"
- Understand HOW things work
Rule 5: Actionable Plans
Every finding has a fix plan.
- Approach described
- Steps outlined
- Effort estimated
Progress Reporting
During Review (Optional)
Progress: [N]/[M] areas complete
Current: [area name]
Findings so far: [count] ([critical] critical, [high] high)Final Report
# Deep Agent Review Complete
## Summary
- Areas reviewed: [N]
- Total findings: [N]
- Critical: [N]
- High: [N]
- Medium: [N]
- Low: [N]
- Nitpick: [N]
## Verification Status
- Critical findings: [N] verified, [N] adjusted, [N] rejected
- High findings: [N] verified, [N] adjusted, [N] rejected
- Standard findings: [N] verified, [N] adjusted, [N] rejected
## Immediate Actions Required
[List critical findings with file:line]
## Files
- Areas: review/areas.yaml
- Findings: review/*.yaml
- Verification: plans/review/*-verified.yaml
- Master Plan: plans/review/master-plan.yamlCommon Patterns
Pattern: Incomplete Features
When explorer identifies incomplete features:
broken_incomplete:
- feature: "Game publishing"
evidence: "Publish endpoint exists but never called, no tests"
impact: "Users cannot publish games"Create a specialist area for it:
areas:
- name: "game-publishing"
description: "Incomplete publishing feature"
paths: ["**/publish*", "**/game*state*"]
focus: ["Why incomplete?", "What's missing?", "Can it be fixed?"]Pattern: Cross-Cutting Concerns
When multiple areas share concerns:
cross_cutting:
- name: "Error handling"
affects: ["auth-flow", "game-lifecycle", "api-surface"]Instruct specialists to:
For cross-cutting concern "Error handling":
- Check how errors are handled in your area
- Note inconsistencies with other areas
- Identify missing error casesPattern: Area Dependencies
When areas interact:
areas:
- name: "leaderboard"
dependencies: ["game-lifecycle", "user-data"]
focus: ["How does it get scores?", "What happens when game ends?"]Integration with Other Skills
Use code-review skill for:
- Standard review checklist
- Security vulnerability patterns
- Performance anti-patterns
Use subagent-orchestration for:
- Implementation after review
- Multi-phase remediation
Use the-council for:
- Architectural decisions
- Complex trade-off analysis
Quick Reference
Minimal Review Setup
1. Explorer → review/areas.yaml
2. Approve areas
3. Specialists (parallel) → review/[area].yaml
4. Verifiers → plans/review/*-verified.yaml
5. Planner → plans/review/master-plan.yamlSpecialist Dispatch Template
You are the [Area] Specialist.
Review [paths] focusing on [concerns].
Save findings incrementally to review/[area].yaml.
Format: YAML with type, severity, file:line, fix plan.Verifier Dispatch Template
You are the [Severity] Verifier.
Verify all [severity] findings in review/*.yaml.
Read actual code at file:line.
Save to plans/review/[severity]-verified.yaml.Reference Documentation
- Finding Schema - Complete YAML schema for findings
- Area Examples - Semantic area patterns
- Specialist Profiles - Agent type mapping
# Area Examples - Semantic area patterns for different codebase types
# E-commerce / Marketplace
ecommerce:
areas:
- name: "product-catalog"
description: "Product listing, search, filtering, categories"
paths: ["**/product*", "**/catalog*", "**/search*"]
focus: ["Search performance", "Filter correctness", "Pagination"]
specialist: "backend-security-coder"
- name: "cart-checkout"
description: "Shopping cart, checkout flow, order creation"
paths: ["**/cart*", "**/checkout*", "**/order*"]
focus: ["Price calculations", "Inventory checks", "Payment integration"]
specialist: "code-reviewer"
- name: "payment-processing"
description: "Payment gateway integration, transactions"
paths: ["**/payment*", "**/transaction*", "**/stripe*"]
focus: ["Security", "Error handling", "Idempotency"]
specialist: "backend-security-coder"
- name: "user-accounts"
description: "Registration, auth, profile management"
paths: ["**/user*", "**/auth*", "**/account*"]
focus: ["Auth security", "Data privacy", "Session management"]
specialist: "backend-security-coder"
- name: "admin-dashboard"
description: "Admin features, order management, reporting"
paths: ["**/admin*", "**/dashboard*"]
focus: ["Access control", "Audit logging", "Bulk operations"]
specialist: "code-reviewer"
# Gaming Platform
gaming:
areas:
- name: "game-lifecycle"
description: "Game creation, state management, publishing"
paths: ["**/game*", "**/lifecycle*", "**/publish*"]
focus: ["State transitions", "Publishing flow", "Game validation"]
specialist: "code-reviewer"
- name: "leaderboard-system"
description: "Scoring, ranking, leaderboards"
paths: ["**/leaderboard*", "**/score*", "**/rank*"]
focus: ["Score calculation", "Ranking algorithms", "Real-time updates"]
specialist: "backend-security-coder"
- name: "multiplayer-sync"
description: "Real-time game state synchronization"
paths: ["**/multiplayer*", "**/sync*", "**/websocket*"]
focus: ["Latency handling", "Conflict resolution", "Cheating prevention"]
specialist: "backend-security-coder"
- name: "arcade-ui"
description: "Game browsing, playing interface"
paths: ["**/arcade*", "**/play*", "**/browse*"]
focus: ["UX flow", "Game loading", "Error states"]
specialist: "frontend-developer"
# SaaS Application
saas:
areas:
- name: "tenant-management"
description: "Multi-tenancy, organization handling"
paths: ["**/tenant*", "**/organization*", "**/workspace*"]
focus: ["Data isolation", "Tenant switching", "Billing per tenant"]
specialist: "architect-review"
- name: "subscription-billing"
description: "Plans, subscriptions, invoices"
paths: ["**/subscription*", "**/billing*", "**/invoice*"]
focus: ["Billing cycles", "Proration", "Payment failures"]
specialist: "code-reviewer"
- name: "api-rate-limiting"
description: "API quotas, throttling"
paths: ["**/rate*", "**/limit*", "**/quota*"]
focus: ["Rate limit accuracy", "Burst handling", "User experience"]
specialist: "backend-security-coder"
- name: "integrations"
description: "Third-party integrations, webhooks"
paths: ["**/integration*", "**/webhook*", "**/sync*"]
focus: ["Auth with third parties", "Webhook security", "Retry logic"]
specialist: "code-reviewer"
# Social Platform
social:
areas:
- name: "feed-algorithm"
description: "Content feed, ranking, personalization"
paths: ["**/feed*", "**/timeline*", "**/recommend*"]
focus: ["Algorithm correctness", "Performance at scale", "Privacy"]
specialist: "backend-security-coder"
- name: "messaging"
description: "Direct messages, conversations"
paths: ["**/message*", "**/chat*", "**/conversation*"]
focus: ["Real-time delivery", "Encryption", "Spam prevention"]
specialist: "backend-security-coder"
- name: "notifications"
description: "Push notifications, email notifications"
paths: ["**/notification*", "**/push*", "**/email*"]
focus: ["Delivery reliability", "Unsubscribe handling", "Batching"]
specialist: "code-reviewer"
- name: "content-moderation"
description: "Content filtering, reporting, moderation"
paths: ["**/moderation*", "**/report*", "**/filter*"]
focus: ["Filter effectiveness", "False positives", "Appeals process"]
specialist: "code-reviewer"
# Cross-Cutting Concerns (apply to any codebase)
cross_cutting:
- name: "authentication"
description: "Login, logout, session management"
affects: ["All user-facing areas"]
- name: "error-handling"
description: "Error boundaries, error reporting"
affects: ["All areas"]
- name: "logging-observability"
description: "Logs, metrics, traces"
affects: ["All areas"]
- name: "data-validation"
description: "Input validation, sanitization"
affects: ["All API surfaces"]
- name: "caching"
description: "Cache strategies, invalidation"
affects: ["Read-heavy areas"]
# Incomplete/Broken Feature Detection
broken_patterns:
- pattern: "endpoint_exists_not_called"
detection: "Route defined but no usages found"
example: "Publish endpoint exists but never invoked"
- pattern: "missing_tests"
detection: "Feature code exists but no test coverage"
example: "Payment processing has no integration tests"
- pattern: "todo_leftover"
detection: "TODO/FIXME comments in critical paths"
example: "TODO: Handle payment failure in checkout"
- pattern: "dead_code"
detection: "Code that is never executed"
example: "Old migration scripts that are outdated"
- pattern: "half_implemented"
detection: "Feature has UI but no backend, or vice versa"
example: "Admin UI for feature that doesn't exist in API"
# Area Definition Template
template:
name: "[area-name]"
description: "[what this area does and why it matters]"
paths:
- "[glob/pattern/**]"
- "[another/pattern/**]"
focus:
- "[specific concern 1]"
- "[specific concern 2]"
- "[specific concern 3]"
dependencies:
- "[other area this depends on]"
specialist: "[recommended agent type]"
priority: "[high|medium|low]"
estimated_files: [rough count]
# Finding Schema - Complete YAML structure for review findings
# Root structure
findings:
- id: "[area]-[sequential-number]"
type: "[type]"
severity: "[severity]"
title: "[brief description]"
status: "[open|in_progress|fixed|wont_fix]"
# Location
file: "[path/to/file]"
line: [start_line]
line_end: [end_line] # Optional, for multi-line issues
function: "[function_name]" # Optional
# Description
description: |
[Detailed explanation of the issue]
Can span multiple lines.
evidence: |
[Code snippet showing the issue]
```language
code here
```
# Impact assessment
impact:
user_facing: [true|false]
description: "[what happens if not fixed]"
affected_users: "[estimate or 'all' or 'edge_case']"
# Fix plan
fix:
approach: "[high-level strategy]"
steps:
- "[step 1]"
- "[step 2]"
- "[step 3]"
code_example: |
[Optional: example of fixed code]
effort: "[low|medium|high]"
risk: "[low|medium|high]" # Risk of fix breaking something
# References
references:
- type: "[url|doc|issue|pr]"
value: "[link or reference]"
# Metadata
discovered_at: "[timestamp]"
area: "[area name]"
reviewer: "[agent type]"
# Enumerations
## type values
types:
- security: "Auth, injection, exposure, permissions issues"
- quality: "Code structure, patterns, duplication"
- performance: "Speed, memory, scalability issues"
- correctness: "Logic errors, wrong behavior"
- maintainability: "Documentation, complexity, tests"
- accessibility: "A11y compliance, screen readers"
## severity values
severities:
- critical: "Security breach, data loss, system down"
- high: "Feature broken, security risk, major perf issue"
- medium: "Feature degraded, quality issue, minor security"
- low: "Code smell, minor bug with workaround"
- nitpick: "Style, minor improvement"
## status values
statuses:
- open: "Not yet addressed"
- in_progress: "Being worked on"
- fixed: "Resolved"
- wont_fix: "Accepted as-is"
- needs_discussion: "Requires team decision"
# Example finding
example:
findings:
- id: "auth-001"
type: "security"
severity: "critical"
title: "SQL injection in user search"
status: "open"
file: "src/api/users.ts"
line: 45
function: "searchUsers"
description: |
User-supplied input is directly interpolated into SQL query
without sanitization, allowing arbitrary SQL execution.
evidence: |
```typescript
const query = `SELECT * FROM users WHERE name LIKE '%${searchTerm}%'`;
```
impact:
user_facing: true
description: "Attacker can read/modify any database data"
affected_users: "all"
fix:
approach: "Use parameterized queries"
steps:
- "Replace string interpolation with parameterized query"
- "Add input validation for search term"
- "Add integration test for SQL injection attempts"
code_example: |
```typescript
const query = 'SELECT * FROM users WHERE name LIKE $1';
const result = await db.query(query, [`%${searchTerm}%`]);
```
effort: "low"
risk: "low"
references:
- type: "url"
value: "https://owasp.org/www-community/attacks/SQL_Injection"
discovered_at: "2024-01-15T10:30:00Z"
area: "auth-flow"
reviewer: "code-reviewer"
Specialist Profiles - Agent type mapping for review areas
Available Agent Types
| Agent | Best For | Review Focus |
|---|---|---|
code-reviewer | General code review | Quality, patterns, best practices |
frontend-developer | UI/UX code | Components, accessibility, performance |
backend-security-coder | Secure backend code | Security, validation, auth |
architect-review | Architecture decisions | Design patterns, scalability |
devops-troubleshooter | Infrastructure, deployment | Config, secrets, reliability |
explore | Codebase exploration | Discovery, mapping |
general | Everything else | Flexible, context-dependent |
Domain-to-Agent Mapping
Security Domains
authentication → backend-security-coder
authorization → backend-security-coder
data-encryption → backend-security-coder
input-validation → backend-security-coder
api-security → backend-security-coderFrontend Domains
ui-components → frontend-developer
accessibility → frontend-developer
state-management → frontend-developer
forms-validation → frontend-developer
responsive-design → frontend-developerBackend Domains
api-routes → code-reviewer
business-logic → code-reviewer
database-queries → code-reviewer
caching → code-reviewer
background-jobs → code-reviewerArchitecture Domains
system-design → architect-review
scalability → architect-review
integration-patterns → architect-review
data-flow → architect-reviewInfrastructure Domains
deployment → devops-troubleshooter
monitoring → devops-troubleshooter
error-tracking → devops-troubleshooter
performance-profiling → devops-troubleshooterSpecialist Personas
Security Specialist
agent: backend-security-coder
persona: |
You are a security-focused reviewer. You look for:
- OWASP Top 10 vulnerabilities
- Authentication/authorization flaws
- Data exposure risks
- Injection vulnerabilities
- Insecure configurations
You are paranoid but practical. Every finding must have
a clear attack scenario and realistic fix.Quality Specialist
agent: code-reviewer
persona: |
You are a code quality reviewer. You look for:
- DRY violations
- SOLID principle violations
- Code complexity
- Test coverage gaps
- Documentation gaps
You believe code is read more than written. Every finding
must improve maintainability.Performance Specialist
agent: code-reviewer
persona: |
You are a performance reviewer. You look for:
- N+1 queries
- Unnecessary re-renders
- Memory leaks
- Blocking operations
- Missing caching
You measure first, optimize second. Every finding must
have measurable impact.Accessibility Specialist
agent: frontend-developer
persona: |
You are an accessibility reviewer. You look for:
- ARIA attributes
- Keyboard navigation
- Screen reader support
- Color contrast
- Focus management
You believe the web is for everyone. Every finding must
have clear WCAG guideline reference.Architecture Specialist
agent: architect-review
persona: |
You are an architecture reviewer. You look for:
- Design pattern violations
- Coupling issues
- Scalability bottlenecks
- Integration problems
- Technical debt
You think in systems, not files. Every finding must
consider broader impact.Dispatch Instructions by Specialist
For Security Specialist
You are the Security Specialist reviewing [area].
Focus on:
- Authentication and authorization
- Input validation and sanitization
- Data exposure and leakage
- Injection vulnerabilities
- Security configurations
For each finding:
- Describe the attack vector
- Assess real-world exploitability
- Provide secure alternative code
Severity guidance:
- CRITICAL: Active exploit possible, data at risk
- HIGH: Vulnerability exists, needs exploitation
- MEDIUM: Security weakness, defense in depth
- LOW: Best practice violationFor Quality Specialist
You are the Code Quality Specialist reviewing [area].
Focus on:
- Code duplication
- Complexity and readability
- Test coverage
- Documentation
- Error handling
For each finding:
- Show the problematic code
- Explain maintainability impact
- Provide refactored example
Severity guidance:
- CRITICAL: Code will cause bugs in production
- HIGH: Significant maintainability burden
- MEDIUM: Quality issue, manageable
- LOW: Minor improvement opportunityFor Frontend Specialist
You are the Frontend Specialist reviewing [area].
Focus on:
- Component structure and patterns
- State management
- Accessibility
- Performance (render, bundle)
- User experience
For each finding:
- Identify user impact
- Check accessibility compliance
- Consider performance implications
Severity guidance:
- CRITICAL: Feature unusable or inaccessible
- HIGH: Significant UX or a11y issue
- MEDIUM: Quality or minor perf issue
- LOW: Improvement opportunityVerification Specialist Profiles
Critical Issue Verifier
agent: code-reviewer
instructions: |
You verify CRITICAL severity findings.
For each critical finding:
1. Read the file at the specified line
2. Confirm the issue exists EXACTLY as described
3. Verify severity is appropriate (is it really critical?)
4. Validate the fix approach would work
5. Check for any additional context
Be SKEPTICAL. Critical findings should be undisputable.
Output:
- CONFIRMED: Issue exists, severity correct
- DOWNGRADED: Issue exists but not critical (explain why)
- REJECTED: Issue doesn't exist or is incorrect (explain)High Issue Verifier
agent: code-reviewer
instructions: |
You verify HIGH severity findings.
Same process as critical verifier, but:
- Focus on real-world impact
- Check if workaround exists
- Assess user-facing impact
HIGH means broken feature or significant risk, verify this.Standard Issue Verifier
agent: code-reviewer
instructions: |
You verify MEDIUM, LOW, and NITPICK findings.
Batch process these efficiently:
- Quick verification of each
- Group similar findings
- Identify patterns
Less scrutiny than critical/high, but still verify existence.Choosing Specialists for Areas
Decision Tree
Does area handle user auth/data?
YES → backend-security-coder
NO ↓
Is area primarily UI?
YES → frontend-developer
NO ↓
Does area involve system design/integrations?
YES → architect-review
NO ↓
Does area involve deployment/infra?
YES → devops-troubleshooter
NO ↓
Default → code-reviewerArea-Specific Mapping Examples
| Area | Specialist | Reason |
|---|---|---|
| auth-flow | backend-security-coder | Security critical |
| payment-processing | backend-security-coder | Financial security |
| user-profiles | code-reviewer | Standard CRUD |
| admin-dashboard | frontend-developer | UI-heavy |
| api-routes | code-reviewer | General backend |
| database-queries | code-reviewer | Performance focus |
| deployment-pipeline | devops-troubleshooter | Infra focus |
| microservice-integration | architect-review | Architecture focus |