What problem does it solve?
This Skill provides a safety net for code refactoring, ensuring that changes like renaming, moving, or restructuring modules do not introduce unintended consequences or break existing functionality.
Core Features & Use Cases
- Call Chain Tracing: Understand the full definition chain of a symbol to preserve indirection during refactors.
- Circular Dependency Detection: Identify and alert on circular imports that could be affected by changes.
- Module Boundary Analysis: Assess incoming and outgoing dependencies of modules to ensure connectivity is maintained.
- Reference Verification: List all call sites that need updating after a refactor.
- Use Case: Before moving a core service class, use this Skill to confirm that all its consumers are accounted for and that no circular dependencies are created or exacerbated.
Quick Start
Use the refactor-safety skill to check if moving the AuthService from packages/core to apps/gateway is safe.