What problem does it solve?
This Skill helps ensure code quality by automatically cleaning and refactoring Python changes during pre-commit, reducing human drift and maintaining readability across the codebase.
Core Features & Use Cases
- Pre-flight checks automation: Verifies staged changes, runs tests, checks coverage, and guards against large diffs before applying transformations.
- Deterministic refactoring: Applies small, focused changes that improve style and structure without altering behavior, following SOLID and DRY principles.
- Batch-driven workflow: Processes changes in batches with approval prompts, supports test maintenance updates, and minimizes risk of breaking tests.
Quick Start
Run the code-cleaner against your currently staged changes to begin the pre-flight checks and the transformation loop. Follow the prompts to approve batches, review proposed changes, and run tests as required.