principle-subtract-before-you-add
Skill58 starsChanged 3 months agoMITView on GitHub
Apply when sequencing an addition, refactor, or rewrite. Remove dead weight, redundant validators, and stub references first, then build on the simpler base.
22 other projects use a version of this, 14 of them edited.
Adopted by
Most recently taken up by
- PickleBoxer/pstackedited, first seen Oct 6, 2026
- uzairansaruzi/p3-stackedited, first seen Oct 5, 2026
- backnotprop/pstackedited, first seen Oct 4, 2026
- creedants/pstack-t3edited, first seen Oct 3, 2026
- adjohn/pstackedited, first seen Oct 2, 2026
- dhanji4U/skillsedited, first seen Oct 2, 2026
Other versions22 projects use a version of this.
Word for word · 7
- shrimpwtf/oh-my-pstack★ 31100% same
- 0xrsydn/pstack-pi★ 3100% same
- shiwenbin1617/pstack★ 3100% same
- shishiv/pi-pstack★ 1100% same
- ahmedgcompany-cyber/pstack-claude★ 0100% same
- eryzerz/prime-pstack★ 0100% same
- shreyT19/claude-skills★ 0100% same
Edited · 14
- backnotprop/pstack★ 99187% same
- uzairansaruzi/p3-stack★ 12987% same
- painhardcore/pstack★ 698% same
- adjohn/pstack★ 487% same
- creedants/pstack-t3★ 384% same
- dhanji4U/skills★ 271% same
- JoshueOsuna/pstack★ 287% same
- PickleBoxer/pstack★ 187% same
- ahmedbenaw/pstack★ 084% same
- ericmasiello/skills★ 093% same
4 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.
- rules/AGENTS.mdAGENTS.md
- agystackSkill
- architectSkill
- arenaSkill
- automate-meSkill
- blast-radiusSkill
- broSkill
- create-verification-skillSkill
- deslopSkill
- figure-it-outSkill
- howSkill
- interrogateSkill
- loopSkill
- maintain-verification-skillSkill
- 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-fix-root-causesSkill
- 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-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- recallSkill
- reflectSkill
- setup-agystackSkill
- 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
3 rules. 2 are common, 1 is distinctive, and 0 are very specific to this project.
2
Common
Most of the 15 edited versions we read keep these.
1
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 9
When evolving a system, remove complexity first, then build.
- Common: line 19
No speculative validators, parsers, or guards beyond what the spec demands
- Common: line 22
When a reference has no novel content, delete it rather than leaving a stub
“Common” is measured: kept by at least 6 in 10 of the 15 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
Subtract Before You Add
When evolving a system, remove complexity first, then build. Deletion gives you a simpler base, which makes the next addition smaller and less brittle.
Why: Adding to a complex system compounds complexity. Removing first cuts the surface area, reveals the essential structure, and usually makes the next design obvious. Default to subtraction.
Make simplification a continual investment. Leave the design slightly simpler and more capable behind the same or smaller surface than you found it.
The pattern:
- Sequence removal before construction
- Cut before you polish (get to the minimum before investing in quality)
- Design for observed usage, not speculative edge cases
- No speculative validators, parsers, or guards beyond what the spec demands
- Out-of-spec features drag validators behind them. Persistence, retry-on-startup, and schema migration each need guards to defend their inputs.
- Simplify prompts (remove redundant instructions, excessive templates)
- When a reference has no novel content, delete it rather than leaving a stub
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.

