Back

Principle Foundational Thinking

Writing & docs8.1K installs

What it does

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.

Install

npx skills add https://github.com/backnotprop/pstack --skill principle-foundational-thinking

Website

www.skills.sh/backnotprop/pstack/principle-foundational-thinking

Details

From the skill’s SKILL.md or README, by its authors. View the original

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.

See all
  • Writing & docs

    A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

    npx skills add https://github.com/mattpocock/skills --skill grill-with-docs
    1.3M installs
  • Writing & docs

    Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

    npx skills add https://github.com/mattpocock/skills --skill triage
    1.1M installs
  • Writing & docs

    Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

    npx skills add https://github.com/mattpocock/skills --skill domain-modeling
    952.2K installs
  • Writing & docs

    Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

    npx skills add https://github.com/mattpocock/skills --skill writing-beats
    528.6K installs

Skills are shared by members and not reviewed by us. Read a skill’s code before you install it.

Principle Foundational Thinking: AI agent skill