Reviews recently changed code for simplification opportunities and applies fixes directly. Triggers on "simplify", "clean up code", "reduce complexity", "refactor".
From cc-setupnpx claudepluginhub krzemienski/cc-setup --plugin cc-setupThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
Operate only on files changed since the last commit. Apply fixes directly — do not report without fixing.
git diff --name-only HEAD
git diff --name-only --cached
Combine both lists, deduplicate. If the list is empty, check git diff --name-only HEAD~1.
For each changed file, check for these issues in order:
lsp_find_references → 0 results)if (false), code after return)lsp_diagnostics — flag any "unused import" or "declared but not used" warningsx === true → x, !x === false → x)i, j, k are acceptable)data, result, temp, obj, val, stuff, thinglsp_rename to preserve all referencesEdit for targeted line changeslsp_rename for symbol renames (propagates across all files)ast_grep_replace for structural patterns (always dryRun=true first)lsp_diagnostics on the file after each changeAfter all fixes are applied, verify the build still passes:
# Detect build system and run appropriate check
[ -f package.json ] && npm run build 2>&1 | tail -20
[ -f Cargo.toml ] && cargo check 2>&1 | tail -20
[ -f go.mod ] && go build ./... 2>&1 | tail -20
If the build fails, revert the last change and skip that simplification.
## Simplification Summary
Files reviewed: N
Changes applied: N
| File | Change | Lines affected |
|------|--------|----------------|
| path/to/file.ts | Removed unused import `X` | 3 |
| path/to/file.ts | Renamed `data` → `userProfile` | 12, 34, 67 |
| path/to/file.go | Flattened 5-level nesting with guard clause | 45–62 |
Build: PASS