What problem does it solve?
Refactor code to make it easier to read, simpler to maintain, and more consistent with the surrounding codebase without changing what it does.
Core Features & Use Cases
- Preserve functionality: Never change behavior, outputs, side effects, or public interfaces unless explicitly asked for.
- Apply project standards: Match existing conventions, patterns, naming style, and architectural expectations of the codebase.
- Reduce unnecessary complexity: Flatten avoidable nesting, remove redundant abstractions, and prefer the most direct implementation that remains clear.
- Keep variables intentional: Avoid introducing extra state unless it materially improves readability or is reused enough to justify it.
- Improve naming and structure: Use clear variable and function names, and group related logic to read straightforwardly.
- Use case: When code is unclear, perform a readability pass that preserves behavior.
Quick Start
Ask the AI to simplify the most recently modified module to improve readability without changing behavior.