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.

1

Analysis

The produced code is analyzed to identify complexity zones: nesting depth, function length, parameter count, repeated patterns.

2

Proposals

The skill generates candidate simplifications, each with an explanation of the improvement gained.

3

Verification

Each simplification is verified to ensure it doesn't change behavior (same inputs, same outputs).

4

Application

Validated simplifications are applied. The original code is preserved in comments or history.

5

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
Automatic Simplification -- EasyClaw v2