Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

principle-minimize-reader-load

/principle-minimize-reader-load

Ogranicza pośrednie warstwy i ukryty zmienny stan, które czytelnik musi śledzić, przy pisaniu trudnego kodu i tekstu dla ludzi.

Repozytorium
endostack ↗
Licencja
MIT
Ostatnia zmiana repozytorium
29.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 29.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Ogranicza pośrednie warstwy i ukryty zmienny stan, które czytelnik musi śledzić, przy pisaniu trudnego kodu i tekstu dla ludzi.

Oryginalny opis (EN)

Use when shaping or reviewing code that is hard to follow, deciding whether new indirection or state is worth it, or writing output for people. Reduce the indirections and hidden mutable state a reader has to track.

Jak działa

  1. When it applies
  2. What to do
  3. The failure it prevents
  4. Done when
Sekcje z nagłówków SKILL.md, w oryginale · 35 linii, 391 słów
Podgląd SKILL.md
---
name: principle-minimize-reader-load
description: Use when shaping or reviewing code that is hard to follow, deciding whether new indirection or state is worth it, or writing output for people. Reduce the indirections and hidden mutable state a reader has to track.
disable-model-invocation: true
---

# Minimize reader load

Measure maintainability by how hard a reader must work to understand the code. Two separate axes set that effort: the number of hops between a question and its answer, and the amount of hidden or changeable state the reader has to keep in mind.

## When it applies

Reviewing or shaping hard-to-follow code, deciding whether new indirection or new state is justified, and writing anything people will read, including verdicts and reports. It is a lens you always hold, not a procedure with preconditions.

## What to do

1. Treat line counts, cyclomatic complexity, and architectural tidiness as proxies. Reader effort is the target.
2. Guard both axes. They vary independently. A flat file full of globals can be as hard to read as a deep stack of adapters.
3. Delete layers whose cost exceeds their benefit: wrappers with one caller, interfaces with one implementation, and indirection added for a future that never came. Inline them.
4. Require each layer to change the abstraction. A layer that forwards the same methods with the same arguments is pass-through, so collapse it.
5. Prefer interfaces that hide meaningful decisions. A broad interface that conceals little forces readers to learn its surface and its internals as well.
6. Narrow the scope of state. From most to least preferred: pure functions that return values instead of mutating, then local variables, then object fields, then module-level state, and globals last. Compute values instead of keeping copies synchronized.
7. State each invariant one time, where data enters, and let consumers rely on it.
8. Any new indirection or state must remove at least as much reader load somewhere else as it introduces.
9. Apply the half-minute test: a newcomer should be able to say where a value comes from and what can change it in about thirty seconds.

Reader load is a security property. A permission check that a reviewer has to trace through four decorators and a mutable global request context is a check that reviewers stop verifying. An authorization decision a reader can find and confirm in one function is one they will actually audit.

## The failure it prevents

Deep wrapper stacks, hidden global state, and invariants restated in every consumer.

## Done when

The half-minute test passes.

[principle-guard-the-context-window](../principle-guard-the-context-window/SKILL.md) is the agent analog of this principle.

Related: [principle-guard-the-context-window](../principle-guard-the-context-window/SKILL.md), [principle-laziness-protocol](../principle-laziness-protocol/SKILL.md), [principle-boundary-discipline](../principle-boundary-discipline/SKILL.md).

Wersje

RepozytoriumWynikLicencja
Ta strona · requie/endostack90MIT
chmonitor/chmonitor86GPL-3.0
xinhi6716/axiom-atropos86MIT
workerstack/clients86MIT
jirayusueb/egm-stack86Apache-2.0
robansuini/pstack-codex86MIT
sma1lboy/rove86MIT
Sup-Film/pstack-omp-lean86MIT
v1truv1us/ai-eng-system86MIT

Migawka bazy z 13.11.2026 · wersja paczki ba6f7f3f4606 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

Brak podobnych skilli w bazie.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.