principle-foundational-thinking
Skill1 starsChanged 12 days agoMITView on GitHub
Apply before writing analysis logic: choosing the table shape and grain, sequencing environment and check setup against analysis work, and asking what shared state a job or notebook can change. Get the data structures right so the downstream code becomes obvious.
46 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
- requie/endostacktheir own version, first seen Nov 8, 2026
- creedants/pstack-t3edited, first seen Nov 3, 2026
- painhardcore/pstackedited, first seen Nov 2, 2026
- silacode/agent-skillsedited, first seen Nov 1, 2026
Used with
Projects with it also use setup-pstack, poteto-help and 4 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.
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 19 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 11 projects that use this
JoshueOsunaSkillPoteto Mode
poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.
Also in 3 projects that use this
instructureSkillketchup
Rebuild context after /clear by analyzing uncommitted changes across Canvas LMS and all plugin repositories
Also in 18 projects that use this
Other versions46 projects use a version of this.
Word for word · 0
None found.
Edited · 43
- backnotprop/pstack★ 3.8k29% same
- jtaroreh/agystack★ 12824% same
- uzairansaruzi/p3-stack★ 12629% same
- dsebban/skills★ 7129% same
- creedants/pstack-t3★ 1831% same
- painhardcore/pstack★ 1831% same
- Scino/fstack★ 1824% same
- mariusflorescu/pstack-t3★ 1329% same
- adjohn/pstack★ 929% same
- kkgogogo17/pi-pstack★ 924% same
33 more not listed
Wrote their own version · 3
- TheOnlyFusionCube/potetos-for-everyone★ 21same name
- requie/endostack★ 4same name
- jamesdebatty/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 repository50 other files it gives its agents.
- analyst-modeSkill
- architectSkill
- arenaSkill
- astack-helpSkill
- benchmark-checklistSkill
- blast-radiusSkill
- catch-upSkill
- correctSkill
- create-formal-verification-skillSkill
- figure-it-outSkill
- howSkill
- interrogateSkill
- in-your-own-wordsSkill
- maintain-formal-verification-skillSkill
- no-commentsSkill
- plain-wordsSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-define-the-questionSkill
- principle-encode-lessons-in-structureSkill
- principle-experience-firstSkill
- principle-explain-the-numberSkill
- principle-fix-root-causesSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-name-the-estimandSkill
- principle-never-block-on-the-humanSkill
- principle-prove-it-worksSkill
- principle-reproduce-from-clean-stateSkill
- principle-respect-the-grainSkill
- principle-sequence-verifiable-unitsSkill
- principle-simulate-the-methodSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- recallSkill
- reflectSkill
- retail-analyticsSkill
- sharpenSkill
- show-me-your-workSkill
- statechartSkill
- swarmSkill
- tddSkill
- teachSkill
- technical-writingSkill
- unslopSkill
- whySkill
The file
Files
Foundational Thinking
Structural decisions protect option value. Code-level decisions protect simplicity.
Shape the data first. Settle the table shape before writing logic. Decide the grain (one row per what), the keys, the types, and the units. Trace every access pattern (joins, group-bys, filters over time) and choose a layout that fits the dominant paths. See principle-respect-the-grain.
At code level, DRY the structure, not every line. Keep the schema in one place. Three similar expressions still beat a premature helper. Prefer explicit Polars expressions over clever chains. Test behavior and edge cases, not line counts.
Concurrency corollary. Before sharing state between actors (parallel jobs, a shared cache file, a shared warehouse table, two notebooks writing one output), ask "what happens if another actor changes this at the same time?" If the answer is not "nothing", isolate it with separate output paths, partitioned writes, or an atomic rename.
Scaffold first. If something helps every later step, build it first. Ask "does every subsequent step benefit from this existing?" A locked environment (uv.lock), a shared data loader, assertion helpers, and a common plotting theme are scaffold. Set up the environment and checks before the analysis, and the checks before the fixes. Keep commits small and single-purpose.
Each increment should land a coherent abstraction or deepen one that exists. Do not spread a new column or filter across callers as special-case handling.
Subtraction comes before scaffolding. Remove dead cells and unused columns first, then lay foundations.
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.

