principle-minimize-reader-load
하는 일
사람이 코드를 쉽게 읽을 수 있도록 유지하는 규칙을 에이전트에 제공합니다. 래퍼, 간접 참조, 공유 상태 때문에 코드를 추적하기 어려운 팀을 위한 스킬입니다.
사용하는 경우
- ✓질문에서 답까지 코드를 추적하기 어려울 때.
- ✓호출자가 하나뿐인 래퍼나, 두 번째 쓰임이 없는 어댑터가 있을 때.
- ✓전역 상태나 변경 가능한 상태 때문에 동작을 예측하기 어려운 경우.
스킬 링크
https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-minimize-reader-load/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 모듈에는 같은 일을 하는 래퍼 계층이 다섯 겹 있습니다. 새 개발자가 따라갈 수 있도록 단순하게 정리해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 질문에서 답까지 이어지는 계층 수와, 독자가 추적해야 하는 숨은 상태를 셉니다. 실익보다 비용이 큰 래퍼를 합치고, 순수 함수를 선호하며, 상태의 범위를 필요한 가장 작은 범위로 좁힙니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
코드 줄 수가 목표인가요?
아닙니다. 이 스킬은 줄 수나 복잡도 점수보다 독자의 노력이 더 중요하다고 말합니다.
언제 계층을 없애야 하나요?
실제 이익 없이 읽는 노력만 더할 때입니다. 호출자가 하나뿐인 래퍼가 그런 예입니다.
상태는 어떻게 다루나요?
필드, 모듈 상태, 전역 변수보다 순수 함수와 지역 값을 선호합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 15k
- 순위
- #10981
- 라이선스
- —
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
advisor
15k사용자가 켜 두면, 큰 결정 전이나 오류에 막혔을 때처럼 핵심 시점에 에이전트가 더 강력한 두 번째 모델에게 자문을 구하도록 합니다.
check-agent-compatibility
15kAI 코딩 에이전트가 저장소를 시작하고, 검증하고, 문서화할 수 있는지 전체 점검해, 하나의 호환성 점수와 주요 문제를 돌려줍니다.
cli-for-agents
15kAI 에이전트가 프롬프트 없이 실행할 수 있도록 명령줄 도구를 설계하거나 검토하며, 명확한 도움말과 예시를 담도록 에이전트를 가르칩니다.
continual-learning
15k과거 채팅을 검토하는 일을 전담 메모리 업데이터에게 맡겨서 AGENTS.md 메모를 최신 상태로 유지합니다.