simplify
What it does
It reviews recent uncommitted or staged changes for reuse, clarity and efficiency, then applies straightforward cleanups. It is for developers who want a polish pass before opening a pull request.
When to use it
- ✓When you have just finished an implementation and want a cleanup pass.
- ✓When you want to polish changes before opening a pull request.
- ✓When you ask to simplify or refine what you recently changed.
Skill link
https://github.com/QwenLM/qwen-code/blob/main/packages/core/src/skills/bundled/simplify/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Simplify the changes I just made, and apply the cleanups that are clearly safe.”
5 new skills a week. 1 minute to read.
How it works
The agent finds the changed files from your git state, runs several review passes in parallel, and applies the simple improvements. It focuses on quality and leaves bug hunting to the code review skill.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Does it look for bugs?
No. It focuses on reuse, simplicity and efficiency, and a separate review skill looks for bugs.
What changes does it scan?
Staged and unstaged tracked changes, or uncommitted files that are not ignored by git.
What if nothing has changed?
The agent tells you there are no recent changes to simplify.
Details
Original description by the author
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
Popularity
- GitHub stars
- 29k
- Ranking position
- #9786
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
codegraph
29kHelps your agent analyze an indexed codebase through its call graph, dependencies, dead code, hotspots and semantic search.
qwen-code-claw
29kHelps your agent hand coding tasks to Qwen Code, such as understanding a codebase, fixing bugs, refactoring code or generating a new project.
structured-debugging
29kTeaches your agent a step-by-step way to debug hard bugs: form a hypothesis, add targeted checks, test it and find the real cause before fixing.
tmux-real-user-testing
29kHelps your agent test a terminal app like a real user inside tmux, saving a step-by-step readable log with a screen snapshot of each action.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.