What problem does it solve?
This Skill helps you determine whether a proposed code change is a true refactor or an accidental behavior change. It gives you a structured way to define what must stay invariant, identify who can observe changes, and prevent hidden contract breaks during cleanup or migration work.
Core Features & Use Cases
- Behavior-Preserving Refactor Analysis: Maps public boundaries, observers, side effects, persisted formats, and implicit contracts that must remain stable.
- Cut vs. Glue Review Framework: Classifies changes as safe deformations versus contract-breaking cuts or collapsed distinctions that alter behavior.
- Verification Planning: Identifies the exact tests, properties, and shadowing strategies needed to prove equivalence before and after refactoring.
- Use Cases: Review a pull request labeled pure refactor, migrate callers to a new API shape, remove accidental abstractions, or estimate the blast radius of internal restructuring.
Quick Start
Ask the topological-refactoring skill to evaluate your planned refactor by listing the boundary, observers, essential versus accidental abstractions, and the tests that must keep passing.