Tooluck logoTooluck
SKILL.md

principle-foundational-thinking

Agent skill frombacknotprop/pstack

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.

How to install principle-foundational-thinking

install principle-foundational-thinking
# install the pstack pack with the skills CLI
npx skills add backnotprop/pstack

# or add only this skill to Claude Code: copy the folder

skills/principle-foundational-thinking/

# into

~/.claude/skills/principle-foundational-thinking/ (all projects)

.claude/skills/principle-foundational-thinking/ (one project)

skills/principle-foundational-thinking/SKILL.md

MITFull file
1# Foundational Thinking
2
3**Structural decisions** protect option value. **Code-level decisions** protect simplicity.
4
5**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.
6
7At 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.
8
9**Concurrency corollary.** Before sharing state between actors, ask "what happens if another actor modifies this concurrently?" If not "nothing", isolate.
10
11**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.
12
13Each increment should land a coherent abstraction or deepen one that exists. Do not spread a new capability across callers as special-case coordination.
14
15Subtraction comes before scaffolding. Remove dead code first, then lay foundations.

Excerpt shown under the repository's MIT license.

More skills in pstack

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates