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>`.
79
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
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.
Determine which files and changes to review.
HEAD so both staged and unstaged tracked changes are included.git ls-files --modified --others --exclude-standard so the scope respects .gitignore (this keeps build output, node_modules, and other ignored paths out of the cleanup).Preferred commands:
git diff --name-onlygit diff --staged --name-onlygit diff HEAD --name-onlygit diffgit diff HEADgit status --shortUse git diff HEAD whenever staged changes exist. Otherwise use git diff.
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.
Look for opportunities to reduce duplication and reuse existing code:
Look for maintainability issues:
Look for wasteful work and unnecessary overhead:
Wait for all three passes to finish, then merge overlapping findings.
Prioritize fixes that are:
Do not force a cleanup if it would require speculative architectural changes.
Directly implement safe cleanup improvements.
Examples of good automatic fixes:
Skip items that are uncertain, risky, or too invasive. Do not spend time debating rejected findings; simply move on.
After making changes:
Prefer targeted verification over whole-repo commands unless the project only exposes repo-wide checks.
If the user supplied extra instructions after /simplify, treat them as additional review focus and prioritize them alongside the default dimensions.
The raw user invocation appears below when present. Use it to extract any extra focus such as performance, duplication, rendering, API clarity, testability, or naming consistency.
8878264
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.