Skip to content
Back to skills

Principle Fix Root Causes

ASecurity

Fix root causes. Apply when debugging a failure or repairing a finding.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsdebugginggit

Works with

  • cursor

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add erickb336/sage-stack --skill principle-fix-root-causes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Principle Fix Root Causes?

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

Security grade badge for Principle Fix Root Causes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/erickb336-principle-fix-root-causes/badge)](https://www.skillsdirectory.com/skills/erickb336-principle-fix-root-causes)

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: principle-fix-root-causes
description: "Fix root causes. Apply when debugging a failure or repairing a finding."
license: MIT
metadata:
  source: "pstack principle-fix-root-causes, MIT, Copyright (c) 2026 Lauren Tan, github.com/cursor/plugins, adapted; checked against pstack 0.15.36 at commit 0bb6f37"
---

<!-- Generated by scripts/build.mjs from the sources; edit the source, then run npm run build. -->

# Fix root causes

Fix the fault where it started, not where it surfaced. The root cause is where the system first did something wrong, or missed a state that it should handle.

**Why.** A symptom fix hides the evidence, and the fault surfaces again elsewhere.

**What to do.**
- Reproduce first.
- Ask "why" until the answer is a wrong decision in the code, not a consequence of an earlier one.
- **Ask whether the state is legitimate.** If it may occur, handle it in the code that broke on it. If not, a guard, retry, swallowed error, clamped value or discarded state there hides the bug: find what made the state.
- A workaround that needs a paragraph to justify it means the code is wrong.
- Fix every instance of the same shape.
- When stuck, measure: add logging, read the actual error and state.
- If the deciding fact was hard to find, propose a cheap, always-on signal that would have shown it at once.

**After a restart,** suspect stale persistent state before code: configuration files, caches, lock files, serialised state.

**Stop** when the reproduction no longer fails for the reason you found, not when the symptom is hidden.

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.