What problem does it solve?
Manually refining code from pull requests or branch changes for clarity and consistency is time-consuming, risky, and often leads to accidental behavior changes or missed cleanup opportunities for redundant logic, dead code, and overly complex control flow.
Core Features & Use Cases
- Scoped to changed code only: By default operates only on files modified in your current branch, specified PR, file glob, or base branch to avoid unintended edits to unrelated code.
- Respects project standards: Reads your project's CLAUDE.md (if present) to align with existing coding conventions, naming rules, and exclusions for generated artifacts.
- Safe, behavior-preserving cleanup: Applies proven simplification patterns like flattening nested logic, removing dead code, and eliminating redundancy without altering any existing functionality, outputs, or features.
- Real-world use case: After finishing a feature PR with messy nested conditionals and unused imports, use this skill to automatically clean up the changed code to match your team's standards without risking regressions.
Quick Start
Ask the AI to simplify the code in your current pull request to improve readability while keeping all existing functionality intact.