What problem does it solve?
This Skill addresses code that is difficult to read, maintain, or understand by proactively refactoring it to improve clarity, consistency, and robustness without altering its core functionality.
Core Features & Use Cases
- Readability Maximization: Renames variables and functions for better self-documentation.
- Duplication Removal: Identifies and consolidates repetitive code patterns.
- Structural Decomposition: Breaks down large functions and files into smaller, manageable units.
- Defensive Hardening: Flags areas needing input validation, error handling, and fail-safe defaults.
- Use Case: You have a complex Python script with deeply nested
if statements and unclear variable names. Running this Skill will refactor it into a more modular, readable, and maintainable codebase.
Quick Start
Use the CodeCleanup skill to refactor the file '/path/to/your/code.py'.