principle-encode-lessons-in-structure
Skill120 starsChanged 4 days agoMITView on GitHub
Apply when you catch yourself writing the same instruction a second time, or notice a recurring correction. Encode the rule as a lint, metadata flag, runtime check, or script instead of more text.
71 other projects use a version of this, 41 of them edited; 32 of 41 edited versions we compared changed its rules; 1 new project in the last 4 weeks, against 2 the 4 before.
How people change it
32 of 41 edited versions changed its rules, and some changes recur.
Of the 41 edited versions we compared: 8 keep every rule, 1 is an older text, 32 made changes of their own.
Not in older versions
- Corollary: If the fix is structural, only use the structural fix. The instruction is the symptom.missing from 1 of 1
Rules people drop
- If the lesson needs judgment and cannot be encoded, make the instruction more prominent and add an example of the failure mode.dropped by 28 of 32
Rules people add
- When you catch yourself writing the same instruction a second time:added by 28 of 32
- Ask: can this be a lint rule, a metadata flag, a runtime check, or a script?added by 28 of 32
- If yes, encode it. Delete the instructionadded by 28 of 32
- If no (requires judgment), make the instruction more prominent and add an example of the failure modeadded by 28 of 32
- Capture every correction. When the human intervenes or tests fail, decide if it's a one-off or a pattern.added by 26 of 32
- Close the loop. Don't just record. Apply now or create a concrete todo.added by 26 of 32
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Cooling: 1 new project took it in the last 4 weeks, 0.5× the 4 weeks before.thin data
Most recently taken up by
- MondayNotAGoodDay/skillsword for word, first seen Nov 29, 2026
- karanmrn/karanagentskillsword for word, first seen Nov 29, 2026
- The-Utopia-Studio/skillsword for word, first seen Nov 29, 2026
- karanmrn/kstackword for word, first seen Nov 29, 2026
- elizaOS/elizaword for word, first seen Nov 29, 2026
- SurachatMa/claude-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use setup-pstack, make-bot-ui and 10 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 34 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 24 projects that use this
shiwenbin1617Skillketchup-video
Catch the user up like /ketchup, with a short subtitled video of slides for what happened and the waiting calls as text under it. Use for /ketchup-video.
Also in 19 projects that use this
The-Utopia-StudioSkillPoteto 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
ElyzeSolutionsSkillcontrol-cli
Build or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. Use for CLI UX checks, startup regressions, memory leaks, hangs, prompt flows, or terminal demos.
Also in 5 projects that use this
shiwenbin1617Skillstatechart
Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it as a Mermaid statechart. The report gives the shortest path to each state that breaks a rule. Use for /statechart, or to show a bug as a path through states.
Also in 20 projects that use this
Other versions71 projects use a version of this.
Word for word · 26
- trpc/trpc★ 41k100% same
- elizaOS/eliza★ 20k100% same
- backnotprop/pstack★ 5.4k100% same
- jtaroreh/agystack★ 142100% same
- Dimon94/dverity★ 107100% same
- Dimon94/skills★ 107100% same
- dsebban/skills★ 82100% same
- TencentBlueKing/bk-lite★ 77100% same
- stealth-factory/opscope★ 40100% same
- mariusflorescu/pstack-t3★ 13100% same
16 more not listed
Edited · 41
- storybookjs/storybook★ 92k18% same
- uzairansaruzi/p3-stack★ 12620% same
- painhardcore/pstack★ 2295% same
- creedants/pstack-t3★ 1995% same
- Scino/fstack★ 1392% same
- kkgogogo17/pi-pstack★ 919% same
- mdsmithaustin/pstack★ 919% same
- 0xrsydn/pstack-pi★ 719% same
- bnema/pi-pstack★ 219% same
- dhanji4U/skills★ 217% same
31 more not listed
Wrote their own version · 4
- TheOnlyFusionCube/potetos-for-everyone★ 21same name
- requie/endostack★ 4same name
- B16B1RD/bb-writ★ 0same name
- SurachatMa/claude-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 repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- alchemySkill
- architectSkill
- arenaSkill
- benchmark-checklistSkill
- bug-reviewSkill
- designSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- 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-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
- proveSkill
- shellSkill
- syncSkill
- typescript-best-practicesSkill
- whySkill
- feedSkill
The file
We split this skill into the rules it gives an agent
2 rules. 1 is common, 1 is distinctive, and 0 are very specific to this project.
1
Common
Most of the 44 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
If the lesson needs judgment and cannot be encoded, make the instruction more prominent and add an example of the failure mode.
- Common: line 11
Corollary: If the fix is structural, only use the structural fix.
“Common” is measured: kept by at least 6 in 10 of the 44 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
Encode Lessons in Structure
If the lesson needs judgment and cannot be encoded, make the instruction more prominent and add an example of the failure mode.
Corollary: If the fix is structural, only use the structural fix. The instruction is the symptom.
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.

