Code Debugging
Structured debugging for failing experiment code, with error categorization, targeted fixes, and reflection to prevent repeats.
- CCM score
- 43 of 100
- skills.sh installs
- 1.7K
- GitHub stars
- 483
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers a six-stage error workflow: categorize the error, analyze the root cause, apply a fix strategy, then reflect and prevent recurrence
- Classifies failures into SyntaxError, ImportError, RuntimeError, TimeoutError, OutputError, and LogicError, each with a severity rating
- Enforces minimal targeted edits, a cap of 4 to 5 fix attempts before changing approach, and truncation of error output to the last 1500 characters
- Designed for debugging experiment code that crashes or produces incorrect results, with links to experiment-code, paper-to-code, and data-analysis
Install
$ npx -y skills add lingzhi227/agent-research-skills --skill code-debugging -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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
- Read the error traceback (last 1500 chars if truncated)
- Identify the exact line and variable causing the error
- 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
Details
- Repository
- github.com/lingzhi227/agent-research-skills
- Categories
- Debugging, AI Agents & LLM Apps
- First seen
- Jun 3, 2026
More from lingzhi227/agent-research-skills
All 31- Rebuttal Writing1.7K
- Related Work Writing1.7K
- Table Generation1.7K
- Self Review1.7K
- Paper Compilation1.7K
- Slide Generation1.7K
- Atomic Decomposition1.7K
- Experiment Code1.7K
- Paper To Code1.7K
- Paper Assembly1.7K
- Symbolic Equation1.6K
- Excalidraw Skill1.6K
- Literature Review4.1K
- Literature Search2.7K
- Figure Generation2.3K
- Latex Formatting2.3K
- Backward Traceability2.3K
- Math Reasoning2.3K
- Citation Management2.2K
- Data Analysis2.1K
- Deep Research2K
- Idea Generation1.9K
- Novelty Assessment1.9K
- Paper Writing Section1.9K
Similar to Code Debugging
More Debuggingdebugging-and-error-recoveryaddyosmani/agent-skills81.5K installsGuided root-cause debugging that triages failures, localizes the layer, and fixes the cause rather than the symptom.
debugpproenca/dot-skills456 installsStructured debugging methodology that covers reproduction, hypothesis-driven search, and root cause analysis across 54 rules.
debug-mantrathananon/9arm-skills5.2K installsFour-step debugging discipline that requires a reliable repro and falsification before any fix is proposed.
experiment-codelingzhi227/agent-research-skills1.7K installsIterative ML experiment code generator for research papers, covering generate, improve, debug, and plot actions.
debuggerzhaono1/agent-playbook759 installsSystematic debugging workflow that reproduces, isolates, and verifies fixes across JavaScript, Python, and Go.