Principle Foundational Thinking

by cursorccb5507cec15No license10K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today

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.

Instructions onlySoftware Development
AI-generated overview

Guides foundational engineering decisions: data structures, scaffolding order, and concurrency isolation before writing logic.

What it does
This skill provides a set of principles for making structural decisions before writing code. It advises defining core types and data structures first, tracing access patterns, and choosing structures that match dominant paths. It also covers sequencing scaffold work such as CI, linting, and shared types ahead of features, and isolating shared state when concurrent modification is possible. It produces guidance rather than files or code.
When to use it
Use it before starting a new feature, module, or codebase when core types and data structures are still undecided. It is also useful when planning work order, deciding what scaffolding to build first, or reasoning about shared state between concurrent actors.
Requirements
No tools, packages, or credentials are needed; it is instructions only and ships no scripts.

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.

Source and attribution

Source:cursor/pluginsinpstack/skills/principle-foundational-thinkingat commitccb5507

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal