Skip to content
Back to skills

Principle Fix Root Causes

ASecurity

Apply when debugging. Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate.

  • 6,057 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 26, 2026
ai-agentsdebugginggit

Security analysis

A100/100

Scanned November 18, 2026

npx -y skills add backnotprop/pstack --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/backnotprop-principle-fix-root-causes/badge)](https://www.skillsdirectory.com/skills/backnotprop-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: "Apply when debugging. Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate."
disable-model-invocation: true
---

# Fix Root Causes

Fix the fault, not the place where it surfaced. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.

- Reproduce first. Ask "why" until the answer is a wrong decision in the code. When stuck, instrument and read the actual state.
- Ask whether the state that triggered the symptom is legitimate. If it is, handle it where the code broke. If it should never exist, a check there hides the bug, so find what produced it. Guards, retries, swallowed errors, clamped values, and discarded state are the usual ways to hide a bug.
- Fix the pattern, not the instance. Find every place with the same fault.
- If the deciding fact took a deep dig, propose the cheap, always-on signal that would have shown it at first look.

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.