principle-fix-root-causes
Skill991 starsChanged 56 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.
23 other projects use a version of this, 18 of them edited.
Adopted by
Most recently taken up by
- PickleBoxer/pstackword for word, first seen Oct 6, 2026
- uzairansaruzi/p3-stackword for word, first seen Oct 5, 2026
- creedants/pstack-t3edited, first seen Oct 3, 2026
- adjohn/pstackword for word, first seen Oct 2, 2026
- dhanji4U/skillsedited, first seen Oct 2, 2026
- lucasvidela94/opencode-pstackedited, first seen Sep 30, 2026
Other versions23 projects use a version of this.
Word for word · 4
- uzairansaruzi/p3-stack★ 129100% same
- adjohn/pstack★ 4100% same
- JoshueOsuna/pstack★ 2100% same
- PickleBoxer/pstack★ 1100% same
Edited · 18
- jtaroreh/agystack★ 5880% same
- shrimpwtf/oh-my-pstack★ 3180% same
- bostonaholic/team★ 1190% same
- painhardcore/pstack★ 674% same
- 0xrsydn/pstack-pi★ 380% same
- creedants/pstack-t3★ 398% same
- shiwenbin1617/pstack★ 380% same
- dhanji4U/skills★ 285% same
- shishiv/pi-pstack★ 180% same
- ahmedbenaw/pstack★ 098% same
8 more not listed
Wrote their own version · 1
- TheOnlyFusionCube/potetos-for-everyone★ 6same 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 repository49 other files it gives its agents.
- architectSkill
- arenaSkill
- automate-meSkill
- benchmark-checklistSkill
- blast-radiusSkill
- broSkill
- correctSkill
- create-verification-skillSkill
- figure-it-outSkill
- howSkill
- interrogateSkill
- maintain-verification-skillSkill
- Make Bot UISkill
- no-commentsSkill
- Poteto ModeSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-explain-the-numberSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-never-block-on-the-humanSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- recallSkill
- reflectSkill
- setup-pstackSkill
- show-me-your-workSkill
- swarmSkill
- tddSkill
- teachSkill
- technical-writingSkill
- typescript-best-practicesSkill
- unslopSkill
- whySkill
The file
We split this skill into the rules it gives an agent
7 rules. 5 are common, 2 are distinctive, and 0 are very specific to this project.
5
Common
Most of the 19 edited versions we read keep these.
2
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
- Common: line 9
When debugging, do not fix symptoms.
- Common: line 15
Ask "why" until you hit the root cause
- Distinctive: line 16
Do not add guards (adding a nil check to silence a crash is a symptom fix)
- Common: line 17
If a workaround needs a paragraph-long comment to justify it, the code is wrong (fix the code, not the comment)
- Common: line 18
Check for the pattern, not just the instance (grep for the same pattern, fix all instances)
- Common: line 19
When stuck, instrument. Don't guess (add logging, read the actual error)
- Distinctive: line 23
When something "fails after restart," suspect stale persistent state first: config files, caches, lock files, serialized state.
“Common” is measured: kept by at least 6 in 10 of the 19 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 fix 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
- Ask "why" until you hit the root cause
- Do not 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
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.

