debugging-wizard
Jeffallan/claude-skills/skills/debugging-wizard/SKILL.md
Parses error messages, traces execution flow through stack traces, correlates log entries to identify failure points, and applies systematic hypothesis-driven methodology to isolate and resolve bugs. Use when investigating errors, analyzing stack traces, finding root causes of unexpected behavior, troubleshooting crashes, or performing log analysis, error investigation, or root cause analysis.
What's in it
- Debugging Wizard
- Core Workflow
- Reference Guide
- Constraints
- MUST DO
- MUST NOT DO
- Common Debugging Commands
- Output Templates
--- name: debugging-wizard description: Parses error messages, traces execution flow through stack traces, correlates log entries to identify failure points, and applies systematic hypothesis-driven methodology to isolate and resolve bugs. Use when investigating errors, analyzing stack traces, finding root causes of unexpected behavior, troubleshooting crashes, or performing log analysis, error investigation, or root cause analysis. license: MIT metadata: author: https://github.com/Jeffallan company: https://synergetic.solutions version: "1.1.0" domain: quality triggers: debug, error, bug, exception, traceback, stack trace, troubleshoot, not working, crash, fix issue role: specialist scope: analysis output-format: analysis related-skills: test-master, fullstack-guardian, monitoring-expert --- # Debugging Wizard Expert debugger applying systematic methodology to isolate and resolve issues in any codebase. ## Core Workflow 1. **Reproduce** - Establish consistent reproduction steps 2. **Isolate** - Narrow down to smallest failing case 3. **Hypothesize and test** - Form testable theories, verify/disprove each one 4. **Fix** - Implement and verify solution 5. **Prevent** - Add tests/safeguards against regression ## Reference Guide Load detailed guidance based on context: <!-- Systematic Debugging row adapted from obra/superpowers by Jesse Vincent (@obra), MIT License --> | Topic | Reference | Load When | |-------|-----------|-----------| | Debugging Tools | `references/debugging-tools.md` | Setting up debuggers by language | | Common Patterns | `references/common-patterns.md` | Recognizing bug patterns | | Strategies | `references/strategies.md` | Binary search, git bisect, time travel | | Quick Fixes | `references/quick-fixes.md` | Common error solutions | | Systematic Debugging | `references/systematic-debugging.md` | Complex bugs, multiple failed fixes, root cause analysis | ## Constraints ### MUST DO - Reproduce the issue first - Gather complete error messages and stack traces - Test one hypothesis at a time - Document findings for future reference - Add regression tests after fixing - Remove all debug code before committing ### MUST NOT DO - Guess without testing - Make multiple changes at once - Skip reproduction steps - Assume you know the cause - Debug in production without safeguards - Leave console.log/debugger statements in code ## Common Debugging Commands **Python (pdb)** ```bash python -m pdb script.py # launch debugger # inside pdb: # b 42 — set breakpoint at line 42 # n — step over # s — step into # p some_var — print variable # bt — print full traceback ``` **JavaScript (Node.js)** ```bash node --inspect-brk script.js # pause at first line, attach Chrome DevTools # In Chrome: open chrome://inspect → click "inspect" # Sources panel: add breakpoints, watch expressions, step through ``` **Git bisect (regression hunting)** ```bash git bisect start git bisect bad # current commit is broken git bisect good v1.2.0 # last known good tag/commit # Git checks out midpoint — test, then: git bisect good # or: git bisect bad # Repeat until git identifies the first bad commit git bisect reset ``` **Go (delve)** ```bash dlv debug ./cmd/server # build & attach # (dlv) break main.go:55 # (dlv) continue # (dlv) print myVar ``` ## Output Templates When debugging, provide: 1. **Root Cause**: What specifically caused the issue 2. **Evidence**: Stack trace, logs, or test that proves it 3. **Fix**: Code change that resolves it 4. **Prevention**: Test or safeguard to prevent recurrence Maintained by [@jeffallan](https://github.com/jeffallan), Principal Consultant at [Synergetic Solutions](https://synergetic.solutions) [Documentation](https://jeffallan.github.io/claude-skills/skills/quality/debugging-wizard/)
More agent context in Jeffallan/claude-skills
67 other files this repository gives its agents, the first 60 shown.
CLAUDE.md
Skill
- angular-architectskills/angular-architect/SKILL.md
- api-designerskills/api-designer/SKILL.md
- architecture-designerskills/architecture-designer/SKILL.md
- atlassian-mcpskills/atlassian-mcp/SKILL.md
- chaos-engineerskills/chaos-engineer/SKILL.md
- cli-developerskills/cli-developer/SKILL.md
- cloud-architectskills/cloud-architect/SKILL.md
- code-documenterskills/code-documenter/SKILL.md
- code-reviewerskills/code-reviewer/SKILL.md
- cpp-proskills/cpp-pro/SKILL.md
- csharp-developerskills/csharp-developer/SKILL.md
- database-optimizerskills/database-optimizer/SKILL.md
- devops-engineerskills/devops-engineer/SKILL.md
- django-expertskills/django-expert/SKILL.md
- django-storages-s3skills/django-storages-s3/SKILL.md
- dotnet-core-expertskills/dotnet-core-expert/SKILL.md
- embedded-systemsskills/embedded-systems/SKILL.md
- fastapi-expertskills/fastapi-expert/SKILL.md
- feature-forgeskills/feature-forge/SKILL.md
- fine-tuning-expertskills/fine-tuning-expert/SKILL.md
- flutter-expertskills/flutter-expert/SKILL.md
- fullstack-guardianskills/fullstack-guardian/SKILL.md
- game-developerskills/game-developer/SKILL.md
- golang-proskills/golang-pro/SKILL.md
- graphql-architectskills/graphql-architect/SKILL.md
- java-architectskills/java-architect/SKILL.md
- javascript-proskills/javascript-pro/SKILL.md
- kotlin-specialistskills/kotlin-specialist/SKILL.md
- kubernetes-specialistskills/kubernetes-specialist/SKILL.md
- laravel-specialistskills/laravel-specialist/SKILL.md
- legacy-modernizerskills/legacy-modernizer/SKILL.md
- mcp-developerskills/mcp-developer/SKILL.md
- microservices-architectskills/microservices-architect/SKILL.md
- ml-pipelineskills/ml-pipeline/SKILL.md
- monitoring-expertskills/monitoring-expert/SKILL.md
- nestjs-expertskills/nestjs-expert/SKILL.md
- nextjs-developerskills/nextjs-developer/SKILL.md
- pandas-proskills/pandas-pro/SKILL.md
- php-proskills/php-pro/SKILL.md
- playwright-expertskills/playwright-expert/SKILL.md
- postgres-proskills/postgres-pro/SKILL.md
- prompt-engineerskills/prompt-engineer/SKILL.md
- python-proskills/python-pro/SKILL.md
- rag-architectskills/rag-architect/SKILL.md
- rails-expertskills/rails-expert/SKILL.md
- react-expertskills/react-expert/SKILL.md
- react-native-expertskills/react-native-expert/SKILL.md
- rust-engineerskills/rust-engineer/SKILL.md
- salesforce-developerskills/salesforce-developer/SKILL.md
- secure-code-guardianskills/secure-code-guardian/SKILL.md
- security-reviewerskills/security-reviewer/SKILL.md
- shopify-expertskills/shopify-expert/SKILL.md
- spark-engineerskills/spark-engineer/SKILL.md
- spec-minerskills/spec-miner/SKILL.md
- spring-boot-engineerskills/spring-boot-engineer/SKILL.md
- sql-proskills/sql-pro/SKILL.md
- sre-engineerskills/sre-engineer/SKILL.md
- swift-expertskills/swift-expert/SKILL.md
- terraform-engineerskills/terraform-engineer/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

