What problem does it solve?
Complex code often becomes hard to read due to deep nesting, unclear names, and scattered logic. This Skill provides a structured approach to flatten control flow, extract inline complexity, rename identifiers for clarity, group related lines, and order code to improve maintainability without changing behavior.
Core Features & Use Cases
- Flatten nesting with guard clauses and early exits to reduce indentation and improve readability.
- Extract inline complexity into named variables or small helpers to simplify the call sites.
- Rename ambiguous identifiers to clearer, context-appropriate names.
- Group related statements into cohesive blocks and order them by importance to aid scanning.
- Use during refactors of legacy or new modules to improve long-term maintainability.
Quick Start
Submit the code you want cleaned up and say improve readability to apply the six transformations.