refactor-safety
CommunityEnsure refactors are safe.
Software Engineering#typescript#refactoring#dependency analysis#module boundaries#code safety#call tracing
Authorguyowen
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: refactor-safety Download link: https://github.com/guyowen/typegraph-mcp/archive/main.zip#refactor-safety Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.