simplify
Installation
SKILL.md
Simplify
Use this workflow after a feature is functionally complete but before review or merge, to remove avoidable complexity introduced during implementation.
Workflow
- List changed files:
git diff origin/main...HEAD --statandgit diff origin/main...HEAD --name-only. - For each meaningful file, ask:
- Is there an existing helper, type, or constant in the codebase that does this already? Search before adding.
- Are there abstractions or layers that the change does not actually need yet?
- Is there error handling for cases that cannot occur?
- Are there comments restating what the code already says?
- Are there unused variables, imports, or branches?
- Apply minimal, behavior-preserving cleanups. Do not rewrite working code for stylistic reasons.
- Re-run targeted tests for each touched module to confirm behavior is unchanged.