principle-model-the-domain
Skill0 starsChanged 27 days agoMITView on GitHub
Replace scattered conditionals, synchronized booleans, repeated shape assumptions, and ad hoc mutations with a structure that directly represents the domain.
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 42 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
- Distinctive: line 24
Start with two questions: what must never be allowed, and how is the data read?
- Distinctive: line 27
Do not force an abstraction when the existing code is clear, local, and stable.
“Common” is measured: kept by at least 6 in 10 of the 42 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
Model the domain
Encode real domain rules in data structures instead of distributing them across branches and files.
Consider:
- A state machine instead of synchronized booleans and lifecycle checks.
- A typed domain object instead of loose parameters and repeated assumptions.
- A registry, map, lookup table, or discriminated union instead of a growing conditional chain.
- A reducer or command/event model instead of ad hoc state mutation.
- A module organized around one body of domain knowledge instead of procedural phases such as load, validate, transform, and save.
- A queue, cache, index, graph, tree, or normalized collection when the access pattern calls for it.
Start with two questions: what must never be allowed, and how is the data read? Choose the smallest structure that encodes those answers.
Do not force an abstraction when the existing code is clear, local, and stable. An abstraction should remove branches, duplicate rules, invalid states, or lifecycle risk. If it only adds indirection, keep the boring code.
Other versions42 projects use a version of this.
Word for word · 0
None found.
Edited · 36
- backnotprop/pstack★ 3.3k11% same
- jtaroreh/agystack★ 12810% same
- uzairansaruzi/p3-stack★ 12610% same
- dsebban/skills★ 7111% same
- Scino/fstack★ 1810% same
- creedants/pstack-t3★ 1712% same
- mariusflorescu/pstack-t3★ 1311% same
- adjohn/pstack★ 911% same
- kkgogogo17/pi-pstack★ 910% same
- 0xrsydn/pstack-pi★ 610% same
26 more not listed
Wrote their own version · 6
- TheOnlyFusionCube/potetos-for-everyone★ 18same name
- bnema/pi-pstack★ 2same name
- dhanji4U/skills★ 2same name
- ngcto/oh-my-pstack★ 1same name
- ericmasiello/skills★ 0same name
- lucasvidela94/opencode-pstack★ 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.
Used alongsideProjects with it also use setup-pstack and poteto-help.
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.
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 24 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 13 projects that use this
In this repository60 other files it gives its agents.
- architectSkill
- arenaSkill
- automate-meSkill
- benchmark-checklistSkill
- blast-radiusSkill
- broSkill
- codebase-designSkill
- correctSkill
- create-formal-verification-skillSkill
- create-verification-skillSkill
- diagnosing-bugsSkill
- figure-it-outSkill
- howSkill
- interrogateSkill
- in-your-own-wordsSkill
- ketchupSkill
- ketchup-videoSkill
- maintain-formal-verification-skillSkill
- maintain-verification-skillSkill
- make-bot-uiSkill
- meta-modeSkill
- mstack-helpSkill
- no-commentsSkill
- 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-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-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-mstackSkill
- sharpenSkill
- show-me-your-workSkill
- statechartSkill
- swarmSkill
- tddSkill
- teachSkill
- technical-writingSkill
- typescript-best-practicesSkill
- unslopSkill
- whySkill
- writing-for-agentsSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

