principle-build-the-lever
하는 일
에이전트에게 반복 가능한 작업을 검토자가 다시 실행해 볼 수 있는 도구로 자동화하는 규칙을 제공합니다. 대규모, 반복적, 검증이 어려운 변경을 다루는 엔지니어를 위한 스킬입니다.
사용하는 경우
- ✓같은 방식으로 여러 파일을 고쳐야 하는 변경일 때.
- ✓검토자가 다시 실행해 확인할 수 있는 분석이나 검사가 필요할 때.
- ✓스크립트가 안정적으로 할 수 있는 일을 손으로 하려고 할 때.
스킬 링크
https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-build-the-lever/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 API의 이름을 파일 200개에 걸쳐 바꿔야 합니다. 하나씩 편집하지 말고, 다시 실행할 수 있는 스크립트를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 패턴을 익히려고 첫 번째 단위를 손으로 처리한 뒤, codemod 같은 재실행 가능한 도구를 만듭니다. 그 도구를 같은 단위에 다시 실행해 손으로 한 결과와 비교하며 증명합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Build the Lever
When the work isn't trivial, build the tool that does it instead of doing it by hand.
A codemod, generator, or script does the work the same way every time and reruns for free. The tool is one artifact a reviewer can read and rerun to check the work. Hand-done changes can only be re-verified by redoing them. A deterministic script turns "trust me" into "run this".
Default to building the lever. Skip it only when the task is trivial, a couple of obvious edits you can see at a glance.
- Do the first unit by hand to learn the recipe, then build the tool. Prove it by rerunning it on that unit and diffing against your hand-done version. Make the lever safe to rerun.
- Codemod or script for edits, generator for repetitive files, a dump-to-sqlite query for analysis, a rerunnable check for verification.
- A deterministic lever beats fan-out. If the tool can process every unit in one pass, run it yourself. Don't fan out delegates to hand-apply what a script can do.
- When you fan work out to subagents, write the lever as a skill they all read: the recipe, the verification contract, and the do-not-touch fences in one artifact. Keep it outside the delegates' write scope so they can't quietly edit the contract.
- Applying this principle produces a file. If you cited it and there is no codemod, script, generator, or delegate skill in the diff, you didn't apply it.
- Commit the lever when the work outlives the session.
The bar is triviality, not repetition. A one-off still earns a lever when the lever is what makes the work checkable. Per the Laziness Protocol, build the smallest script that does or proves the job, never a framework.
Distinct from Encode Lessons in Structure, which makes a recurring instruction a durable guardrail. This is throughput and reviewability on the work in front of you. For scripting the verification itself, see Prove It Works.
자주 묻는 질문
도구를 만들 필요가 없는 경우는 언제인가요?
간단하고 뻔한 편집 몇 개처럼 사소한 작업이라면 손으로 해도 괜찮습니다.
스크립트가 수작업보다 나은 이유는?
매번 같은 방식으로 실행되고, 검토자가 직접 실행해 작업을 확인할 수 있기 때문입니다.
보조 에이전트는 어떤가요?
스크립트 하나로 작업 전체를 한 번에 끝낼 수 있다면, 작업을 보조 에이전트에게 나누기보다 스크립트를 쓰는 편이 낫습니다.
상세 정보
작성자의 원본 설명
Apply to any non-trivial work, not just bulk work: edits, migrations, analyses, checks. Build the tool that does it or proves it (codemod, script, generator, or a skill your subagents follow) instead of working by hand. The tool is the artifact a reviewer can rerun.
repo: cursor/plugins
인기도
- GitHub 스타
- 15k
- 순위
- #10975
- 라이선스
- —
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
advisor
15k사용자가 켜 두면, 큰 결정 전이나 오류에 막혔을 때처럼 핵심 시점에 에이전트가 더 강력한 두 번째 모델에게 자문을 구하도록 합니다.
check-agent-compatibility
15kAI 코딩 에이전트가 저장소를 시작하고, 검증하고, 문서화할 수 있는지 전체 점검해, 하나의 호환성 점수와 주요 문제를 돌려줍니다.
cli-for-agents
15kAI 에이전트가 프롬프트 없이 실행할 수 있도록 명령줄 도구를 설계하거나 검토하며, 명확한 도움말과 예시를 담도록 에이전트를 가르칩니다.
continual-learning
15k과거 채팅을 검토하는 일을 전담 메모리 업데이터에게 맡겨서 AGENTS.md 메모를 최신 상태로 유지합니다.