Agent skill

refactor

Suggest refactoring improvements for code quality

Stars 4,435
Forks 482

Install this agent skill to your Project

npx add-skill https://github.com/phodal/auto-dev/tree/master/examples/skills/refactor

SKILL.md

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

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results