# Principle Foundational Thinking

Define core types and data structures before writing logic, ensuring they align with access patterns and support concurrent modifications safely.

**Canonical 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

**Instructions download URL:** https://skillshunter.net/skills/discovered-10ad0a1431c37c0c0561098c44829d34a40be54be71922fd/download

**Category:** Software & Development

**Source URL:** https://github.com/jueyi6/empstack/blob/74181e31d2f00313f8683ba157966efcabbe109e/skills/principle-foundational-thinking/SKILL.md

**Source commit:** 74181e31d2f00313f8683ba157966efcabbe109e

**Listing approved at:** 2026-12-02

**Created at:** 2026-11-30T08:56:12.000000Z

**Updated at:** 2026-12-02T09:15:14.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before writing logic, ensure core types and data structures are defined. Consider concurrency implications when sharing state between actors.

### When to use it

- 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

## Skill instructions

---
name: principle-foundational-thinking
description: Before writing logic, get the core types and data structures right.
disable-model-invocation: true
---

# 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.

Setup first. Whatever helps every later phase (CI, tests, shared types) goes first, after removing dead code. Keep commits small and single-purpose.

