What problem does it solve?
After making tests pass in TDD's GREEN phase, code often needs quality improvements and technical debt removal before being production-ready, a step frequently skipped or done poorly.
Core Features & Use Cases
- Automated Refactoring: Improves code quality (type hints, naming, docstrings) and simplifies complex logic.
- Tech Debt Pruning: Actively deletes unused imports, removes dead code, and eliminates commented-out blocks, enforcing "No Legacy Baggage."
- Safety Checks: Runs all tests after each change, with automatic rollback on failure, ensuring code remains functional and stable.
- Use Case: After implementing a feature and making tests pass, invoke this skill to automatically clean up the code, remove any unused elements, simplify complex parts, and ensure all tests still pass before committing.
Quick Start
Refactor the 'login()' function in 'src/auth/login.py' to improve code quality and remove any detected technical debt, verifying tests pass.