simplify-code

Reviews recent code changes with four parallel reviewers and applies safe cleanup fixes.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/CHENHUI-X/toolbox --skill simplify-code-chenhui-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplify-code
Source: https://github.com/CHENHUI-X/toolbox/tree/main/official-skills/software-development/simplify-code
Command: npx skills add https://github.com/CHENHUI-X/toolbox --skill simplify-code-chenhui-x

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Recent code changes often accumulate duplication, needless complexity, wasted work, and shallow band-aid fixes that a single broad review misses. This Skill runs four focused reviewers in parallel over your diff, aggregates their findings, and applies the fixes worth applying without drifting into bug hunting. ## Core Features & Use Cases - Parallel Four-Angle Review: Launches reuse, quality, efficiency, and altitude reviewers concurrently via batch delegation, each searching the codebase for evidence with file:line citations. - Risk-Tiered Application: Auto-applies SAFE fixes (unused imports, dead code), verifies CAREFUL refactors with tests, and flags RISKY changes (API renames, N+1 restructuring) for human decision. - Flexible Scoping: Supports focus filters (reuse, quality, efficiency, altitude), dry-run report-only mode, and diff scoping to staged changes, last commit, branch, or specific files. - Use Case: After finishing a feature branch, ask to simplify your changes; the Skill reviews the full diff, removes duplicated logic, flattens nested conditionals, and reports a deeper infrastructure fix it recommends as a follow-up. ## Quick Start Ask the assistant to simplify my recent changes and apply the safe fixes it finds.

Frequently Asked Questions about simplify-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up my recent code changes automatically?

Ask to simplify your changes and the Skill captures your git diff, runs four parallel reviewers for reuse, quality, efficiency, and altitude, then applies safe fixes and verifies them with tests. You can scope it to staged changes, the last commit, or specific files.

What does the simplify code review check for?

It checks four angles: duplicated functionality that existing utilities already provide, quality issues like redundant state and nested conditionals, efficiency problems like N+1 patterns and silent failures, and band-aid fixes layered on shared infrastructure instead of root causes.

Can I run a code cleanup review without changing any files?

Yes, request a dry run by saying simplify but do not change anything. The four reviewers still run and present findings grouped by risk tier, but nothing is applied until you approve.

Does this skill work without subagent delegation support?

Yes, when delegation is unavailable it runs all four reviewer angles sequentially in the current context with the same search standards. The final summary states clearly that it was a single-pass inline review rather than the parallel fan-out.

When should I not use automated code simplification?

Do not use it for correctness bug hunting, which belongs in a dedicated code review pass, or on very large diffs over roughly 2000 lines without scoping down first. Public API renames and risky restructuring are flagged for human review rather than auto-applied.