Skip to content
Skillpedia
General coding15k · #10981

principle-minimize-reader-load

What it does

Gives the assistant a rule for keeping code easy for people to read. It is for teams whose code is hard to trace because of wrappers, indirection or shared state.

When to use it

  • ✓When code is hard to trace from question to answer.
  • ✓When a wrapper has only one caller or an adapter has no second use.
  • ✓When global or mutable state makes behavior hard to predict.

Skill link

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-minimize-reader-load/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-minimize-reader-load/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“This module has five layers of wrappers that all do the same thing. Simplify it so a new developer can follow it.”

5 new skills a week. 1 minute to read.

How it works

The assistant counts the layers between a question and its answer, and the hidden state a reader must track. It collapses wrappers that cost more than they save, prefers pure functions, and narrows state to the smallest useful scope.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Minimize Reader Load

Maintainability 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. Working memory is finite for readers too.

  • 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.
  • Make adjacent layers change the abstraction. A layer that repeats the same methods and arguments adds reader load without compression. Collapse pass-through layers.
  • 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.
  • 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.
  • Name the invariant at the boundary, not in every consumer, so the reader learns it once.
  • Before adding a layer or a piece of state, ask: does it reduce reader load elsewhere by at least as much?

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

FAQ

Are line counts the goal?

No. The skill says reader effort matters more than lines of code or complexity scores.

When should a layer be removed?

When it adds reader effort without real benefit, such as a wrapper with a single caller.

What about state?

Prefer pure functions and local values over fields, module state and globals.

Details

Original description by the author

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.

repo: cursor/plugins

Popularity

GitHub stars
15k
Ranking position
#10981
License
—
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills