What problem does it solve? It guides safe, behavior-preserving refactoring of a concrete code target, ensuring internal restructuring never changes what supported callers or external consumers observe, and routing out-of-scope requests to the right workflow before any write happens. ## Core Features & Use Cases - Pre-write triage: Classifies requests before writing, handing pure renames to rename-code, open-ended architecture exploration to improve-codebase-architecture, and substantive interface decisions to codebase-design, while rejecting out-of-scope behavior or contract changes. - Boundary establishment: Identifies supported call boundaries, invariants, external contracts, affected callers, owners of generated surfaces, and the minimum preservation evidence needed before restructuring. - Evidence-based verification: Runs discriminating preservation checks and owner-required surface checks after restructuring, returning completed, failed, blocked, handed-off, or out-of-scope outcomes with a structured handoff. - Use Case: You want to split a bloated internal module into cohesive units without changing its public API. The Skill confirms the boundaries, restructures the internals, migrates internal callers, retires dead code, and proves behavior is unchanged with targeted tests. ## Quick Start Ask the agent to refactor a specific module or class to remove a named structural problem while keeping its public behavior and external contracts unchanged.