agentsclimarketplace

Root cause tracing

Skill bensonmaxai/minis-coding-success-skills/skills/root-cause-tracing

Coding-success skills for Minis on iOS: review risk, plan, isolate, trace, test, verify, optimize, finish, release, deploy, triage incidents, plan rollback, write postmortems, and use observability more effectively.

Install
npx -y skills add bensonmaxai/minis-coding-success-skills --skill root-cause-tracing

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

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 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

Use when a bug, failure, flaky behavior, or unexpected output appears and you need to trace back from the visible symptom to the original trigger. Optimized for Minis on iOS: inspect logs, stack traces, code paths, inputs, state changes, and recent edits before patching. Helps prevent symptom-fixing by requiring evidence, narrowing the failure path, and identifying the first bad decision, bad assumption, or bad state transition.

SKILL.md

5.7 KB, as published. Nobody here has run it

Root Cause Tracing

Use this skill when an observed failure may be downstream from its real cause.

Goal

Increase debugging success rate by tracing from:

  1. visible symptom
  2. immediate failure point
  3. upstream trigger path
  4. first incorrect state, assumption, input, or code change

Do not jump to fixes before the likely root cause is evidence-backed.

Core Rules

1. Start from the observed symptom

Capture the concrete failure first:

  • error message
  • stack trace
  • wrong output
  • failing test
  • UI misbehavior
  • flaky or intermittent behavior

Use exact evidence when possible instead of paraphrasing.

2. Separate symptom from cause

The place where the app crashes or looks wrong is often not the true origin.

Always distinguish:

  • symptom: what became visible
  • failure point: where the system noticed or surfaced it
  • trigger: what earlier action or state led there
  • root cause: the earliest incorrect condition that explains the failure

3. Reproduce before theorizing

Before editing code, reproduce the problem as consistently as possible.

If the issue is flaky, capture:

  • frequency
  • environment
  • recent changes
  • timing or order dependencies
  • inputs and state that seem correlated

4. Trace the narrowest path backward

Work backward from the failing surface by checking:

  • call chain
  • data flow
  • state transitions
  • function inputs/outputs
  • config/env assumptions
  • recent edits or commits

Avoid scanning the whole codebase without a hypothesis.

5. Prefer evidence over guesswork

For each hypothesis, look for confirming or disconfirming evidence.

Good evidence includes:

  • stack traces
  • logging
  • failing tests
  • minimal repros
  • git diff/history
  • runtime state inspection
  • browser-visible behavior paired with code evidence

6. Patch the cause, not the symptom

Do not stop at a workaround unless the user explicitly wants a temporary mitigation.

Before fixing, ask:

  • What earlier bad state or assumption caused this?
  • If I patch only the visible error, will the bad state still exist?
  • Can I write a regression test that proves the upstream cause is fixed?

Minis-Specific Workflow

Shell-first tracing

Use shell commands to:

  • inspect project structure
  • search for the failing symbol or message
  • run targeted tests
  • inspect logs and outputs
  • compare recent file changes
  • create tiny repro scripts if needed

Browser-assisted tracing

For web apps:

  • reproduce the UI symptom in the browser
  • map the visible symptom to route/component/state changes
  • pair browser observations with code-level evidence
  • do not rely only on visual inspection if code/test evidence is available

Git-aware debugging

If the issue may be regression-related, inspect:

  • recent edits
  • recent commits
  • changed dependencies/config
  • files near the failure surface

Prefer narrowing the suspect set before changing code.

Debugging Sequence

Use this order:

  1. Restate the observed symptom.
  2. Reproduce it.
  3. Identify the failing surface.
  4. Trace backward through the narrowest relevant path.
  5. List 1–3 plausible root-cause hypotheses.
  6. Gather evidence to eliminate weak hypotheses.
  7. Identify the most likely root cause.
  8. Only then propose or implement a fix.
  9. Add or update a regression test when possible.

Common Root-Cause Buckets

Check whether the issue comes from:

  • wrong input assumptions
  • stale or malformed state
  • incorrect ordering/timing
  • missing edge-case handling
  • invalid config/env expectations
  • API contract mismatch
  • incorrect data transformation
  • recent refactor regression
  • UI state and data state divergence
  • error-handling that hides the first failure

Heuristics

Prefer:

  • tracing upstream before editing
  • one hypothesis at a time
  • narrowing by evidence
  • finding the first bad transition, not the loudest failure
  • reproductions tied to concrete inputs and state

Be cautious when:

  • the stack trace is noisy or indirect
  • async behavior hides ordering issues
  • logs only show downstream failures
  • multiple recent changes overlap
  • flaky tests tempt speculative fixes

Integration with Other Skills

  • Use test-driven-development once the likely root cause is known and you want to lock the fix with the smallest failing test.
  • Use agent-security-guard if debugging would involve secrets, uploads, installs, or risky system changes.
  • Use prompt-injection-defense if the bug report, logs, or documentation come from untrusted external content.

Completion Checklist

Before calling the analysis done, check:

  • Is the symptom clearly stated?
  • Is the failure reproducible or at least bounded?
  • Did you identify the failing surface?
  • Did you trace at least one path upstream?
  • Is the proposed root cause supported by evidence?
  • Is it earlier than the visible symptom?
  • Is there a regression test or repro to confirm the fix later?

Response Template

  • Symptom:
  • Reproduction:
  • Failing surface:
  • Upstream path traced:
  • Leading hypotheses:
  • Best-supported root cause:
  • Evidence:
  • Suggested next step:

Example Triggers

  • "Trace this bug to the real root cause before fixing it."
  • "Why is this test failing?"
  • "Find the earliest cause, not just the crash site."
  • "Help me debug this flaky behavior step by step."
  • "Work backward from this error and tell me what actually broke first."

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.