simplify
하는 일
최근에 커밋하지 않았거나 스테이징한 변경을 재사용성, 명확성, 효율성 측면에서 검토하고, 명확하게 안전한 정리 작업을 적용합니다. pull request를 열기 전에 마무리 점검을 하려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓구현을 막 마쳤고 정리 작업을 하고 싶을 때.
- ✓pull request를 열기 전에 변경 사항을 다듬고 싶을 때.
- ✓최근 변경한 내용을 단순화하거나 다듬어 달라고 요청할 때.
스킬 링크
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/simplify/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“방금 한 변경 사항을 단순화하고, 명확하게 안전한 정리 작업만 적용해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 git 상태에서 변경된 파일을 찾고, 여러 검토 과정을 병렬로 실행한 뒤 간단한 개선 사항을 적용합니다. 버그를 찾는 일은 코드 리뷰 스킬에 맡기고, 이 스킬은 품질에 집중합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Simplify Recent Changes
You are running a structured cleanup workflow over recent code changes. Your goal is not just to comment on the code, but to safely improve it.
Step 1: Identify the review scope
Determine which files and changes to review.
- First inspect the current git state.
- If there are staged changes, review against
HEADso both staged and unstaged tracked changes are included. - Otherwise review the current uncommitted diff.
- If there is no git diff, fall back to
git ls-files --modified --others --exclude-standardso the scope respects.gitignore(this keeps build output,node_modules, and other ignored paths out of the cleanup). - If that is still empty, fall back to files edited in this conversation.
- If you still cannot identify a meaningful scope, stop and tell the user there are no recent changes to simplify.
Preferred commands:
git diff --name-onlygit diff --staged --name-onlygit diff HEAD --name-onlygit diffgit diff HEADgit status --short
Use git diff HEAD whenever staged changes exist. Otherwise use git diff.
Step 2: Launch three review passes in parallel
Use the agent tool and launch all review passes in a single response so they run concurrently. Set subagent_type: "general-purpose" and run_in_background: false on every call — each pass must return its findings inline. Do NOT fork them: never set subagent_type: "fork". A fork runs fire-and-forget and never returns its findings, so there would be nothing to aggregate in Step 3. Each pass must receive the same review scope and diff command. These passes are read-only: each one inspects and reports findings only and must not modify files — all edits happen later in Step 4.
Keep each review prompt short and focused. Do not paste the full diff into the prompt. Tell each pass to read the diff itself and inspect only files relevant to its findings.
Pass 1: Code Reuse Review
Look for opportunities to reduce duplication and reuse existing code:
- existing utilities or helpers that should be reused
- duplicated logic introduced in new code
- inline logic that should delegate to an existing abstraction
- ad-hoc helpers for string, path, env, parsing, or type checks when a project utility already exists
Pass 2: Code Quality Review
Look for maintainability issues:
- copy-paste variants that should be unified
- parameter sprawl or awkward APIs
- redundant state or indirection
- abstraction leaks
- stringly-typed code that should be modeled more clearly
- unnecessary nesting
- unnecessary comments that explain what instead of why
- naming or structure that does not match surrounding code
Pass 3: Efficiency Review
Look for wasteful work and unnecessary overhead:
- repeated work that can be memoized, cached, or removed
- serial work that can be parallelized safely
- unnecessary scans, allocations, reads, or traversals
- hot-path blocking work
- redundant no-op updates
- overly broad operations when a narrower one would work
- existence-check patterns that introduce TOCTOU style waste or risk
Step 3: Aggregate findings
Wait for all three passes to finish, then merge overlapping findings.
Prioritize fixes that are:
- low risk
- local in scope
- clearly aligned with existing project patterns
- easy to validate with tests or targeted commands
Do not force a cleanup if it would require speculative architectural changes.
Step 4: Apply straightforward improvements
Directly implement safe cleanup improvements.
Examples of good automatic fixes:
- replace duplicated logic with an existing helper
- remove redundant code, but only after a repository-wide search confirms it has no remaining callers
- simplify conditionals or control flow
- tighten loops or repeated work
- reduce unnecessary state or wrapper code
- remove low-value comments
- align code with nearby conventions
Skip items that are uncertain, risky, or too invasive. Do not spend time debating rejected findings; simply move on.
Step 5: Verify the cleanup
After making changes:
- Run focused tests for the changed area when they exist.
- Run the relevant project quality checks you can identify for the touched code.
- If there are no applicable tests, at least run a targeted build, typecheck, or lint command that covers the edited files.
Prefer targeted verification over whole-repo commands unless the project only exposes repo-wide checks.
Additional focus
If the user supplied extra i
자주 묻는 질문
버그도 찾나요?
아닙니다. 재사용성, 단순성, 효율성에 집중하며, 버그는 별도의 리뷰 스킬이 찾습니다.
어떤 변경 사항을 살펴보나요?
스테이징된 변경과 스테이징되지 않은 추적 변경, 그리고 git이 무시하지 않는 커밋되지 않은 파일을 살펴봅니다.
바뀐 내용이 없으면 어떻게 하나요?
에이전트가 단순화할 최근 변경 사항이 없다고 알려 줍니다.
상세 정보
작성자의 원본 설명
Review recent code changes for reuse, code quality, and efficiency, then directly apply straightforward cleanup improvements. Use when the user wants a post-implementation cleanup pass, pre-PR polish, or asks to simplify/refine recent changes. Invoke with `/simplify` or `/simplify <focus>`.
repo: QwenLM/qwen-code
인기도
- GitHub 스타
- 29k
- 순위
- #9786
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
codegraph
29k에이전트가 색인된 코드베이스를 호출 그래프, 의존성, 죽은 코드, 핫스팟, 의미 검색으로 분석하도록 돕습니다.
qwen-code-claw
29k에이전트가 코드베이스 이해, 버그 수정, 리팩터링, 새 프로젝트 생성 같은 코딩 작업을 Qwen Code에 맡기도록 돕습니다.
structured-debugging
29k에이전트가 어려운 버그를 디버깅하는 단계별 방법을 가르칩니다. 가설을 세우고, 대상 확인을 추가하고, 시험해서 실제 원인을 찾은 뒤 고칩니다.
tmux-real-user-testing
29k에이전트가 tmux 안에서 실제 사용자처럼 터미널 앱을 테스트하고, 각 동작마다 화면 캡처가 담긴 읽기 쉬운 로그를 저장하도록 돕습니다.