Agent Skills
› phodal/auto-dev
› refactor
refactor
GitHub专注于代码重构的专家技能,旨在通过识别代码异味、应用设计原则及优化性能,提供提升代码质量、可读性与可维护性的改进建议。
Trigger Scenarios
需要优化现有代码结构
消除重复代码或长方法
应用SOLID原则改进设计
Install
npx skills add phodal/auto-dev --skill refactor -g -y
SKILL.md
Frontmatter
{
"name": "refactor",
"description": "Suggest refactoring improvements for code quality"
}
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
Version History
- 23777fe Current 2026-08-20 15:51


