一键导入
simplify
Review recent changes for unnecessary complexity, then fix
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review recent changes for unnecessary complexity, then fix
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| 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.
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.