From all-commands
Refactors code systematically: analyzes functionality, verifies/adds tests, applies incremental changes, improves quality, performance, design, error handling, docs, and tests.
npx claudepluginhub davepoon/buildwithclaude --plugin all-commands1. **Pre-Refactoring Analysis**# Intelligently Refactor and Improve Code Quality Intelligently refactor and improve code quality ## Instructions Follow this systematic approach to refactor code: **$ARGUMENTS** 1. **Pre-Refactoring Analysis** - Identify the code that needs refactoring and the reasons why - Understand the current functionality and behavior completely - Review existing tests and documentation - Identify all dependencies and usage points 2. **Test Coverage Verification** - Ensure comprehensive test coverage exists for the code being refactored - If tests are missing, write them BEFORE ...
/refactor-codeRefactors code systematically: analyzes functionality, verifies/adds tests, applies incremental changes, improves quality, performance, design, error handling, docs, and tests.
/refactor-codeRefactors specified file/pattern (or scans codebase) with optional --focus on performance, readability, testability, or patterns. Deploys subagents for safe improvements, tests, and outputs preserved-functionality code.
Intelligently refactor and improve code quality
Follow this systematic approach to refactor code: $ARGUMENTS
Pre-Refactoring Analysis
Test Coverage Verification
Refactoring Strategy
Environment Setup
git checkout -b refactor/$ARGUMENTSIncremental Refactoring
Code Quality Improvements
Performance Optimizations
Design Pattern Application
Error Handling Improvement
Documentation Updates
Testing Enhancements
Static Analysis
Performance Verification
Integration Testing
Code Review Preparation
Documentation of Changes
Deployment Considerations
Remember: Refactoring should preserve external behavior while improving internal structure. Always prioritize safety over speed, and maintain comprehensive test coverage throughout the process.