
principle-foundational-thinking
Apply before writing logic: choosing core types and data structures
by cursorFree
Description
principle-foundational-thinking is an agent skill from Cursor's plugins collection that applies a working principle before writing logic: choosing core types and data structures, sequencing scaffolding against feature work, and asking what concurrent actors share. The principle says structural decisions protect option value, and code-level decisions protect simplicity. It asks for the data shape to be right before the logic is written: core types should be defined early, every access pattern traced, and structures chosen to match the dominant paths. At the code level it advises against premature abstraction, so three similar statements are better than a clever shared helper, and it prefers explicit code to clever code, and tests of behaviour and edge cases rather than of line counts. For concurrency it has a corollary: before sharing state between actors, ask what happens if another actor modifies it concurrently, and if the answer is anything other than nothing, isolate the state. The principle also covers sequencing, suggesting that the scaffold should be built before feature work so that the structure is settled first. It is useful at the start of a new module or a redesign. It is listed on skills.sh, where the page shows install counts and GitHub stars for the Cursor plugins repository. Install it with npx skills add https://github.com/cursor/plugins --skill principle-foundational-thinking.…
Highlights
- Data structures and core types first
- Trace every access pattern
- Avoid premature abstraction
- Concurrency isolation question
- Scaffold before features
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate principle-foundational-thinking.
People also visit

principle-subtract-before-you-add
Apply when sequencing an addition, refactor, or rewrite

pragmatic-programmer
Apply meta-principles of software craftsmanship: DRY, orthogonality

principle-boundary-discipline
Apply when wiring validation, error handling, or framework adapters

principle-laziness-protocol
Apply when refactoring, evaluating diff size, or tempted to add abstractions

principle-build-the-lever
Apply to any non-trivial work, not just bulk work: edits, migrations, analyses
principle-foundational-thinking FAQ
When should it be applied?
Before writing logic, when choosing core types, data structures and the order of scaffold and feature work.
What does it say about abstraction?
It warns against premature abstraction, and says three similar statements can be better than a shared helper.
What is the concurrency question?
Before sharing state between actors, ask what happens if another actor changes it, and isolate the state unless the answer is nothing.
How do I install it?
Run npx skills add https://github.com/cursor/plugins --skill principle-foundational-thinking.
How popular is it?
The skill is listed in the cursor/plugins repository, which has 11.4K GitHub stars.
What are the best principle-foundational-thinking alternatives?
Popular alternatives to principle-foundational-thinking include principle-model-the-domain, principle-subtract-before-you-add and pragmatic-programmer. See all principle-foundational-thinking alternatives






