#What it does
The /simplify skill is a post-implementation cleanup pass. It reviews your recent changes and simplifies them β finding reuse opportunities, reducing complexity, and improving readability.
#How to use
bash
/simplifyRun this after completing a feature or making significant changes.
#What it looks for
- Duplication β Code that could share a helper or utility
- Over-engineering β Abstractions that aren't earning their complexity
- Dead code β Unused variables, unreachable branches, stale imports
- Naming β Variables or functions that could be clearer
- Structure β Functions that do too many things, deeply nested logic
#Philosophy
The skill follows the principle: the best code is the code you don't write. It prefers:
- Fewer files over more files
- Inline logic over premature abstractions
- Standard library over custom utilities
- Three similar lines over a premature helper
#Example
diff
- const isValid = value !== null && value !== undefined && value !== '';
+ const isValid = Boolean(value);