principle-boundary-discipline
Skill1 starsChanged 13 days agoMITView on GitHub
Apply when wiring data ingestion, parsing raw files, validating input schemas, or connecting to databases, APIs, and notebooks. Check data once at the boundary, convert it to typed frames, and keep transforms as pure functions the shell calls.
55 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Dimon94/dveritytheir own version, first seen Nov 15, 2026
- Dimon94/skillstheir own version, first seen Nov 15, 2026
- backnotprop/pstacktheir own version, first seen Nov 15, 2026
- asarelcastellanos/claude-workbenchtheir own version, first seen Nov 15, 2026
- sammyjoyce/prime-pstacktheir own version, first seen Nov 15, 2026
- pronvis/skillstheir own version, first seen Nov 15, 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 versions55 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- bnema/pi-pstack★ 211% same
Wrote their own version · 54
- trpc/trpc★ 41ksame name
- backnotprop/pstack★ 4.2ksame name
- jtaroreh/agystack★ 128same name
- uzairansaruzi/p3-stack★ 126same name
- Dimon94/dverity★ 107same name
- Dimon94/skills★ 107same name
- dsebban/skills★ 71same name
- painhardcore/pstack★ 22same name
- TheOnlyFusionCube/potetos-for-everyone★ 21same name
- creedants/pstack-t3★ 18same name
44 more not listed
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-build-the-leverSkill
- principle-define-the-questionSkill
- principle-encode-lessons-in-structureSkill
- 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-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
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 54 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 15
Keep the general mechanism (a reader, a cast helper) inside.
- Distinctive: line 16
Put input schema assertions in one loader function, not in every analysis cell.
- Distinctive: line 20
Ask two questions. "Is this data crossing a system boundary right now?" If not, the validation is redundant.
“Common” is measured: kept by at least 6 in 10 of the 54 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
Boundary Discipline
Place schema checks, type narrowing, and error handling at system boundaries: file reads, warehouse queries, API responses, CLI arguments, config files, and parameters passed into a notebook. Inside the pipeline, trust the typed frames. Business logic lives in pure functions over Polars frames. The shell (the script entry point or the notebook cell that calls them) stays thin.
Scattered checks make a pipeline noisy and give a false sense of safety. Logic stuck in notebook cells cannot be tested without running the whole notebook.
- At boundaries, validate the schema, dtypes, and expected ranges, and fail loudly with the offending column or row. Parse raw columns into domain types (dates, categories, currency units) once, at this point.
- Inside the system, use typed frames. Do not re-check the same schema in every function. Do not repeat a null check deep in a chain when the loader already enforced it.
- Across the boundary, expose domain names (
active_customers,order_date), not raw source column names or a vendor's wire format. - Keep the general mechanism (a reader, a cast helper) inside. Keep the special policy (which rows count as a valid order) at the edge.
- Put input schema assertions in one loader function, not in every analysis cell.
- Metric definitions, cohort rules, and cleaning rules are pure functions that take a frame and return a frame or a value. A tiny hand-made frame can test them, with no database and no notebook.
- Plots and reports call those functions. They do not recompute the metric.
Ask two questions. "Is this data crossing a system boundary right now?" If not, the validation is redundant. "Can this be a pure function over a frame that the shell calls?" If yes, extract it.
You skipped this when a metric definition lives inside a notebook cell that also reads the source, or when the same schema check appears in three files.
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.

