Skip to content
Back to skills

Root Cause

ASecurity

Evidence-based debugging that forbids guessing. Use for any bug, crash, failing test, regression, wrong output, performance problem or unexpected behaviour, before proposing a fix.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsdebugginggitperformance

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add alptugince/claude-code-ai-harness-kit --skill root-cause --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Root Cause?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Root Cause
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alptugince-root-cause/badge)](https://www.skillsdirectory.com/skills/alptugince-root-cause)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: root-cause
description: Evidence-based debugging that forbids guessing. Use for any bug, crash, failing test, regression, wrong output, performance problem or unexpected behaviour, before proposing a fix.
---

# Root cause

The failure this skill prevents: confidently naming "the smoking gun" without having read the code or reproduced the problem.

## Rules
- No claim about a cause until the code path that produces the symptom has been read in this session and quoted (file:line).
- No fix until the problem is reproduced, or it is stated explicitly that reproduction was impossible and why.
- Every hypothesis has a test that could prove it wrong. Run that test.

## Procedure
1. **Restate the symptom precisely**: expected vs actual, inputs, environment, first bad version if known. If the report is vague (a screenshot, "???"), use the project feature map to locate the feature before anything else.
2. **Reproduce** with the smallest reliable trigger. Save the reproduction as a test or script.
3. **Trace the path**: from the entry point (UI event, request, command, frame update) follow the actual calls to where the wrong value or behaviour appears. Use subagents to search in parallel when the code base is large; ask them to return file:line evidence, not opinions.
4. **List hypotheses** (at most three), each with the evidence for it and the observation that would refute it.
5. **Discriminate**: add logging, assertions, a debugger breakpoint, a trace or a bisect (`git bisect run <repro>`) until exactly one hypothesis survives.
6. **Fix the cause**, not the symptom. If the cause sits in a dependency or another team's area, report it and fix only within scope.
7. **Prove it**: the reproduction now passes, a regression test exists, and the `verify` skill passes.
8. **Prevent recurrence**: if this class of bug can be caught mechanically, run `failure-to-guardrail`.

## Output
Root cause (one sentence, with file:line), evidence, fix, regression test name, verification result.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.