analyze-dependencies
Analyze project dependencies and evaluate architectural health. Trigger with "analyze dependencies", "detect circular dependencies", "architecture issues?",…
Identify root cause from error messages and suggest proven solutions. Trigger with "fix this error", "resolve this error", "what is this error?", "fix build error", "resolve test failure".
$ npx -y skills add wasabeef/claude-code-cookbook --skill fix-error --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/fix-errorContext preview
The summary Claude sees to decide when to auto-load this skill.
Identify root cause from error messages and suggest proven solutions. Trigger with "fix this error", "resolve this error", "what is this error?", "fix build error", "resolve test failure".
description: 'Identify root cause from error messages and suggest proven solutions. Trigger with "fix this error", "resolve this error", "what is this error?", "fix build error", "resolve test failure".' allowed-tools: - Read - Edit - Grep - Glob - Bash
Analyzes error messages to identify root causes, predict resolution time, and suggest proven fixes. Learns patterns from similar errors to provide immediate solutions.
/fix-error [options]
# Standard error analysis npm run build 2>&1 /fix-error "Analyze this build error and suggest fixes" # Deep analysis mode python app.py 2>&1 /fix-error --deep "Find the root cause, including environment issues" # Quick fixes only cargo test 2>&1 /fix-error --quick "Just give me a quick fix" # Prevention-focused ./app 2>&1 | tail -50 /fix-error --preventive "Fix this and help me prevent it next time"
# Analyze error logs cat error.log /fix-error "What's causing this error and how do I fix it?" # Resolve test failures npm test 2>&1 /fix-error --quick "These tests are failing - need a quick fix" # Analyze stack traces python script.py 2>&1 /fix-error --deep "Dig into this stack trace and check for environment issues" # Handle multiple errors grep -E "ERROR|WARN" app.log | tail -20 /fix-error "Sort these by priority and tell me how to fix each one"
🚀 Immediate Fix (< 5 minutes) ├─ Typos, missing imports ├─ Environment variables not set ├─ Undefined variable references └─ Predicted time: 2-5 minutes ⚡ Quick Fix (< 30 minutes) ├─ Dependency version conflicts ├─ Configuration file errors ├─ Type mismatches └─ Predicted time: 10-30 minutes 🔧 Investigation Required (< 2 hours) ├─ Complex logic errors ├─ Async processing race conditions ├─ API integration issues └─ Predicted time: 30 minutes-2 hours 🔬 Deep Analysis (Half day or more) ├─ Architecture-related issues ├─ Multi-system integration problems ├─ Performance degradation └─ Predicted time: 4 hours-several days
Common Errors and Immediate Solutions ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📊 "Cannot read property 'X' of undefined/null" (Frequency: Extremely High) ├─ Primary cause: Insufficient null checks on objects ├─ Resolution time: 5-10 minutes └─ Solution: Add Optional chaining (?.) or null checks 📊 "ECONNREFUSED" / "ENOTFOUND" (Frequency: High) ├─ Primary cause: Service not running or URL misconfiguration ├─ Resolution time: 5-15 minutes └─ Solution: Check service startup, environment variables 📊 "Module not found" / "Cannot resolve" (Frequency: High) ├─ Primary cause: Package not installed, incorrect path ├─ Resolution time: 2-5 minutes └─ Solution: Run npm install, check relative paths 📊 "Unexpected token" / "SyntaxError" (Frequency: Medium) ├─ Primary cause: Bracket/quote mismatch, reserved word usage ├─ Resolution time: 2-10 minutes └─ Solution: Check syntax highlighting, run linter 📊 "CORS policy" / "Access-Control-Allow-Origin" (Frequency: Medium) ├─ Primary cause: Insufficient CORS configuration on server ├─ Resolution time: 15-30 minutes └─ Solution: Configure server CORS, setup proxy 📊 "Maximum call stack size exceeded" (Frequency: Low) ├─ Primary cause: Infinite loops/recursion, circular references ├─ Resolution time: 30 minutes-2 hours └─ Solution: Check recursion termination conditions, resolve circular references
| Priority | Icon | Impact Range | Resolution Difficulty | Response Deadline | Description | | ----------------- | ------------------- | ------------ | --------------------- | ---------------------- | ------------------------------------------------ | | **Critical** | 🔴 Emergency | Wide | Low | Start within 15 min | System-wide outage, data loss risk | | **High Priority** | 🟠 Early Response | Wide | High | Start within 1 hour | Major feature outage, many users affected | | **Medium** | 🟡 Planned Response | Narrow | High | Address same day | Partial feature limitation, workaround available | | **Low** | 🟢 Monitor | Narrow | Low | Next maintenance cycle | Minor bugs, minimal UX impact |
🔴 Must have: - Full error message - Stack trace - Steps to reproduce 🟡 Should have: - Environment details (OS, versions, dependencies) - Recent changes (git log, commits) - Related logs 🟢 Nice to have: - System resources - Network state - External services
1. **Identify symptoms**
2. **Find root causes**
3. **Test your theory**
🔴 Quick fix (hotfix): - Stop the bleeding - Apply workarounds - Get ready to deploy 🟡 Root cause fix: - Fix the actual problem - Add tests - Update docs 🟢 Prevent future issues: - Better error handling - Add monitoring - Improve CI/CD
🚨 Error Analysis Report ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📍 Error Overview ├─ Type: [Compilation/Runtime/Logical/Environmental] ├─ Urgency: 🔴 High / 🟡 Medium / 🟢 Low ├─ Impact Scope: [Feature name/Component] └─ Reproducibility: [100% / Intermittent / Specifi
A collection of commands, roles, and automation scripts for Claude Code. Automate your workflow without unnecessary confirmations, allowing you to focus on what matters.
Repo: wasabeef/claude-code-cookbook
Analyze project dependencies and evaluate architectural health. Trigger with "analyze dependencies", "detect circular dependencies", "architecture issues?",…
Performance analysis based on Core Web Vitals with UX scoring. Trigger with "analyze performance", "improve speed", "check Core Web Vitals", "page speed",…
Verify information accuracy against codebase and documentation. Trigger with "is this correct?", "fact check", "verify this", "is this accurate?".
Evaluate and improve AI prompt quality. Trigger with "check this prompt", "evaluate prompt quality", "improve this prompt".
Generate commit messages from staged changes. Trigger with "suggest commit message", "generate commit message", "what should the commit say?", "write commit…