Automatic Simplification
Reduce the complexity of generated code without losing functionality.
Language models tend to produce verbose code. Unnecessary abstraction layers, superfluous intermediate variables, overly complex patterns for the problem at hand.
The /simplify skill intervenes after implementation. It analyzes the produced code and restructures it to reduce complexity: removing premature abstractions, simplifying loops, replacing complex patterns with more readable equivalents.
The result is code that does exactly the same thing, but is shorter, more readable, and easier to evolve. It's the automated equivalent of a code review focused on simplicity.
Analysis
The produced code is analyzed to identify complexity zones: nesting depth, function length, parameter count, repeated patterns.
Proposals
The skill generates candidate simplifications, each with an explanation of the improvement gained.
Verification
Each simplification is verified to ensure it doesn't change behavior (same inputs, same outputs).
Application
Validated simplifications are applied. The original code is preserved in comments or history.
Report
A summary of changes is produced: lines saved, cyclomatic complexity reduction, simplified patterns.
Post-feature refactoring
After adding a complex feature, /simplify cleans up the added code and reduces its size by 30% on average.
Legacy code
An agent works on an existing file and adds code that integrates poorly. /simplify harmonizes the style and simplifies interactions.
Rapid prototyping
An agent generates a functional prototype in rapid mode. /simplify transforms it into production-quality code.
featurePages.simplify.config
- Available for all EasyClaw v2 agents
- Manual invocation via /simplify (no automatic trigger by default)
- Supports TypeScript, Python, Go, and any language supported by the underlying model
