mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 17:47:16 +00:00
Repository Restructure: - Move all 83 agent .md files to agents/ subdirectory - Add 15 workflow orchestrators from commands repo to workflows/ - Add 42 development tools from commands repo to tools/ - Update README for unified repository structure The commands repository functionality is now fully integrated, providing complete workflow orchestration and development tooling alongside agents. Directory Structure: - agents/ - 83 specialized AI agents - workflows/ - 15 multi-agent orchestration commands - tools/ - 42 focused development utilities No breaking changes to agent functionality - all agents remain accessible with same names and behavior. Adds workflow and tool commands for enhanced multi-agent coordination capabilities.
61 lines
1.4 KiB
Markdown
61 lines
1.4 KiB
Markdown
---
|
|
model: claude-sonnet-4-0
|
|
---
|
|
|
|
# Error Analysis and Resolution
|
|
|
|
Analyze and resolve errors in: $ARGUMENTS
|
|
|
|
Perform comprehensive error analysis:
|
|
|
|
1. **Error Pattern Analysis**:
|
|
- Categorize error types
|
|
- Identify root causes
|
|
- Trace error propagation
|
|
- Analyze error frequency
|
|
- Correlate with system events
|
|
|
|
2. **Debugging Strategy**:
|
|
- Stack trace analysis
|
|
- Variable state inspection
|
|
- Execution flow tracing
|
|
- Memory dump analysis
|
|
- Race condition detection
|
|
|
|
3. **Error Handling Improvements**:
|
|
- Custom exception classes
|
|
- Error boundary implementation
|
|
- Retry logic with backoff
|
|
- Circuit breaker patterns
|
|
- Graceful degradation
|
|
|
|
4. **Logging Enhancement**:
|
|
- Structured logging setup
|
|
- Correlation ID implementation
|
|
- Log aggregation strategy
|
|
- Debug vs production logging
|
|
- Sensitive data masking
|
|
|
|
5. **Monitoring Integration**:
|
|
- Sentry/Rollbar setup
|
|
- Error alerting rules
|
|
- Error dashboards
|
|
- Trend analysis
|
|
- SLA impact assessment
|
|
|
|
6. **Recovery Mechanisms**:
|
|
- Automatic recovery procedures
|
|
- Data consistency checks
|
|
- Rollback strategies
|
|
- State recovery
|
|
- Compensation logic
|
|
|
|
7. **Prevention Strategies**:
|
|
- Input validation
|
|
- Type safety improvements
|
|
- Contract testing
|
|
- Defensive programming
|
|
- Code review checklist
|
|
|
|
Provide specific fixes, preventive measures, and long-term reliability improvements. Include test cases for each error scenario.
|