Skills for Real Engineers. Straight from my .agents directory.
principle-foundational-thinking
Agent skill frommichael-denyer/pstack-claude
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
npx skills add michael-denyer/pstack-claude# or add only this skill to Claude Code: copy the folder
plugins/pstack/skills/principle-foundational-thinking/
# into
~/.claude/skills/principle-foundational-thinking/ (all projects)
.claude/skills/principle-foundational-thinking/ (one project)
1# Foundational Thinking23**Structural decisions** protect option value. **Code-level decisions** protect simplicity.45**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.67At 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.89**Concurrency corollary.** Before sharing state between actors, ask "what happens if another actor modifies this concurrently?" If not "nothing", isolate.1011**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.1213Each increment should land a coherent abstraction or deepen one that exists. Do not spread a new capability across callers as special-case coordination.1415Subtraction comes before scaffolding. Remove dead code first, then lay foundations.
Excerpt shown under the repository's MIT license.
More skills in pstack-claude
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
