What problem does it solve?
Production code that works but has accumulated duplication, unclear naming, or unnecessary complexity is hard to maintain. This Skill improves code quality through safe, incremental refactorings while guaranteeing that every existing test continues to pass.
Core Features & Use Cases
- Convention Discovery: Analyzes the codebase's language, build system, naming patterns, and idioms before making any change, so refactored code matches existing style.
- Safe Transformations: Applies one refactoring at a time — extracting functions, renaming, flattening conditionals, removing dead code — verifying compilation and tests after each step and reverting any change that breaks behavior.
- Structured Summary: Produces a report of every refactoring applied, skipped, or reverted, with the quality dimension each one improves.
- Use Case: During the refactor phase of a TDD red-green-refactor cycle, point the Skill at a module with passing tests and receive cleaned-up code with zero behavior changes and a full verification report.
Quick Start
Refactor the production code in src/parser/expression.rs to reduce duplication and improve naming, keeping all tests passing with cargo test -p parser.