Skip to content
Skills Library
Programming · Planning

principle-foundational-thinking

/principle-foundational-thinking

Apply when choosing core types and data structures before writing logic, sequencing scaffold-vs-feature work, or asking what concurrent actors share. Get the data structures right so downstream code becomes obvious.

Licence
MIT
Last repository change
06.11.2026

Assessment and security

81/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content16 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 06.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Apply when choosing core types and data structures before writing logic, sequencing scaffold-vs-feature work, or asking what concurrent actors share. Get the data structures right so downstream code becomes obvious.

Original author description

Apply when choosing core types and data structures before writing logic, sequencing scaffold-vs-feature work, or asking what concurrent actors share. Get the data structures right so downstream code becomes obvious.

How it works

SKILL.md has no level-two headings · 17 lines, 210 words

SKILL.md preview
---
name: principle-foundational-thinking
description: "Apply when choosing core types and data structures before writing logic, sequencing scaffold-vs-feature work, or asking what concurrent actors share. Get the data structures right so downstream code becomes obvious."
license: MIT
metadata:
  derived-from: pstack@0.14.4
  category: design
  summary: "Get the data structures right first and the code that follows becomes obvious."
  when: "Choosing core types, or deciding what to scaffold before features."
---

# Foundational Thinking

**Structural decisions** protect option value. **Code-level decisions** protect simplicity. Over-engineering is often a premature decision that closes doors. The right foundational data structure keeps doors open.

**Data structures first.** Get the data shape right before writing logic. The right shape makes downstream code obvious. Define core types early, trace every access pattern, and choose structures that match the dominant paths. A data-structure change late is a rewrite. Early, it is often a one-line diff.

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 weight first, then lay foundations.

Versions

RepositoryScoreLicence
This page · lgarceau768/agent-principles81MIT
workerstack/clients81MIT

Database snapshot: 13.11.2026 · package version 1f415cc03e61 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95c-data-structures
    Use when fundamental C data structures including arrays, structs, linked lists, trees, and hash tables with memory-efficient implementations.
  • 86principle-type-system-discipline
    Apply when designing types, reviewing a function signature, or writing code in any statically-typed language. Make illegal states unrepresentable, brand semantic primitives, parse external data at boundaries, exhaust variants, derive from authoritative schemas. Use for…
  • 86principle-model-the-domain
    Apply when writing stateful logic, or when code branches a lot or repeats a shape assumption across files. Use for /principle-model-the-domain.
  • 86plan-before-code
    Decide the shape and the size of a change before writing it. Use for any non-trivial edit, a new mechanism, a refactor, or work whose scope is not obvious from the request.
  • 86principle-model-the-domain
    Apply when writing stateful logic, or when code branches a lot or repeats a shape assumption across files.
  • 96principle-test-where-the-failure-happens
    Apply when planning frontend features, fixing UI regressions, or choosing frontend test coverage. Plan observable scenarios, test UI in a real browser, and share page objects and data factories across test layers.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.