agentleFS
hidenobunagaihidenobunagai/astack/skills/principle-foundational-thinking/SKILL.md

principle-foundational-thinking

Skill1 starsChanged 12 days agoMITView on GitHub

Apply before writing analysis logic: choosing the table shape and grain, sequencing environment and check setup against analysis work, and asking what shared state a job or notebook can change. Get the data structures right so the downstream code becomes obvious.

46 other projects use a version of this, 43 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-pstack, poteto-help and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 25 projects that use this

  • ianclearySkill

    poteto-help

    Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.

    Also in 14 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 19 projects that use this

  • tristanphvnSkill

    ketchup-video

    Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.

    Also in 11 projects that use this

  • JoshueOsunaSkill

    Poteto Mode

    poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.

    Also in 3 projects that use this

  • instructureSkill

    ketchup

    Rebuild context after /clear by analyzing uncommitted changes across Canvas LMS and all plugin repositories

    Also in 18 projects that use this

The file

Files
SKILL.md

Foundational Thinking

Structural decisions protect option value. Code-level decisions protect simplicity.

Shape the data first. Settle the table shape before writing logic. Decide the grain (one row per what), the keys, the types, and the units. Trace every access pattern (joins, group-bys, filters over time) and choose a layout that fits the dominant paths. See principle-respect-the-grain.

At code level, DRY the structure, not every line. Keep the schema in one place. Three similar expressions still beat a premature helper. Prefer explicit Polars expressions over clever chains. Test behavior and edge cases, not line counts.

Concurrency corollary. Before sharing state between actors (parallel jobs, a shared cache file, a shared warehouse table, two notebooks writing one output), ask "what happens if another actor changes this at the same time?" If the answer is not "nothing", isolate it with separate output paths, partitioned writes, or an atomic rename.

Scaffold first. If something helps every later step, build it first. Ask "does every subsequent step benefit from this existing?" A locked environment (uv.lock), a shared data loader, assertion helpers, and a common plotting theme are scaffold. Set up the environment and checks before the analysis, and the checks before the fixes. Keep commits small and single-purpose.

Each increment should land a coherent abstraction or deepen one that exists. Do not spread a new column or filter across callers as special-case handling.

Subtraction comes before scaffolding. Remove dead cells and unused columns first, then lay foundations.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.