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

principle-minimize-reader-load

/principle-minimize-reader-load

Ogranicza liczbę warstw między pytaniem a odpowiedzią w kodzie i ukryty stan, zwijając jednorazowe opakowania.

Repozytorium
rove ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

86/ 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ść21 / 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 27.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 liczbę warstw między pytaniem a odpowiedzią w kodzie i ukryty stan, zwijając jednorazowe opakowania.

Oryginalny opis (EN)

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.

Jak działa

SKILL.md bez nagłówków drugiego poziomu · 19 linii, 290 słów

Podgląd SKILL.md
---
name: principle-minimize-reader-load
description: "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."
metadata:
  internal: true
  upstream: pstack
---

# Minimize Reader Load

Maintainability is the work a reader must do to understand code. Track two axes:
1. **Layers to trace.** How many indirections sit between the question and the answer.
2. **State to hold.** How much hidden or mutable context the reader must keep in their head.

**Why:** Code is read far more than it is written. 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.

**The pattern:**
- **Collapse layers** that do not earn their keep: wrappers with one caller, adapters with no second implementation, indirection introduced for a future that never came. 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 this reduce reader load somewhere else 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.

Wersje

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

Migawka bazy z 13.11.2026 · wersja paczki 13f991367108 (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

  • 86principle-laziness-protocol
    Podczas refaktoryzacji ogranicza zmiany do minimum, preferując usuwanie kodu nad dodawanie abstrakcji i warstw.
  • 86principle-explain-the-number
    Sprawdza, co ogranicza zmierzoną liczbę i czy nie mierzy czegoś innego niż praca, zanim jej zaufa, zgłosi lub na niej zadziała.

Uwagi i zgłoszenia

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