What problem does it solve?
Reduce the risk of regressions and large, unsafe changes by guiding developers through a structured refactoring workflow that identifies code smells, locks current behavior with characterization tests, and enforces small, verifiable steps.
Core Features & Use Cases
- Smell identification and triage: Detects common smells like long functions, god modules, duplicate logic, and primitive obsession and recommends targeted fixes.
- Test-first, stepwise execution: Requires characterization tests, compilation checks, and per-step commits so each change is independently verifiable.
- Cross-language patterns and persistence: Provides Rust, Python, and JavaScript/TypeScript refactoring patterns and can optionally record decisions and outcomes to SeleneDB for future recall.
Quick Start
Run the refactor skill on the target module with a brief description of the smell to produce a stepwise plan, write characterization tests, and execute each step with tests and compilation checks.