Skip to content
Skillpedia
General coding15k · #10978

principle-foundational-thinking

What it does

Gives the assistant a rule to design data shapes and the order of work before writing logic. It is for engineers who want a sound foundation and fewer rewrites.

When to use it

  • ✓When you are about to choose core types or data structures.
  • ✓When you are deciding whether setup work should come before features.
  • ✓When several parts of the system may change the same shared data.

Skill link

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-foundational-thinking/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-foundational-thinking/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Before we write the sync logic, help me get the core data types right so the rest is simple.”

5 new skills a week. 1 minute to read.

How it works

The assistant defines the core data shape first, traces how it is accessed, and sequences shared setup such as tests and types before features. It removes dead code before adding new foundations.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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.

FAQ

Why get data structures right first?

Once the data shape fits the main paths, the downstream code often becomes obvious.

Does it mean abstracting everything?

No. The skill prefers explicit code and warns against premature abstraction.

What about shared state?

Before concurrent actors share state, the skill asks whether they really need to, and isolates them if not.

Details

Original description by the author

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.

repo: cursor/plugins

Popularity

GitHub stars
15k
Ranking position
#10978
License
—
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills