refactor
SolidRestructure existing code without changing its behavior — extract, rename, inline, split, deduplicate, reshape — with tests holding behavior fixed before and after. Scoped to structure only: no new features, no bug fixes, no behavior changes. Use when the user says "refactor", "clean up the structure", "extract this", "split this file", "untangle", or "restructure".
Install
Quality Score: 87/100
Skill Content
Details
- Author
- genai-io
- Repository
- genai-io/san
- Created
- 2 years ago
- Last Updated
- today
- Language
- Go
- License
- Apache-2.0
Similar Skills
Semantically similar based on skill content — not just same category
refactor
Change structure while holding behavior constant. Use when cleaning up, restructuring, or reducing complexity without adding features or fixing bugs. Triggers: "refactor", "clean up", "restructure", "reduce complexity", "tidy this".
refactoring
Improve code structure in small, always-green steps without changing behavior. Use when asked to clean up, simplify, restructure, or de-duplicate working code.
refactoring-patterns
Improve code structure without changing behavior — the discipline of small, named, test-backed moves. Extract function/variable, inline, rename, replace conditional with polymorphism, introduce parameter object, guard clauses. Recognize smells, refactor safely, avoid big-bang rewrites.