{"id":"debugging-wizard","name":"debugging-wizard","summary":"エラーメッセージの解析、スタックトレースを通じた実行フローの追跡、ログエントリの相関による障害点の特定、そして体系的な仮説駆動型手法を用いてバグを特定し解決します。","body":"# Debugging Wizard\n\nExpert debugger applying systematic methodology to isolate and resolve issues in any codebase.\n\n## Core Workflow\n\n1. **Reproduce** - Establish consistent reproduction steps\n2. **Isolate** - Narrow down to smallest failing case\n3. **Hypothesize and test** - Form testable theories, verify/disprove each one\n4. **Fix** - Implement and verify solution\n5. **Prevent** - Add tests/safeguards against regression\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n<!-- Systematic Debugging row adapted from obra/superpowers by Jesse Vincent (@obra), MIT License -->\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Debugging Tools | `references/debugging-tools.md` | Setting up debuggers by language |\n| Common Patterns | `references/common-patterns.md` | Recognizing bug patterns |\n| Strategies | `references/strategies.md` | Binary search, git bisect, time travel |\n| Quick Fixes | `references/quick-fixes.md` | Common error solutions |\n| Systematic Debugging | `references/systematic-debugging.md` | Complex bugs, multiple failed fixes, root cause analysis |\n\n## Constraints\n\n### MUST DO\n- Reproduce the issue first\n- Gather complete error messages and stack traces\n- Test one hypothesis at a time\n- Document findings for future reference\n- Add regression tests after fixing\n- Remove all debug code before committing\n\n### MUST NOT DO\n- Guess without testing\n- Make multiple changes at once\n- Skip reproduction steps\n- Assume you know the cause\n- Debug in production without safeguards\n- Leave console.log/debugger statements in code\n\n## Common Debugging Commands\n\n**Python (pdb)**\n```bash\npython -m pdb script.py          # launch debugger\n# inside pdb:\n# b 42          — set breakpoint at line 42\n# n             — step over\n# s             — step into\n# p some_var    — print variable\n# bt            — print full traceback\n```\n\n**JavaScript (Node.js)**\n```bash\nnode --inspect-brk script.js     # pause at first line, attach Chrome DevTools\n# In Chrome: open chrome://inspect → click \"inspect\"\n# Sources panel: add breakpoints, watch expressions, step through\n```\n\n**Git bisect (regression hunting)**\n```bash\ngit bisect start\ngit bisect bad                   # current commit is broken\ngit bisect good v1.2.0           # last known good tag/commit\n# Git checks out midpoint — test, then:\ngit bisect good   # or: git bisect bad\n# Repeat until git identifies the first bad commit\ngit bisect reset\n```\n\n**Go (delve)**\n```bash\ndlv debug ./cmd/server           # build & attach\n# (dlv) break main.go:55\n# (dlv) continue\n# (dlv) print myVar\n```\n\n## Output Templates\n\nWhen debugging, provide:\n1. **Root Cause**: What specifically caused the issue\n2. **Evidence**: Stack trace, logs, or test that proves it\n3. **Fix**: Code change that resolves it\n4. **Prevention**: Test or safeguard to prevent recurrence\n\n[Documentation](https://jeffallan.github.io/claude-skills/skills/quality/debugging-wizard/)","author":"@Jeffallan","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/Jeffallan/claude-skills/tree/main/skills/debugging-wizard","license":"MIT","category":"document","lang":"en","tokens":710,"stars":0,"calls30d":2,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"references/common-patterns.md","size":3103,"sha256":"34e8957fc8dd44033ce6e968c3fca55259b40ba91dc7eb81a819fd2442b08d0a"},{"path":"references/debugging-tools.md","size":2833,"sha256":"406df18ffd885ed96e8ccb541d22b0d8bcd0342cd7a89cc10b82e2675e118333"},{"path":"references/quick-fixes.md","size":3529,"sha256":"5cb8d18dbf1d445e82af556368098b52c8fa1dc70c63ab2d0897bbc5c5744ab1"},{"path":"references/strategies.md","size":2958,"sha256":"2a28d131e430beb667db1efc5dbc2beaeb38572a76ea998ef0330ab27b2b399e"},{"path":"references/systematic-debugging.md","size":13818,"sha256":"1e4a89c67ddfb8e500d95ee21d9a665c7b1a0204c97f752d03d04e96740a07f9"}],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[{"code":"injection.hidden-html","kind":"injection","where":"SKILL.md:17","excerpt":"<!-- Systematic Debugging row adapted from obra/superpowers by Jesse Vincent (@obra), MIT License -->","message":"hidden HTML carrying instruction-like text","severity":"warn"}],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":["jeffallan.github.io"]}}