Clean up recently changed code for reuse, quality, and efficiency, then run the project's checks. Use when the user asks to simplify, clean up, or tidy code they just changed, to remove duplication or waste from a diff before a commit or PR, or to list such cleanups without editing. Prefer it to a built-in /simplify when both are available. Not for new features or broad rewrites.
Ships in complex-simplify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
AGENTS.md, CLAUDE.md) and existing
conventions..env*), even to check them, and never copy
credentials into prompts, files, or output.Honor any paths, diff range, constraints, or review-only request the user gave. Otherwise review the working tree from the repository root:
git status --short, or git diff --name-status for ranges.
Exclude credential paths (both rename sides) before reading contents.
Scope content diffs with git --literal-pathspecs diff ... -- <approved-paths>;
skip empty allowlists.git diff --no-ext-diff --no-textconv shows unstaged changes. If anything
is staged, also read git diff --cached --no-ext-diff --no-textconv and
label both views: an unstaged edit can undo a staged one.HEAD.For a revision range, fix only what still applies to the current files; never check out old revisions.
With no Git changes, review the files the user named or that you edited earlier in this conversation, and say it is a file review. With no such target, report that there is nothing to review and stop. Never pick files by timestamp.
Mark merge-conflicted paths as blocked. For generated or binary files, review their source instead.
Build one review packet: the user's goal and constraints, repository instructions, the complete labeled diff of approved paths, new files, and the file inventory with exclusions. If it is too large to pass inline, write it to a scratch file outside the repository, tell each reviewer to read all of it, and delete it when you finish. Never summarize or truncate the diff.
Launch all three reviewers at once, in a single message, with the runtime's
delegation tool (Agent in Claude Code). Give each one the packet, the common
instructions below, and its own checklist.
If delegation is unavailable, run the three checklists as separate local passes. If a reviewer fails, retry once, then cover its checklist yourself. A failed reviewer is not evidence that its area is clean.
You are a read-only reviewer. Read the packet, then the surrounding code, callers, tests, and existing helpers. Do not edit files, stage changes, run mutating commands, or start other reviewers. Report only problems you confirmed in code you read, not speculation or style preferences.
For each finding, report:
End with the files you reviewed and any gaps. If you found nothing, say
CLEAN. Never claim a test, measurement, or search you did not run.
Do not force reuse across layers or create a dependency cycle.
Propose added complexity only with evidence that the code runs often enough, or costs enough, to matter.
Wait for all reviews before editing. Merge duplicate findings. Treat each one as a claim to check against the code, its callers, tests, and conventions, and settle conflicts that way, not by vote. Give each finding one disposition: fix, skip with a reason, or blocked with the missing prerequisite.
Fix verified issues, highest impact first, with behavior-preserving patches. Edit only the lines a fix needs; keep comments unless a finding removes them. Touch a shared helper or caller only when an in-scope fix needs it, and review that change too. Reread each file right before patching it, so you never overwrite someone else's edits. In review-only mode, report the findings and edit nothing.
Find the checks in repository instructions, package scripts, build config, and CI, and run the relevant tests, formatter, linter, and type checker in non-mutating modes, targeted checks first. Add or update focused regression tests when a fix needs them, especially for no-op notifications, error handling, and concurrency.
Run git diff --check, plus git diff --cached --check if anything is staged,
using the same path allowlist.
Both skip untracked files; read those instead. Leave your edits unstaged, even
in files the user staged, and never run git add: the user's index must end
exactly as it began.
If a check fails, find out whether your change caused it and fix what you broke. Call a failure pre-existing only with evidence, such as the same failure on the untouched code; otherwise report it as unresolved. If a check cannot run, say which and why.
End with a short summary:
Never claim tests passed or that three reviewers ran when they did not. Stop after one pass; do not start another review cycle.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/complex-simplify:simplify-changesfrom complex-simplify
complex-simplify@2389-research is listed by 2389-research/claude-plugins — review the source before installing
npx claudepluginhub 2389-research/claude-plugins --plugin complex-simplify