Tooluck logoTooluck
SKILL.md

principle-minimize-reader-load

Agent skill frommichael-denyer/pstack-claude

Apply when reviewing or shaping code that's hard to trace. Count layers between question and answer, and hidden state in the reader's head; collapse one-caller wrappers and shrink mutable scope.

How to install principle-minimize-reader-load

install principle-minimize-reader-load
# install the pstack-claude pack with the skills CLI
npx skills add michael-denyer/pstack-claude

# or add only this skill to Claude Code: copy the folder

plugins/pstack/skills/principle-minimize-reader-load/

# into

~/.claude/skills/principle-minimize-reader-load/ (all projects)

.claude/skills/principle-minimize-reader-load/ (one project)

plugins/pstack/skills/principle-minimize-reader-load/SKILL.md

MITFull file
1# Minimize Reader Load
2
3Maintainability is the work a reader must do to understand code. Track two axes: **layers to trace** (indirections between the question and the answer) and **state to hold** (hidden or mutable context the reader must keep in their head). LOC, cyclomatic complexity, and "clean architecture" are proxies. Reader load is the thing that matters. The two axes are independent. A flat file with 50 globals can be as hard to reason about as a 6-layer adapter stack. Guard both. This is the human analog of [Guard the Context Window](../principle-guard-the-context-window/SKILL.md). Working memory is finite for readers too.
4
5- **Collapse layers** that cost more than they save: wrappers with one caller, adapters with no second implementation, speculative indirection that was never needed. Inline them.
6- **Make adjacent layers change the abstraction.** A layer that repeats the same methods and arguments adds reader load without compression. Collapse pass-through layers.
7- **Demand interface compression.** A broad interface that hides little complexity makes readers learn both the surface and the implementation. Prefer boundaries that hide meaningful decisions.
8- **Shrink state scope:** prefer pure functions (returns over mutations), locals over fields, fields over module state, and module state over globals. Derive instead of sync.
9- **Name the invariant at the boundary,** not in every consumer, so the reader learns it once.
10…

Excerpt shown under the repository's MIT license.

More skills in pstack-claude

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates