← LeaderboardThe Skill Leaderboard

principle-foundational-thinking

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.

Published by backnotprop ↗backnotprop/pstack

Try your first task

Choose structures for tracking toy puzzle moves

Start a fresh conversation.

Before sketching game logic, compare representing move history as a list of snapshots versus a sequence of immutable moves. Use the supplied undo and replay examples to choose a structure and show how it simplifies the downstream logic.

    User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗

    SKILL.md

    name: principle-foundational-thinkingdescription: "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."disable-model-invocation: true

    Foundational Thinking

    Get the data shape right before writing logic. Define core types early, trace every access pattern, and choose structures that match the dominant paths. DRY the structure, not every line.

    Before sharing state between actors, ask what happens if another actor modifies it concurrently. If the answer is not "nothing", isolate.

    Scaffold first. Whatever helps every later phase (CI, tests, shared types) goes first, after removing dead code. Keep commits small and single-purpose.