Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Legacy error-resolution reference archive retained for migration. Do not route user tasks here; use systematic-debugging for active bug, stack-trace, and root-cause work.
.claude/skills/foryourhealth111-pixel-error-resolver/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-21 | ✗→✓ | ▲ Improved | 273% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 46% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 140% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 270% | 0% |
Legacy reference archive for first-principle error diagnosis across languages and frameworks.
This directory is retained because it contains substantial analysis, pattern, and replay material. It is not an active code-quality route owner. Route user-facing bug, stack-trace, and root-cause tasks to systematic-debugging.
The 5-step Error Resolution Process:
1. CLASSIFY -> 2. PARSE -> 3. MATCH -> 4. ANALYZE -> 5. RESOLVE
| | | | |
What type? Extract key Known Root cause Fix +
information pattern? analysis PreventWhen you encounter an error:
| Category | Indicators | Common Causes | |----------|------------|---------------| | Syntax | Parse error, Unexpected token | Typos, missing brackets, invalid syntax | | Type | TypeError, type mismatch | Wrong data type, null/undefined access | | Reference | ReferenceError, NameError | Undefined variable, scope issues | | Runtime | RuntimeError, Exception | Logic errors, invalid operations | | Network | ECONNREFUSED, timeout, 4xx/5xx | Connection issues, wrong URL, server down | | Permission | EACCES, PermissionError | File/directory access, sudo needed | | Dependency | ModuleNotFound, Cannot find module | Missing package, version mismatch | | Configuration | Config error, env missing | Wrong settings, missing env vars | | Database | Connection refused, query error | DB down, wrong credentials, bad query | | Memory | OOM, heap out of memory | Memory leak, large data processing |
Identify the error category by examining:
ENOENT, TypeError)Extract key information:
- Error code: [specific code if any]
- File path: [where the error originated]
- Line number: [exact line if available]
- Function/method: [context of the error]
- Variable/value: [what was involved]
- Stack trace depth: [how deep is the call stack]Check against known error patterns:
patterns/ directory for language-specific patternsApply the 5 Whys technique:
Error: Cannot read property 'name' of undefined
Why 1? -> user object is undefined
Why 2? -> API call returned null
Why 3? -> User ID doesn't exist in database
Why 4? -> ID was from stale cache
Why 5? -> Cache invalidation not implemented
Root Cause: Missing cache invalidation logicGenerate actionable solution:
When resolving an error, provide:
## Error Diagnosis
**Classification**: [Category] / [Severity] / [Scope]
**Error Signature**:
- Code: [error code]
- Type: [error type]
- Location: [file:line]
## Root Cause
[Explanation of why this error occurred]
**Contributing Factors**:
1. [Factor 1]
2. [Factor 2]
## Solution
### Immediate Fix
[Quick steps to resolve]
### Code Change
[Specific code to add/modify]
### Verification
[How to verify the fix works]
## Prevention
[How to prevent this error in the future]
## Replay Tag
[Unique identifier for this solution - for future reference]The replay system records successful solutions for future reference.
After resolving an error, record it:
bash# Create solution record in project mkdir -p .claude/error-solutions # Solution file format: [error-type]-[hash].yaml
yaml# .claude/error-solutions/[error-signature].yaml id: "nodejs-module-not-found-express" created: "2024-01-15T10:30:00Z" updated: "2024-01-20T14:22:00Z" error: type: "dependency" category: "ModuleNotFound" language: "nodejs" pattern: "Cannot find module 'express'" context: "npm project, missing dependency" diagnosis: root_cause: "Package not installed or node_modules corrupted" factors: - "Missing npm install after git clone" - "Corrupted node_modules directory" - "Package not in package.json" solution: immediate: - "Run: npm install express" proper: - "Check package.json has express listed" - "Run: rm -rf node_modules && npm install" code_change: null verification: - "Run the application again" - "Check express is in node_modules" prevention: - "Add npm install to project setup docs" - "Use npm ci in CI/CD pipelines" metadata: occurrences: 5 last_resolved: "2024-01-20T14:22:00Z" success_rate: 1.0 tags: ["nodejs", "npm", "dependency"]
When encountering an error:
.claude/error-solutions/ for matching patternssignature = hash(
error_type +
error_code +
normalized_message + # remove specific values
language +
framework
)Example transformations:
Cannot find module 'express' -> Cannot find module '{module}'TypeError: Cannot read property 'name' of undefined -> TypeError: Cannot read property '{prop}' of undefinedUseful commands during debugging:
bash# Verbose error output NODE_DEBUG=* node app.js # Memory debugging node --inspect app.js # Check installed packages npm ls [package-name] # Verify package.json npm ls --depth=0
bash# Debug mode python -m pdb script.py # Check installed packages pip show [package-name] pip list
bash# Check file permissions ls -la [file] # Check port usage lsof -i :[port] netstat -an | grep [port] # Check environment variables env | grep [VAR_NAME] printenv [VAR_NAME] # Check disk space df -h # Check memory free -m # Linux vm_stat # macOS
When the error location is unclear:
Create the smallest code that reproduces the error:
Explain the problem out loud (or to Claude):
Find which commit introduced the bug:
bashgit bisect start git bisect bad # current commit is bad git bisect good [last-known-good-commit] # Git will checkout commits for you to test git bisect good/bad # mark each as good or bad git bisect reset # when done
nodejs.md - Node.js common errorspython.md - Python common errorsreact.md - React/Next.js errorsdatabase.md - Database errorsdocker.md - Docker/container errorsgit.md - Git errorsnetwork.md - Network/API errorsstack-trace.md - Stack trace parsing guideroot-cause.md - Root cause analysis techniquessolution-template.yaml - Template for recording solutions| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 16,281 | 10,698 | -34% | 1 | 1 | 0% | 2,989 | 4,354 | +46% | 0 | 0 | — |
case-02 | pass→pass | 9,744 | 9,351 | -4% | 1 | 1 | 0% | 1,822 | 4,374 | +140% | 0 | 0 | — |
case-03 | fail→pass | 17,136 | 14,639 | -15% | 1 | 1 | 0% | 3,157 | 4,813 | +52% | 0 | 0 | — |
case-04 | pass→pass | 4,702 | 4,292 | -9% | 1 | 1 | 0% | 831 | 3,078 | +270% | 0 | 0 | — |
case-05 | pass→pass | 3,485 | 2,983 | -14% | 1 | 1 | 0% | 541 | 2,639 | +388% | 0 | 0 | — |
case-06 | pass→pass | 4,722 | 5,755 | +22% | 1 | 1 | 0% | 761 | 3,209 | +322% | 0 | 0 | — |
case-07 | pass→pass | 4,095 | 4,579 | +12% | 1 | 1 | 0% | 702 | 3,004 | +328% | 0 | 0 | — |
case-08 | pass→pass | 4,289 | 4,114 | -4% | 1 | 1 | 0% | 727 | 2,925 | +302% | 0 | 0 | — |
case-09 | pass→pass | 2,833 | 3,264 | +15% | 1 | 1 | 0% | 508 | 2,758 | +443% | 0 | 0 | — |
case-10 | pass→pass | 3,863 | 2,723 | -30% | 1 | 1 | 0% | 694 | 2,755 | +297% | 0 | 0 | — |
case-11 | pass→pass | 7,964 | 6,209 | -22% | 1 | 1 | 0% | 1,443 | 3,124 | +116% | 0 | 0 | — |
case-12 | pass→pass | 4,450 | 4,590 | +3% | 1 | 1 | 0% | 741 | 3,023 | +308% | 0 | 0 | — |
case-13 | pass→pass | 9,859 | 13,388 | +36% | 1 | 1 | 0% | 1,683 | 4,654 | +177% | 0 | 0 | — |
case-14 | pass→pass | 1,556 | 2,565 | +65% | 1 | 1 | 0% | 178 | 2,452 | +1278% | 0 | 0 | — |
case-15 | pass→pass | 6,210 | 5,850 | -6% | 1 | 1 | 0% | 1,164 | 3,191 | +174% | 0 | 0 | — |
case-16 | pass→pass | 3,433 | 2,905 | -15% | 1 | 1 | 0% | 599 | 2,688 | +349% | 0 | 0 | — |
case-17 | pass→pass | 10,380 | 5,993 | -42% | 1 | 1 | 0% | 1,737 | 3,316 | +91% | 0 | 0 | — |
case-18 | pass→pass | 3,032 | 3,863 | +27% | 1 | 1 | 0% | 489 | 2,840 | +481% | 0 | 0 | — |
case-19 | pass→pass | 2,270 | 2,818 | +24% | 1 | 1 | 0% | 384 | 2,719 | +608% | 0 | 0 | — |
case-20 | pass→pass | 3,675 | 4,127 | +12% | 1 | 1 | 0% | 599 | 2,896 | +383% | 0 | 0 | — |
case-21 | fail→pass | 4,858 | 9,590 | +97% | 1 | 1 | 0% | 1,077 | 4,022 | +273% | 0 | 0 | — |
case-22 | pass→pass | 11,743 | 11,342 | -3% | 1 | 1 | 0% | 2,812 | 4,514 | +61% | 0 | 0 | — |
case-23 | pass→pass | 3,017 | 3,511 | +16% | 1 | 1 | 0% | 544 | 2,800 | +415% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.