Refactor code following SOLID principles and best practices
Refactors code following SOLID principles and best practices while preserving functionality.
/plugin marketplace add laurigates/claude-plugins/plugin install code-quality-plugin@lgates-claude-plugins<file-path|directory>code/echo "$1"file "$1" 2>/dev/null || echo "directory or not found"wc -l "$1" 2>/dev/null || find "$1" -type f \( -name "*.py" -o -name "*.js" -o -name "*.ts" \) -exec wc -l {} + 2>/dev/null | tail -1$1: Required file path or directory to refactorDelegate this task to the code-refactoring agent.
Use the Task tool with subagent_type: code-refactoring to refactor the specified code. Pass all the context gathered above to the agent.
The code-refactoring agent should:
Identify refactoring opportunities:
Apply SOLID principles:
Apply best practices:
Preserve functionality:
Output the refactored code with clear structure
Provide the agent with:
The agent has expertise in: