{"data":{"slug":"discovered-10ad0a1431c37c0c0561098c44829d34a40be54be71922fd","title":"Principle Foundational Thinking","summary":"Define core types and data structures before writing logic, ensuring they align with access patterns and support concurrent modifications safely.","url":"https:\/\/skillshunter.net\/skills\/discovered-10ad0a1431c37c0c0561098c44829d34a40be54be71922fd","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-10ad0a1431c37c0c0561098c44829d34a40be54be71922fd","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-10ad0a1431c37c0c0561098c44829d34a40be54be71922fd.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-10ad0a1431c37c0c0561098c44829d34a40be54be71922fd\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before writing logic, ensure core types and data structures are defined. Consider concurrency implications when sharing state between actors.","instructions":"---\nname: principle-foundational-thinking\ndescription: Before writing logic, get the core types and data structures right.\ndisable-model-invocation: true\n---\n\n# Foundational Thinking\n\nGet 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.\n\nBefore sharing state between actors, ask what happens if another actor modifies it concurrently. If the answer is not \"nothing\", isolate.\n\nSetup first. Whatever helps every later phase (CI, tests, shared types) goes first, after removing dead code. Keep commits small and single-purpose.\n","use_cases":["Designing data models for a new application","Refactoring legacy code to improve structure and concurrency safety","Setting up initial project scaffolding with clear type definitions"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/jueyi6\/empstack\/blob\/74181e31d2f00313f8683ba157966efcabbe109e\/skills\/principle-foundational-thinking\/SKILL.md","source_commit":"74181e31d2f00313f8683ba157966efcabbe109e","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T08:56:12.000000Z","updated_at":"2026-12-02T09:15:14.000000Z","seo_title":"Principle Foundational Thinking for Software Development","seo_description":"Master the art of defining core types and data structures before implementing logic, ensuring robust and scalable software design.","seo_keywords":["foundational thinking","data structure design","software development principles","concurrency safety","core type definition"]}}