What problem does it solve?
This Skill eliminates the tedious, error-prone manual work of identifying and fixing clean code violations across Python, JavaScript, C#, Rust, and Go codebases, ensuring consistent code quality without hours of manual review and reducing the risk of human error during refactoring.
Core Features & Use Cases
- Multi-Language Support: Refactor code in Python, JavaScript/TypeScript, C#, Rust, and Go with language-specific best practices built in.
- Dual Convention Sets: Enforce standard Clean Code (Robert C. Martin) rules or OB BORO Quick Style Guide conventions for OntoLedgy codebases.
- Flexible Refactoring Modes: Target specific violation types (naming, error handling, function size, code smells, class structure) or run a full end-to-end refactoring workflow.
- Safe Workflow: Follows a strict refactoring order to avoid rework, flags structural changes that are out of scope, and outputs review diffs by default to prevent unintended modifications.
- Use Case: After running a clean-code-reviewer scan that flags a 54-line function with poor error handling and magic numbers, use this Skill to automatically extract the function into single-responsibility helpers, add proper error propagation, and replace hardcoded values with named constants.
Quick Start
Use the clean-code-refactor skill to fix all clean code violations in the src/data_processor.py file using the general standard, outputting a review diff for your approval before applying any changes.