refactor-optimizer
CommunityImprove code while keeping tests green
Authoryuridefranca
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Improve and simplify working code without introducing regressions by applying systematic refactoring practices that preserve passing tests and align implementation with architecture and maintainability goals.
Core Features & Use Cases
- Readability & Naming: Extract magic numbers and clarify intent with descriptive names and helper functions.
- Architecture Alignment: Restructure code to follow project patterns and SOLID principles, extract classes or services when responsibilities grow.
- Duplication & Performance: Remove duplication (DRY), optimize queries and batch operations, and apply measured performance improvements where bottlenecks exist.
- Use Case: After a minimal implementation passes tests, iteratively refactor a feature branch to improve clarity, reduce technical debt, and optimize hot paths while running the test suite after each change.
Quick Start
Ask the refactor-optimizer to refactor the changed module while running the full test suite after each change to ensure tests remain green.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: refactor-optimizer Download link: https://github.com/yuridefranca/ai-prompts/archive/main.zip#refactor-optimizer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.