description: '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.' disable-model-invocation: true metadata: version: "1.0.1" github-path: pstack/skills/principle-foundational-thinking github-ref: refs/heads/main github-repo: https://github.com/cursor/plugins github-tree-sha: 49fc29c7f64b8f1e0ed56d2359c53243cc4e37d6 name: principle-foundational-thinking
Foundational Thinking
Get the data shape right before writing logic. Define core types early, trace every access pattern, and choose structures that match the dominant paths. DRY the structure, not every line.
Before sharing state between actors, ask what happens if another actor modifies it concurrently. If the answer is not "nothing", isolate.
Scaffold first. Whatever helps every later phase (CI, tests, shared types) goes first, after removing dead code. Keep commits small and single-purpose.