refactor - Automate behavior-preserving Rust refactoring
Automates scoped Rust refactoring with configurable goals and levels, code-smell analysis, tests, and verification.
Tags
Updated: 2026-12-03Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Parse refactoring options
- Identify affected scope
- Analyze Rust code smells
- Plan risk-based refactoring
- Apply incremental refactoring
- Add characterization tests
- Run security checks
- Verify builds and tests
- Review architecture and diffs
- Perform dry-run analysis
Inputs
- Refactoring scope
- Refactoring goal
- Refactoring level
- Test option
- Security option
- Dry-run option
- Rust project
- Coding style rules
- Existing tests
Outputs
- Refactoring analysis
- Modified Rust source
- Added tests
- Execution plan
- Verification results
- Git branch
- Git commits
- Diff review
Requirements
- Rust toolchain
- Cargo
- Git repository
- coding-style.md rules
- Passing baseline build
- Passing baseline tests
- Security scan skill for security option
- test-align skill for test option
