{"aiPlatform":"claude-code@2025.06","category":"debugging","commandName":"/error-analysis","content":"---\nname: Error Analysis and Resolution\ndescription: Comprehensive error analysis tool that categorizes error types, identifies root causes, and provides resolution strategies with pattern analysis.\nallowed_tools:\n  - filesystem      # Analyze logs and error traces\n  - memory          # Track error patterns and resolution history\n  - sqlite          # Store error analysis and resolution data\ntags:\n  - error-analysis\n  - debugging\n  - root-cause-analysis\n  - troubleshooting\n  - resolution\ncategory: development\nversion: 1.0.0\nauthor: AI Commands Team\n---\n\n# Error Analysis and Resolution\n\nAnalyze and resolve errors in: $ARGUMENTS\n\nPerform comprehensive error analysis:\n\n1. **Error Pattern Analysis**:\n   - Categorize error types\n   - Identify root causes\n   - Trace error propagation\n   - Analyze error frequency\n   - Correlate with system events\n\n2. **Debugging Strategy**:\n   - Stack trace analysis\n   - Variable state inspection\n   - Execution flow tracing\n   - Memory dump analysis\n   - Race condition detection\n\n3. **Error Handling Improvements**:\n   - Custom exception classes\n   - Error boundary implementation\n   - Retry logic with backoff\n   - Circuit breaker patterns\n   - Graceful degradation\n\n4. **Logging Enhancement**:\n   - Structured logging setup\n   - Correlation ID implementation\n   - Log aggregation strategy\n   - Debug vs production logging\n   - Sensitive data masking\n\n5. **Monitoring Integration**:\n   - Sentry/Rollbar setup\n   - Error alerting rules\n   - Error dashboards\n   - Trend analysis\n   - SLA impact assessment\n\n6. **Recovery Mechanisms**:\n   - Automatic recovery procedures\n   - Data consistency checks\n   - Rollback strategies\n   - State recovery\n   - Compensation logic\n\n7. **Prevention Strategies**:\n   - Input validation\n   - Type safety improvements\n   - Contract testing\n   - Defensive programming\n   - Code review checklist\n\nProvide specific fixes, preventive measures, and long-term reliability improvements. Include test cases for each error scenario.","contentHash":"8dd49ebac587e32ec07f643e19ef3dbe6ae43dc3541260d8f59af12be0f49329","copies":0,"createdAt":"2025-08-12T16:09:41.167Z","description":"Deep error pattern analysis and resolution strategies","github":{"repoUrl":"https://github.com/Commands-com/commands","lastSyncDirection":"from-github","metadata":{"importedFrom":"github_repository","repoPrivate":false,"repoDefaultBranch":"main","connectedAt":"2025-08-12T16:09:41.167Z"},"importedAt":"2025-08-12T16:09:41.167Z","lastSyncAt":"2025-08-17T17:57:48.302Z","fileMapping":{"license":null,"readme":null,"assets":[],"mainFile":"tools/error-analysis.md"},"selectedCommand":"error-analysis","fileShas":{"mainFile":"ef3ba42627f36ee40418788548f9d39a1d7420aa","yamlPath":"313647b1fb381389da33b7913e95baf617c4b392"},"branch":"main","connectionType":"commands_yaml","connected":true,"lastSyncCommit":"01591bc061d236bde47bf23b0f47e8afcf1a5144","importSource":"repository_import","installationId":"69232615","syncStatus":"synced"},"githubRepoUrl":"https://github.com/Commands-com/commands","id":"5c952276-d299-4e85-bf88-5565d7e43985","instructions":"Deep error pattern analysis and resolution strategies","likes":0,"mcp_search_content":"","organizationUsername":"commands-com","price":"free","search_content":"error analysis deep error pattern analysis and resolution strategies /error-analysis debugging claude-code@2025.06","title":"Error Analysis","type":"command","updatedAt":"2025-08-17T17:57:48.302Z","userId":"W0V8NAw5AhWRwcuwSoFLOi1Yem83","visibility":"public","name":"error-analysis","userInteraction":{"userHasStarred":false}}