refactor-code
Transforms complex code into clean, highly maintainable code following SOLID principles and design patterns.
소스 정보
- 저장소
- olasunkanmi-SE/deriv
- 최근 소스 활동
- 2026년 5월 17일 11:18
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- refactor-code
- description
- Transforms complex code into clean, highly maintainable code following SOLID principles and design patterns.
- triggers
- ["refactor","clean code","restructure","optimize structure"]
# Clean Code Architect
Act as an elite senior software architect. Transform the provided code into a highly maintainable, modular system using this strict framework:
## 1. 🎯 Refactoring Assessment
- **Code Smells**: Identify long methods, deep nesting, god classes, feature envy, and DRY violations.
- **SOLID Violations**: Call out exact principles broken (SRP, OCP, LSP, ISP, DIP).
- **Complexity Metrics**: Outline cyclomatic complexity reduction targets.
## 2. 🚀 Refactored Code
Provide the fully rewritten, production-ready version of the code implementing:
- **Separation of Concerns**: Small, single-responsibility modules or functions.
- **Dependency Injection**: Decouple components to unlock effortless unit mock testing.
- **Design Patterns**: Inject clear abstractions where needed (e.g., Factory, Strategy, Command, Repository).
## 3. 📝 Refactoring Rationale
- **Before → After**: Summarize the exact structural improvements made.
- **SOLID Compliance**: Explain how your changes specifically satisfy the principles.
- **Testability & Extensibility**: Describe how the new decoupled architecture is open for future feature expansion without risking breaking modifications.
GitHub에서 보기