โ† Back to list
a-ariff

systematic-debugging

by a-ariff

๐Ÿ”Œ Production-ready Claude Code plugin marketplace with 41 components: 21 autonomous agents, 15 power skills, 2 smart hooks, 2 custom commands. Transform Claude Code into an autonomous development powerhouse. One-line install, cross-device sync, comprehensive documentation.

โญ 1๐Ÿด 0๐Ÿ“… Jan 24, 2026

SKILL.md


name: systematic-debugging description: Structured approach to finding and fixing bugs version: 1.0.0 author: Ariff when_to_use: When debugging - follow systematic process instead of guessing

Systematic Debugging

The Process

REPRODUCE โ†’ ISOLATE โ†’ TRACE โ†’ FIX โ†’ VERIFY

Never skip steps. Never guess.

Step 1: Reproduce

Goal: See the bug happen reliably

1. Get exact reproduction steps
2. Run them yourself
3. See the exact error
4. Document: input, output, expected

Red flags:

  • "It happens sometimes" โ†’ Find the condition
  • "I can't reproduce" โ†’ Get more details from reporter
  • Skipping this step โ†’ You'll waste time guessing

Step 2: Isolate

Goal: Find minimum case that shows bug

1. Start removing things
2. Does bug still happen?
3. Keep removing until minimal
4. Result: smallest repro case

Why this matters:

  • Smaller case = easier to debug
  • Reveals what's actually involved
  • Eliminates red herrings

Step 3: Trace

Goal: Find root cause (use root-cause-tracing skill)

1. Start at symptom
2. Trace backward: where does bad value come from?
3. Keep asking "where did THIS come from?"
4. Stop when you find origin

Tools:

  • Print/log statements
  • Debugger breakpoints
  • Code reading
  • Test isolation

Step 4: Fix

Goal: Change code at root cause

1. Write failing test first
2. Make minimal change to fix
3. Verify test passes
4. Check for side effects

Anti-patterns:

  • Big refactor during bugfix
  • Fixing symptoms not cause
  • No test for the fix

Step 5: Verify

Goal: Confirm fix works and nothing broke

1. Run original reproduction
2. Bug should be gone
3. Run full test suite
4. No regressions

Must have:

  • Fresh reproduction attempt
  • All tests passing
  • No new warnings/errors

Common Bug Types

TypeDebug Strategy
Null/undefinedTrace where value should've been set
Wrong valueLog at each transformation step
Race conditionAdd logging with timestamps
State corruptionFind all state modifiers
Off-by-oneCheck loop bounds and indices
Missing caseCheck all switch/if branches

Debug Log Pattern

When adding debug logs:

// Include: location, variable name, value, timestamp
console.log('[user.ts:45]', 'userId:', userId, Date.now());

Clean up logs before committing.

Bisect Strategy

When you don't know what broke it:

1. Find last known working version
2. Find first broken version
3. Binary search between them
4. Each step: does bug exist?
5. Result: exact commit that broke it

Integration with Skills

  • root-cause-tracing โ†’ For step 3 (Trace)
  • defense-in-depth โ†’ For step 5 (Verify)
  • verification-before-completion โ†’ Before claiming fixed

Integration with Checkers

  • assumption-checker โ†’ What assumptions about the code?
  • fact-checker โ†’ Verify claims about behavior
  • pre-action-verifier โ†’ Before applying fix

Score

Total Score

75/100

Based on repository quality metrics

โœ“SKILL.md

SKILL.mdใƒ•ใ‚กใ‚คใƒซใŒๅซใพใ‚Œใฆใ„ใ‚‹

+20
โœ“LICENSE

ใƒฉใ‚คใ‚ปใƒณใ‚นใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+10
โœ“่ชฌๆ˜Žๆ–‡

100ๆ–‡ๅญ—ไปฅไธŠใฎ่ชฌๆ˜ŽใŒใ‚ใ‚‹

+10
โ—‹ไบบๆฐ—

GitHub Stars 100ไปฅไธŠ

0/15
โœ“ๆœ€่ฟ‘ใฎๆดปๅ‹•

1ใƒถๆœˆไปฅๅ†…ใซๆ›ดๆ–ฐ

+10
โ—‹ใƒ•ใ‚ฉใƒผใ‚ฏ

10ๅ›žไปฅไธŠใƒ•ใ‚ฉใƒผใ‚ฏใ•ใ‚Œใฆใ„ใ‚‹

0/5
โœ“Issue็ฎก็†

ใ‚ชใƒผใƒ—ใƒณIssueใŒ50ๆœชๆบ€

+5
โœ“่จ€่ชž

ใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐ่จ€่ชžใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+5
โœ“ใ‚ฟใ‚ฐ

1ใคไปฅไธŠใฎใ‚ฟใ‚ฐใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+5

Reviews

๐Ÿ’ฌ

Reviews coming soon