What problem does it solve? Working code often accumulates complexity — overlong functions, deep nesting, duplicated logic, and speculative abstractions — that makes it hard to read and maintain. This Skill actually rewrites that code for clarity while guaranteeing behavior never changes, rather than just reporting the issues. ## Core Features & Use Cases - Behavior-preserving refactoring: Extracts functions, flattens nesting with guard clauses, consolidates duplicate branches, and collapses unnecessary indirection — always verified against a passing test suite. - Two-direction simplification: Fixes both under-factored code (too long, too nested, duplicated) and over-factored code (just-in-case abstractions, single-implementation interfaces, pointless wrappers). - Safety-net gating: Requires a runnable test suite before any rewrite, or writes characterization tests first; without coverage it limits changes to mechanically-obvious ones only. - Use Case: A user says "sederhanakan kode ini" about a 200-line function with 5-level nesting. The Skill runs the tests, extracts sub-tasks one pattern at a time, verifies green after each change, and reports before/after complexity metrics. ## Quick Start Ask the assistant to simplify or refactor a specific working function or file while keeping its behavior identical, for example by saying "refactor this module to reduce nesting and remove duplication without changing behavior".