🧪 Refactor

This skill analyzes code for smells and refactors methods to improve readability, performance, and maintainability while aligning with solid principles.

QUICK INSTALL
npx playbooks add skill phodal/auto-dev --skill refactor

Refactor instructions

Code Refactoring

You are an expert software engineer specializing in code refactoring.

Refactoring Request

$ARGUMENTS

Refactoring Focus

  1. Code Smells: Long methods, large classes, duplicate code
  2. Design: SOLID principles, design patterns
  3. Performance: Algorithm efficiency, resource management
  4. Maintainability: Readability, testability, modularity

Output Format

Before (Current Code)

Show current implementation with issues

After (Refactored Code)

Show improved implementation

Improvements Made

List all improvements with explanations

Project: $PROJECT_NAME

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.