principle-fix-root-causes
Skill1 starsChanged 49 days agoMITView on GitHub
Apply when debugging. Trace each symptom to its root cause and fix it there; reproduce first, ask why until you reach it, resist nil-check guards that silence crashes.
48 other projects use a version of this, 43 of them edited.
Adopted by
Most recently taken up by
- paramcodes/skillsedited, first seen Nov 8, 2026
- tristanphvn/keeledited, first seen Nov 8, 2026
- hidenobunagai/astacktheir own version, first seen Nov 8, 2026
- requie/endostacktheir own version, first seen Nov 8, 2026
- creedants/pstack-t3edited, first seen Nov 3, 2026
- painhardcore/pstackedited, first seen Nov 2, 2026
Used with
Projects with it also use principle-explain-the-number, setup-pstack and 10 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 versions48 projects use a version of this.
Word for word · 0
None found.
Edited · 43
- backnotprop/pstack★ 3.8k12% same
- jtaroreh/agystack★ 12838% same
- uzairansaruzi/p3-stack★ 12689% same
- dsebban/skills★ 7112% same
- creedants/pstack-t3★ 1811% same
- painhardcore/pstack★ 1811% same
- Scino/fstack★ 1895% same
- mariusflorescu/pstack-t3★ 1312% same
- adjohn/pstack★ 912% same
- kkgogogo17/pi-pstack★ 998% same
33 more not listed
Wrote their own version · 5
- TheOnlyFusionCube/potetos-for-everyone★ 21same name
- requie/endostack★ 4same name
- hidenobunagai/astack★ 1same name
- 3metaJun/mstack★ 0same name
- DarthJonathan/guac-skills★ 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 repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/bulma-feature-delivery/adapters/claude.mdCLAUDE.md
- architectSkill
- before-and-afterSkill
- blast-radiusSkill
- bulma-busSkill
- bulma-code-reviewSkill
- bulma-developerSkill
- bulma-fdSkill
- bulma-feature-deliverySkill
- bulma-goalSkill
- bulma-hostSkill
- bulma-lstmSkill
- bulma-memorySkill
- bulma-qaSkill
- bulma-reviewerSkill
- bulmaSkill
- bulma-triageSkill
- diagnoseSkill
- figure-it-outSkill
- grill-with-docsSkill
- howSkill
- interrogateSkill
- kevinSkill
- no-commentsSkill
- principle-prove-it-worksSkill
- principle-sequence-verifiable-unitsSkill
- receiving-code-reviewSkill
- tddSkill
- technical-writingSkill
- thermo-nuclear-code-quality-reviewSkill
- to-issuesSkill
- to-prdSkill
- typescript-best-practicesSkill
- unslopSkill
The file
We split this skill into the rules it gives an agent
5 rules. 2 are common, 3 are distinctive, and 0 are very specific to this project.
2
Common
Most of the 48 edited versions we read keep these.
3
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 10
When debugging, do not paper over symptoms.
- Common: line 16
Ask "why" until you hit the root cause
- Common: line 18
If a workaround needs a paragraph-long comment to justify it, the code is wrong (fix the code, not the comment)
- Distinctive: line 19
Check for the pattern, not just the instance (grep for the same pattern, fix all instances)
- Distinctive: line 20
When stuck, instrument. Don't guess (add logging, read the actual error)
“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, do not paper over symptoms. Trace every problem to its root cause and fix it there.
Why: Symptom fixes accumulate. Each workaround makes the system harder to reason about, and the real bug remains. Root-cause fixes are slower upfront but reduce total debugging time.
Pattern:
- Reproduce first (if you can't reproduce it, you can't verify your fix)
- Ask "why" until you hit the root cause
- Resist the urge to add guards (adding a nil check to silence a crash is a symptom fix)
- If a workaround needs a paragraph-long comment to justify it, the code is wrong (fix the code, not the comment)
- Check for the pattern, not just the instance (grep for the same pattern, fix all instances)
- When stuck, instrument. Don't guess (add logging, read the actual error)
Restart bugs: suspect state before code
Code doesn't change between runs. State does. When something "fails after restart," suspect stale persistent state first: config files, caches, lock files, serialized state. If clearing a state file restores behavior, prioritize state validation as the fix.
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.

