principle-fix-root-causes
Skill2 starsChanged 27 days agoMITView on GitHub
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.
53 other projects use a version of this, 45 of them edited.
Adopted by
Most recently taken up by
- sammyjoyce/prime-pstackedited, first seen Nov 15, 2026
- pronvis/skillsedited, first seen Nov 15, 2026
- upamune/skillsedited, first seen Nov 15, 2026
- mdsmithaustin/pstackword for word, first seen Nov 15, 2026
- paramcodes/skillsedited, first seen Nov 8, 2026
- tristanphvn/keeledited, first seen Nov 8, 2026
Used with
Projects with it also use principle-explain-the-number, setup-pstack and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ianclearySkillprinciple-explain-the-number
Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.
Also in 29 projects that use this
bnemaSkillsetup-pstack
Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.
Also in 25 projects that use this
ianclearySkillpoteto-help
Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.
Also in 14 projects that use this
eryzerzSkillmake-bot-ui
Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.
Also in 18 projects that use this
tristanphvnSkillketchup-video
Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.
Also in 10 projects that use this
drafaelSkillin-your-own-words
Restate the user's goals and the problem they are trying to solve to check understanding. Manual invocation only; use when the user explicitly invokes in-your-own-words or requests this understanding check. Do not solve the task or rewrite the assistant's last answer.
Also in 20 projects that use this
Other versions53 projects use a version of this.
Word for word · 5
- creedants/pstack-t3★ 18100% same
- painhardcore/pstack★ 18100% same
- mdsmithaustin/pstack★ 9100% same
- lengjingxu/pstack-for-codex★ 1100% same
- thiskevinwang/skills★ 0100% same
Edited · 45
- backnotprop/pstack★ 3.8k97% same
- jtaroreh/agystack★ 12813% same
- uzairansaruzi/p3-stack★ 12621% same
- dsebban/skills★ 7197% same
- Scino/fstack★ 1817% same
- mariusflorescu/pstack-t3★ 1397% same
- adjohn/pstack★ 997% same
- kkgogogo17/pi-pstack★ 918% same
- 0xrsydn/pstack-pi★ 618% same
- alexnthnz/keel★ 597% same
35 more not listed
Wrote their own version · 3
- TheOnlyFusionCube/potetos-for-everyone★ 21same name
- requie/endostack★ 4same name
- 3metaJun/mstack★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- claude/CLAUDE.mdCLAUDE.md
- agent-browserSkill
- animation-vocabularySkill
- apple-designSkill
- benchmark-checklistSkill
- codebase-designSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- emil-design-engSkill
- find-animation-opportunitiesSkill
- grillingSkill
- improve-animationsSkill
- improveSkill
- parallel-buildSkill
- pick-ui-librarySkill
- plan-executionSkill
- plan-handoffSkill
- portlessSkill
- principle-attack-the-premiseSkill
- prototypeSkill
- receiving-code-reviewSkill
- review-animationsSkill
- shadcnSkill
- supabase-postgres-best-practicesSkill
- testingSkill
- unslopSkill
- vercel-react-best-practicesSkill
- verification-before-completionSkill
The file
We split this skill into the rules it gives an agent
7 rules. 1 is common, 6 are distinctive, and 0 are very specific to this project.
1
Common
Most of the 48 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When debugging, fix the fault, not the place where it surfaced.
- Distinctive: line 14
Ask "why" at each step until the answer is a wrong decision in the code, not a consequence of an earlier one.
- Distinctive: line 15
When stuck, instrument. Read the actual error and the actual state.
- Distinctive: line 17
When something fails only after a restart, suspect persisted state first: config files, caches, lock files, serialized state.
- Distinctive: line 18
Check for the pattern, not just the instance.
- Common: line 19
If a workaround needs a paragraph-long comment to justify it, the code is wrong.
- Distinctive: line 20
If the deciding fact took a deep dig to find, propose the cheap, always-on signal that would have shown it at first look.
“Common” is measured: kept by at least 6 in 10 of the 48 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fix Root Causes
When debugging, fix the fault, not the place where it surfaced. The symptom is where a wrong state became visible. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.
Why: A symptom fix hides the evidence and leaves the fault free to surface somewhere else. Each one makes the system harder to reason about, because the code now carries a workaround for a bug that nobody named.
Pattern:
- Reproduce first.
- Ask "why" at each step until the answer is a wrong decision in the code, not a consequence of an earlier one.
- When stuck, instrument. Read the actual error and the actual state. Do not guess.
- Ask whether the state that triggered the symptom is legitimate. If the system may be in that state, the code that broke on it is the root cause, and handling the state there is the fix. If the state should never exist, a check where it broke hides the bug. Find what produced the state. Guards, retries, swallowed errors, clamped values, and discarded state are the usual ways to hide a bug.
- When something fails only after a restart, suspect persisted state first: config files, caches, lock files, serialized state.
- Check for the pattern, not just the instance. Find every place with the same fault and fix them all.
- If a workaround needs a paragraph-long comment to justify it, the code is wrong. Fix the code, not the comment.
- If the deciding fact took a deep dig to find, propose the cheap, always-on signal that would have shown it at first look.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

