ce-simplify-code
하는 일
이 스킬은 기존 코드의 동작을 바꾸지 않으면서 더 읽기 쉽고 유지보수하기 쉽게 만듭니다. 코드를 작성한 뒤 리뷰 전에 정리하려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓기능 작성을 마치고 리뷰 전에 코드를 정리하고 싶을 때.
- ✓프로젝트에서 목적 없는 추가 코드, 테스트, 주석이 있는지 확인하고 싶을 때.
- ✓버그를 고쳐야 하는 경우. 이 스킬은 코드 정리만 하므로 맞지 않습니다.
스킬 링크
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-simplify-code/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“오늘 바꾼 코드를 단순화하고, 아무것도 깨지지 않도록 해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 범위 안의 코드를 읽고, 더 명확하거나 짧아질 수 있는 부분을 찾아, 같은 동작을 유지하면서 그 변경을 적용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Simplify code for clarity, reuse, quality, and efficiency, and prune tests and comments that carry no value, while preserving exact behavior. Prioritize readable, explicit code over compact code — fewer lines is not the goal.
Mode
Strip a mode:pipeline token and every proof-test:<path> token from the input before reading the rest as the scope. The proof-test path is context for Step 3, never scope; a caller may pass several.
- Pipeline when
mode:pipelineis present, or when no one asked for this run in their own current message: a step of another skill, or a run the agent starts itself, such as at a completion boundary. Work only on the current work, apply fixes without asking or waiting, and return the Step 5 summary to the caller. That summary is for the caller's record; never paste it into a commit, PR body, or other artifact. - Standalone when the user's own current message asked for this run. Their request sets the scope and focus. Report findings before editing anything, unless the request says to just fix them. Read
references/standalone-report.mdnow, and again before applying any reported finding.
Step 1: Identify scope
Resolve the scope in this order:
- User-named scope is authoritative; do not widen it. In standalone mode it may be the whole repo, an area, or a path.
- Otherwise, in git, use the current branch versus its base. Without a usable base, use staged and unstaged changes (
git diff HEAD). - Outside git or without a diff, use files the user named or that were edited earlier in the conversation.
In pipeline mode the scope is what the caller passed, else the branch diff. Within it, prune only tests and comments the current work added or changed.
If none of the above produces a non-empty scope, pipeline mode reports "nothing to simplify" and returns. Standalone mode asks the user what to simplify, as references/standalone-report.md describes.
Preflight. If the scope has no substantive human-authored code — only documentation, generated or vendored files, dependencies or lockfiles, or mechanical churn — report that there is nothing to simplify and stop without reviewers. For mixed scopes, retain only the code and its tests. This check is about the kind of change, never its size: explicit small scopes still run, and any size or cost threshold is the caller's to set.
When the platform's task-tracking capability is available, show the review, apply, and verification outcomes without creating one task per reviewer. Otherwise continue without simulating a task list in chat.
Step 2: Launch review agents in parallel
Dispatch generic subagents via the platform's subagent primitive (Agent/Task in Claude Code, spawn_agent in Codex) where available; otherwise run the reviews inline or serially. For each reviewer, read its prompt asset from this skill's directory and pass the full file content as the subagent's prompt, together with the resolved scope (the full diff or file set), the mode, any proof test, the user's constraints, and the project standards governing the scope (or their file paths):
references/personas/code-reuse-reviewer.mdreferences/personas/code-quality-reviewer.mdreferences/personas/efficiency-reviewer.mdreferences/personas/test-value-reviewer.md, when the scope holds testsreferences/personas/comment-reviewer.md, when the scope holds comments
A standalone request about only tests or only comments runs only that reviewer.
Do not paraphrase these rubrics from memory. Read each file and pass it verbatim, or the reviewer loses the rules that keep the pass behavior-preserving.
Read references/reviewer-dispatch.md before dispatching; it covers a full harness, releasing review agents, and the permission mode.
Model selection. Use the platform's balanced mid-tier model for these reviewers when the current harness exposes a known override. In Claude Code this is the Sonnet class. In Codex, apply this tier only when the active dispatch primitive exposes an explicit model or custom-agent selector; task wording alone does not select a different model. Otherwise omit the override and inherit the parent model -- a working pass on the parent model beats a broken dispatch.
If the user's or project's active instructions or the live prompt name a model for this subagent, use that model instead of the default tier above. They can name it by the subagent's tier, by its prompt-asset name, or for the subagents bei
자주 묻는 질문
이 작업이 코드 동작을 바꾸나요?
동작은 정확히 그대로 두고, 코드를 더 명확하게 하거나 효율적으로만 만들도록 설계되었습니다.
버그도 고치나요?
아닙니다. 이 스킬은 정리에 집중하며, 버그 수정은 별도의 디버깅 스킬이 맡습니다.
프로젝트의 일부만 볼 수 있나요?
네. 폴더나 경로를 지정할 수 있으며, 작업은 그 범위 안에 머무릅니다.
상세 정보
작성자의 원본 설명
Simplify code for clarity, reuse, quality, and efficiency while preserving behavior, and prune tests and comments that carry no value. Use after implementation and before review, or to audit tests or comments in any part of a repo; use ce-debug for bugs.
인기도
- GitHub 스타
- 26k
- 순위
- #10046
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
ce-babysit-pr
26k에이전트가 리뷰 댓글, 실패한 검사, 오래된 브랜치를 시간에 걸쳐 처리하며 열린 GitHub 풀 리퀘스트가 병합 상태로 나아가도록 돕습니다.
ce-bakeoff
26k에이전트가 한 문제에 대해 여러 경쟁 해결책을 만들고 비교한 뒤, 가장 강한 부분을 합쳐 하나의 추천 방식으로 정리하도록 돕습니다.
ce-brainstorm
26k에이전트가 막연한 아이디어를 짧은 안내 대화를 거쳐, 작업을 시작하기 전에 명확하고 알맞은 크기의 요구 사항으로 바꾸도록 돕습니다.
ce-code-review
26k에이전트가 지정된 코드 변경이나 풀 리퀘스트를 버그, 회귀, 누락된 테스트, 표준 문제 측면에서 검토하고, 명확한 발견 사항을 보고하도록 돕습니다.