**Name:** exception-review
Analyzes exception handling patterns, error recovery mechanisms, and application resilience across the codebase.
/plugin marketplace add dgriffith/bad-daves-robot-army/plugin install dgriffith-bad-daves-robot-army@dgriffith/bad-daves-robot-armyName: exception-review
Pattern: /exception-review(?:\s+(.+))?
Description: Analyze exception handling patterns, error recovery mechanisms, and application resilience across the codebase
This slash command performs a comprehensive analysis of exception handling and error resilience patterns in your codebase. It identifies potential failure points, evaluates current error handling strategies, and provides recommendations for building more robust and fault-tolerant applications.
/exception-review # Review entire codebase
/exception-review src/ # Review specific directory
/exception-review src/api/users.js # Review specific file
/exception-review current changes # Review uncommitted changes
/exception-review recent changes # Review recent commits
/exception-review PR #123 # Review specific pull request
When this command is executed, invoke the @agent-exception-handling-master subagent with the following context:
Exception Handling Patterns:
Error Recovery Mechanisms:
Resilience Architecture:
Input Validation & Edge Cases:
Generate a comprehensive report at /reports/exception-review-{timestamp}.md with the following structure:
# Exception Handling Review Report
*Generated: {timestamp}*
*Scope: {scope_description}*
## Executive Summary
- Overall resilience score
- Critical findings count
- High-impact recommendations
- Current maturity level assessment
## Exception Handling Findings
### Critical Issues
- Unhandled exceptions that could crash the application
- Missing error boundaries in critical paths
- Resource leaks in error conditions
### High Priority
- Inconsistent error handling patterns
- Missing retry logic for transient failures
- Inadequate logging for debugging
### Medium Priority
- Generic catch-all exception handlers
- Missing timeout handling
- Insufficient input validation
### Low Priority
- Minor logging improvements
- Code style inconsistencies in error handling
- Documentation gaps
## Current State Analysis
### Strengths
- Well-implemented patterns found
- Good practices already in use
- Robust areas of the codebase
### Weaknesses
- Vulnerable code paths
- Missing resilience patterns
- Error handling gaps
### Coverage Assessment
- Exception handling coverage by module
- Critical path protection level
- Test coverage for error scenarios
## Improvement Plan
### Phase 1: Critical Fixes
- Immediate actions to prevent application crashes
- Essential error boundaries and fallbacks
### Phase 2: Resilience Enhancement
- Implement retry logic and circuit breakers
- Add comprehensive input validation
### Phase 3: Monitoring & Observability
- Enhanced error logging and monitoring
- Error rate tracking and alerting
## Recommendations
### Architectural Patterns
- Recommended exception handling strategies
- Resilience patterns to implement
- Error recovery mechanisms to add
### Implementation Guidelines
- Coding standards for exception handling
- Testing strategies for error scenarios
- Monitoring and alerting best practices
### Tools & Libraries
- Recommended libraries for error handling
- Monitoring and observability tools
- Testing frameworks for resilience
## Action Items
- [ ] Prioritized list of specific improvements
- [ ] Code locations requiring attention
- [ ] Suggested implementation timeline
The exception handling review should evaluate:
YOU MUST CREATE THE REPORT FILE. This is not optional.
Create the report file using the Write tool at the specified path:
/reports/{command-name}-{scope}-{timestamp}.mdYYYY-MM-DD-HHmmss/reports/architecture-review-entire-project-2025-10-14-143022.mdFill in ALL sections of the report template
Confirm completion by telling the user:
❌ DON'T: Just summarize findings in the chat ❌ DON'T: Say "I'll create a report" without actually doing it ❌ DON'T: Leave sections incomplete or with placeholders ❌ DON'T: Forget to use the Write tool
✅ DO: Always use the Write tool to create the markdown file ✅ DO: Fill in every section with real findings ✅ DO: Provide the full path to the user when done ✅ DO: Include actionable recommendations
Before responding to the user, verify:
Remember: The report is the primary deliverable. The chat summary is secondary.