Principle Foundational Thinking
Writing & docs8.1K installs
What it does
Apply before writing logic: choosing core types and data structures, sequencing scaffold-vs-feature work, asking what concurrent actors share. Get the data structures right so downstream code becomes obvious.
Install
npx skills add https://github.com/backnotprop/pstack --skill principle-foundational-thinkingWebsite
www.skills.sh/backnotprop/pstack/principle-foundational-thinkingDetails
From the skill’s SKILL.md or README, by its authors. View the original
Foundational Thinking
Structural decisions protect option value. Code-level decisions protect simplicity.
Data structures first. Get the data shape right before writing logic. Define core types early, trace every access pattern, and choose structures that match the dominant paths.
At code level, DRY the structure, not every line. Types and data models should converge. Three similar statements still beat a premature abstraction. Prefer explicit over clever. Test behavior and edge cases, not line counts.
Concurrency corollary. Before sharing state between actors, ask what happens if another actor modifies this concurrently? If not nothing, isolate.
Scaffold first. If something helps every later phase, do it first. Ask does every subsequent phase benefit from this existing? CI, linting, test infrastructure, and shared types are scaffold. Sequence for option value: setup before features, tests before fixes. Keep commits small and single-purpose.
Each increment should land a coherent abstraction or deepen one that exists. Do not spread a new capability across callers as special-case coordination.
Subtraction comes before scaffolding. Remove dead code first, then lay foundations.
More Writing & docs skills
See allWriting & docs
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
1.3M installsnpx skills add https://github.com/mattpocock/skills --skill grill-with-docsWriting & docs
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
1.1M installsnpx skills add https://github.com/mattpocock/skills --skill triageWriting & docs
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
952.2K installsnpx skills add https://github.com/mattpocock/skills --skill domain-modelingWriting & docs
Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
528.6K installsnpx skills add https://github.com/mattpocock/skills --skill writing-beats
Skills are shared by members and not reviewed by us. Read a skill’s code before you install it.