code-debugging
SolidDebug experiment code with structured error analysis. Categorize errors, apply targeted fixes with retry logic, and use reflection to prevent recurring issues. Use when experiment code fails or produces incorrect results.
AI & Automation 7 stars
0 forks Updated today MIT
Install
Quality Score: 78/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Code Debugging
Systematically debug experiment code with structured error categorization and fix strategies.
## Input
- `$0` — Error message, stderr output, or code file with issues
- `$1` — Optional: the code that produced the error
## References
- Debug patterns and state machine: `~/.claude/skills/code-debugging/references/debug-patterns.md`
## Workflow
### Step 1: Categorize the Error
| Category | Examples | Severity |
|----------|----------|----------|
| SyntaxError | Invalid syntax, indentation | Low |
| ImportError | Missing module, wrong name | Low |
| RuntimeError | Division by zero, shape mismatch | Medium |
| TimeoutError | Infinite loop, too slow | Medium |
| OutputError | Missing files, wrong format | Medium |
| LogicError | Wrong results, 0% accuracy | High |
### Step 2: Analyze Root Cause
1. Read the error traceback (last 1500 chars if truncated)
2. Identify the exact line and variable causing the error
3. Check for common patterns:
- Device mismatch (CPU vs GPU tensors)
- Shape mismatch in matrix operations
- Missing data normalization
- Off-by-one errors in indexing
- Incorrect loss function for task type
### Step 3: Apply Fix Strategy
**For syntax/import errors**: Direct fix, single attempt
**For runtime errors**: Fix and rerun, up to 4 retries
**For logic errors**: Reflect on approach, consider alternative methods
**For timeout**: Reduce dataset size, optimize bottleneck, add early stopping
### Step 4: Reflect and Prevent
After ...
Details
- Author
- sergeeey
- Repository
- sergeeey/Claude-cod-top-2026
- Created
- 4 months ago
- Last Updated
- today
- Language
- Python
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Listed
code-debugging
Debug experiment code with structured error analysis. Categorize errors, apply targeted fixes with retry logic, and use reflection to prevent recurring issues. Use when experiment code fails or produces incorrect results.
0 Updated 6 days ago
dongzhigang13305312738-art AI & Automation Listed
debug
Systematic Debugging Workflow
4 Updated 4 days ago
AreteDriver AI & Automation Solid
debug
Systematic debugging workflow for tracking down bugs and issues
15 Updated today
jmylchreest