with one click
simplify
Review recent changes for unnecessary complexity, then fix
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Review recent changes for unnecessary complexity, then fix
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Guided git commit workflow — review changes, draft message, stage, commit
Manage context pressure during large codebase work without losing critical state.
Create a pull request with structured summary and test plan
Interactive debugging — reproduce, isolate, trace, fix
Explore a codebase or directory to understand its structure and purpose
Implement a requested code change end-to-end with scoped edits and verification.
| name | simplify |
| description | Review recent changes for unnecessary complexity, then fix |
| when_to_use | After completing a task, to clean up and simplify before delivery |
| required_tools | ["bash","symbol_search"] |
| tags | ["quality","refactor"] |
| activation | {"input_patterns":["(?i)(simplif|clean.?up|refactor|优化|简化)"]} |
${ARGS}
Run git diff to see recent changes. For each changed region: could this be simpler without losing correctness?
Abstractions that serve only one call site. Error handling for conditions that cannot occur. Comments restating the code. Defensive checks the type system already prevents. Variables used once on the next line. Wrapper functions adding no logic. Copy-paste that should be a loop or shared function.
Apply each simplification as a minimal, targeted edit. One concern per change. Verify the simplified code compiles and passes tests.
List what was simplified and why. If something looked complex but was justified, say so — not every pattern needs simplifying.