code-debugging

Solid

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.

AI & Automation 7 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
30
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

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