backnotprop/pstack

principle-fix-root-causes

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.

16K installs 6.0K stars

Before you install

Last update
Files in folder
2
Scripts
No script files found
SKILL.md size
1.0 KB (about 265 tokens of context each time it loads)
License
MIT
Source on GitHub
backnotprop/pstack

Skills are plain text instructions the agent follows, sometimes with scripts. Check the source, prefer repositories with many installs and stars, and read any script it ships.

Install

npx skills add backnotprop/pstack@principle-fix-root-causes

Runs in a terminal with Node.js 18 or newer. Add -y to skip the prompts and -g to install for every project instead of this one.

Install for your agent

npx skills add backnotprop/pstack@principle-fix-root-causes --agent claude-code -y
Project install writes to
.claude/skills/principle-fix-root-causes
Global install writes to
~/.claude/skills/principle-fix-root-causes

Start a new session afterwards so the agent picks the skill up. In Claude Code you can also call it directly with /principle-fix-root-causes.

What it does

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…

Excerpt from the skill's own SKILL.md. Read the full file on GitHub before installing: skills run with your agent's permissions.

Related skills

  • unslop

    backnotprop/pstack

    Cut AI tells from any writing.

    18K installs 6.0KWriting
  • how

    backnotprop/pstack

    Use for \"how does X work\", code walkthroughs before changing something, and placement / ownership / layering questions (\"where should this live\", \"which package owns this\", \"is this the right layer\"). Explains subsystem architecture, runtime flow, onboarding mental models. Use why for motivation.

    16K installs 6.0KAI & agentsWriting
  • why

    backnotprop/pstack

    Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Returns a cited read on decisions and tradeoffs. Use how for runtime behavior.

    16K installs 6.0KDesign & UIDataGit & GitHub
  • arena

    backnotprop/pstack

    Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape.

    16K installs 6.0KAI & agents
  • interrogate

    backnotprop/pstack

    Use for \"interrogate\", \"adversarial review\", \"multi-model review\", \"challenge this\", \"stress test this code\", \"find blind spots\", or \"tear this apart\". Adversaries try to break a change or design, and only findings proven by a run survive.

  • architect

    backnotprop/pstack

    Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape.

    16K installs 6.0KDesign & UIWriting

← Search skills

/skills/backnotprop/pstack/principle-fix-root-causes/