본문으로 건너뛰기
Skillpedia
일반 코딩15k · #10981

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬