agentleFS
hidenobunagaihidenobunagai/astack/skills/principle-minimize-reader-load/SKILL.md

principle-minimize-reader-load

Skill1 starsChanged 11 days agoMITView on GitHub

Apply when reviewing or shaping analysis code that is hard to trace: a notebook with hidden state, a pipeline with many wrapper functions, or a dashboard with chained parameters. Count the layers between question and answer and the state a reader must hold, then collapse one-caller wrappers and shrink mutable scope.

46 other projects use a version of this, 44 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

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 46 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer boundaries that hide a meaningful decision.

    line 14
  2. Distinctive:

    Before you add a layer or a piece of state, ask whether it reduces reader load elsewhere by at least as much.

    line 19

“Common” is measured: kept by at least 6 in 10 of the 46 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Minimize Reader Load

Maintainability is the work a reader must do to understand code. Track two axes. Layers to trace are the indirections between the question and the answer. State to hold is the hidden or mutable context the reader must keep in mind. Line count and "clean architecture" are proxies. Reader load is what matters. The two axes are independent. A flat script with fifty globals can be as hard to reason about as a six-layer adapter stack.

A notebook is the extreme case. A variable defined in cell 3, reassigned in cell 9, and read in cell 12 is hidden state.

  • Collapse layers that cost more than they save: wrappers with one caller, adapters with no second implementation, indirection that was never needed. Inline them.
  • Collapse pass-through layers. A layer that repeats the same arguments without changing the abstraction adds reader load and no compression.
  • Prefer boundaries that hide a meaningful decision. A broad interface that hides nothing makes readers learn both the surface and the implementation.
  • Shrink state scope. Prefer pure functions that return frames over functions that mutate them, locals over module state, and module state over globals.
  • Derive instead of sync. Compute a column from its source instead of keeping a copy in step with it.
  • Chain Polars expressions in one place rather than reassigning the same df name across many cells.
  • Name the invariant at the boundary, such as "order_id is unique", so readers learn it once.
  • Before you add a layer or a piece of state, ask whether it reduces reader load elsewhere by at least as much.

The test is whether a new reader can answer "where does X come from?" and "what can change X?" in under 30 seconds. If not, cut layers or cut state.

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.