refactor-safely
Installation
SKILL.md
Refactor Safely
Required Skills
Load these skills based on refactor scope (see Steps 3, 5, 6 for conditional use):
framework:knowledge-priming-- Load project context so the refactor grounds in the real codebase. (always)framework:context-anchoring-- Find and load the feature's context doc; capture approved plans and decisions in it. (always)framework:learning-harvest-- Load prior operational learnings at session start; harvest new ones at session end. (always)framework:collaborative-judgment-- Surface trade-offs in structure, seams, and migration sequence instead of silently assuming. (always)framework:clean-code-- Readability, responsibility boundaries, local craft. (always)framework:test-quality-- Characterization tests and the safety net. (always)framework:design-first-- Target-structure planning for significant structural changes. (conditional: Step 3)framework:architecture-- Layer placement and dependency direction. (conditional: responsibilities move across layers in Steps 5/6)framework:domain-driven-design-- Aggregate boundaries and domain behavior. (conditional: domain rules move or sharpen in Step 6)framework:secure-coding-- Trust bounds, authorization, sensitive data handling. (conditional: security-sensitive code touched in Step 6)