Agent skill
refactor
Suggest refactoring improvements for code quality
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
- Code Smells: Long methods, large classes, duplicate code
- Design: SOLID principles, design patterns
- Performance: Algorithm efficiency, resource management
- 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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
test-gen
Generate comprehensive unit tests for code files
doc-gen
Generate comprehensive documentation from code
Extract and analyze information from PDF documents
code-review
Perform comprehensive code review with best practices
backend-code-review
Review backend code for quality, security, maintainability, and best practices based on established checklist rules. Use when the user requests a review, analysis, or improvement of backend files (e.g., `.py`) under the `api/` directory. Do NOT use for frontend files (e.g., `.tsx`, `.ts`, `.js`). Supports pending-change review, code snippets review, and file-focused review.
frontend-testing
Generate Vitest + React Testing Library tests for Dify frontend components, hooks, and utilities. Triggers on testing, spec files, coverage, Vitest, RTL, unit tests, integration tests, or write/review test requests.
Didn't find tool you were looking for?