Agent Skills
› codewhale-hq/Codewhale
› simplify
simplify
GitHub在理解代码行为后,通过小步验证保持功能不变的前提下降低复杂度,提升清晰度。严禁删除安全检查或混合行为变更重构,确保清理与正确性修复分离。
Trigger Scenarios
用户要求简化代码结构
代码已稳定但存在冗余复杂性
需要进行非破坏性的代码清理
Install
npx skills add codewhale-hq/Codewhale --skill simplify -g -y
SKILL.md
Frontmatter
{
"name": "simplify",
"invocation": "model+user",
"description": "Improve clarity and reduce needless complexity after behavior is understood; preserve behavior and keep cleanup separate from correctness fixes."
}
Simplify
When to use
Use after behavior is understood and the user wants clarity or less complexity.
Non-goals
- Do not mix cleanup with speculative refactors that change behavior.
- Do not “simplify” by deleting necessary safety checks.
Workflow
- Confirm current behavior with tests or reproduction.
- Reduce complexity in small, reviewable steps.
- Keep behavior-preserving verification green.
Version History
- b0e4926 Current 2026-07-24 17:43


