algorithm-design
Design algorithms with LaTeX pseudocode and UML diagrams. Generate algorithmic environments,…
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.
$ npx -y skills add lingzhi227/agent-research-skills --skill code-debugging --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-debuggingContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
name: code-debugging description: 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. argument-hint: [error-or-code]
Systematically debug experiment code with structured error categorization and fix strategies.
| 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 |
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:
**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
After fixing: 1. Explain why the error occurred 2. Identify which lines caused it 3. Describe the fix line-by-line 4. Note patterns to avoid in future code
Stage 0 (first attempt) → repost code as fresh Stage 1 (second attempt) → repost or leave depending on severity Stage 2 (third attempt) → regenerate from scratch if still failing
31 skills for Claude Code covering the full academic research paper lifecycle — from literature search to slide generation — plus GitHub repository analysis for research topics. Extracted from 17 GitHub repos studying LLM-agent-driven research automation.
Design algorithms with LaTeX pseudocode and UML diagrams. Generate algorithmic environments,…
Decompose research ideas into atomic, self-contained concepts with bidirectional math-code…
Make every number in the final PDF traceable to the exact code line that produced it. Uses…
Manage BibTeX citations for LaTeX papers. Harvest missing citations from a draft using…
Generate statistical analysis code with 4-round review. Select appropriate statistical tests,…
Conduct systematic academic literature reviews in 6 phases, producing structured notes, a…