โ† Back to list
a-ariff

root-cause-tracing

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: root-cause-tracing description: Trace bugs backward to their origin, not just symptoms version: 1.0.0 author: Ariff when_to_use: When fixing bugs - trace to source before patching

Root Cause Tracing

Core Principle

TRACE BACKWARD TO THE BUG'S ORIGIN
Don't patch symptoms - fix the disease

The Backward Trace Method

SYMPTOM
   โ†“ Where does this value come from?
IMMEDIATE CAUSE
   โ†“ What set that to wrong value?
DEEPER CAUSE
   โ†“ Why did that happen?
ROOT CAUSE โ† Fix HERE

Practical Steps

1. Start at Symptom

Q: What exactly went wrong?
โ†’ Document the exact symptom
โ†’ Note file, line, error message

2. First Backward Step

Q: Where does this value/state come from?
โ†’ Find the direct source
โ†’ Check: is THIS the bug or just a carrier?

3. Keep Tracing

Q: What set THAT to the wrong value?
โ†’ Follow the data flow backward
โ†’ Each step: is this the origin or just passing it along?

4. Identify Root

SIGNS YOU'VE FOUND ROOT:
- Logic error in requirements interpretation
- Initial state incorrectly set
- Wrong assumption in algorithm
- Missing validation at entry point
- Broken invariant at creation

Stop Conditions

You've found root cause when:

  • There's no earlier source to trace
  • The error was introduced HERE (not inherited)
  • Fixing HERE prevents the bug entirely
  • The "why" answer is: "wrong logic/design"

You're still at symptoms if:

  • The wrong value came from somewhere else
  • Another function passed bad data
  • It's a consequence, not origin
  • Fixing here = adding a workaround

Common Patterns

Bug PatternRoot Usually At
Wrong value displayedData calculation, not display code
Null pointerWhere object should've been created
Off-by-oneLoop bounds definition, not body
Race conditionShared state design, not specific access
Invalid stateState transition logic, not current handler

Anti-Patterns (Don't Do This)

โŒ Symptom Patching

// Bad: Fix where error happens
if (value === undefined) value = defaultValue
// Good: Find why value is undefined

โŒ Guard Stacking

// Bad: Add guards everywhere
if (x) if (y) if (z) doThing()
// Good: Ensure x, y, z correct at source

โŒ Quick Fix Pressure

"Just make it work" โ†’ Technical debt
Better: "5 more minutes tracing saves 5 hours debugging later"

Verification

After identifying root cause:

  1. Explain the chain - Symptom โ† caused by โ† caused by โ† ROOT
  2. Confirm origin - "This is where wrong value first appears"
  3. Fix at root - Change the origin, not the symptoms
  4. Verify fix - Original symptom gone + no new bugs

Integration with Checkers

Use with:

  • assumption-checker โ†’ Was root cause an assumption?
  • dependency-validator โ†’ Was root cause a broken dependency?
  • pre-action-verifier โ†’ Verify root cause fix before applying

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