--- name: principle-foundational-thinking description: Before writing logic. Data structures first; scaffold before features. --- # Foundational Thinking Data shape first: core types, every access pattern. DRY structure, not every line; explicit over clever. Before sharing state, ask what a concurrent writer does. Scaffold first (CI, lint, tests, shared types); tests before fixes; small commits. Subtract dead code before foundations.