Claude-code-customes debug-error
Advanced debugging system with Serena MCP integration for intelligent codebase analysis and error resolution
install
source · Clone the upstream repo
git clone https://github.com/sc30gsw/claude-code-customes
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sc30gsw/claude-code-customes "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/debug-error" ~/.claude/skills/sc30gsw-claude-code-customes-debug-error && rm -rf "$T"
manifest:
.claude/skills/debug-error/SKILL.mdsource content
Debug Error
Systematic debugging with Serena MCP for smart codebase analysis and efficient error resolution.
Usage
/debug-error "<error_description>" [options]
Options
| Option | Description | Example |
|---|---|---|
, | Enable deep Serena analysis | |
, | Code flow tracing | |
, | Full Serena toolkit usage | |
, | Find similar error patterns | |
, | Use debugging memory | |
, | Step-by-step guidance | |
| Implement fix automatically | |
Tool Priorities
ALWAYS prioritize mcp__serena__ tools when available:
Error Analysis (Serena MCP First)
- Pattern Search: Use
to find error patternsmcp__serena__search_for_pattern - Symbol Analysis: Use
for error location contextmcp__serena__find_symbol - Reference Tracking: Use
to trace propagationmcp__serena__find_referencing_symbols
Memory & Learning
- Previous Solutions: Use
to recall similar sessionsmcp__serena__read_memory - Pattern Storage: Use
to store approachesmcp__serena__write_memory
Workflow
-
Error Information Gathering
- Collect error message, stack trace, and error code
- Note timing, location, and frequency
- Use
to find related patternsmcp__serena__search_for_pattern
-
Reproduce the Error
- Create minimal test case
- Document exact steps
-
Stack Trace Analysis
- Read from bottom to top
- Identify exact failing line
- Trace execution path
-
Code Context Investigation
- Use
for location contextmcp__serena__find_symbol - Use
for dependenciesmcp__serena__find_referencing_symbols - Check git history and recent modifications
- Use
-
Hypothesis Formation
- Consider common causes: null references, type mismatches, race conditions
-
Systematic Investigation
- Use Serena for intelligent testing
- Use
for targeted loggingmcp__serena__insert_after_symbol
-
Solution Implementation
- Use
for targeted fixesmcp__serena__replace_symbol_body - Add comprehensive error handling
- Use
-
Testing and Prevention
- Test fix against original error
- Add unit and integration tests
- Improve error handling and logging
Best Practices
- Start with Pattern Search: Always check for similar issues first
- Use Memory: Leverage past debugging sessions
- Trace Dependencies: Understand error propagation
- Document Solutions: Store successful approaches for future reference