agentsclimarketplace

Root cause tracing

Skill a-ariff/ariff-claude-plugins/plugins/root-cause-tracing/skills/root-cause-tracing

65 plugins that turn Claude Code into an autonomous development team. 24 agents, 34 skills, 5 hooks. Includes 12-plugin anti-hallucination suite. One-line install.

Install
npx -y skills add a-ariff/ariff-claude-plugins --skill root-cause-tracing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Trace bugs backward to their origin, not just symptoms

SKILL.md

3.0 KB, as published. Nobody here has run it

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.