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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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
Comments
- …
More skills from this repository
advisor
15kLets your agent consult a stronger second model at key checkpoints, such as before a big decision or when stuck on an error, if you turn it on.
check-agent-compatibility
15kRuns a full check of whether AI coding agents can start, verify and document a repository, and returns one compatibility score with the main issues.
cli-for-agents
15kTeaches your agent to design or review command-line tools so AI agents can run them without prompts, with clear help text and examples.
continual-learning
15kKeeps your AGENTS.md notes up to date by handing the work of reviewing past chats to a dedicated memory updater.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.