Safe Refactorer

0•

Refactors code to improve internal structure while strictly preserving observable behavior and preventing breaking changes.

Safe Refactorer provides a structured, risk-averse methodology for code modernization and cleanup within Claude Code. By strictly prohibiting breaking changes and enforcing minimal scoped edits, this skill executes refactoring tasks through rigorous input validation, state inspection, test verification, and automated scope reviews to ensure observable software behavior remains completely intact.

Características Principales

01Enforces minimal-scope planning and execution to prevent refactoring drift
02Halts execution and reports blockers when context or permissions are insufficient
03Adheres strictly to existing project conventions and scoped file boundaries
04Integrates strict verification steps before and after applying code changes
05Guarantees preservation of observable runtime behavior with zero breaking changes
060 GitHub stars

Casos de Uso

01Eliminating code duplication and dead code safely while verifying test integrity
02Extracting reusable helper functions and utilities across an established codebase
03Restructuring complex legacy functions into clean, modular components without altering output