Skip to main content

refactoring-assistant

Suggest and guide application of refactoring patterns to improve code quality

소스 정보

저장소
a5c-ai/babysitter
최근 소스 활동
2026년 6월 1일 07:46
감지된 SKILL.md 언어
영어
스타
1,869
포크
119

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
refactoring-assistant
description
Suggest and guide application of refactoring patterns to improve code quality
allowed-tools
["Bash","Read","Write","Grep","Glob","Edit"]
graph
{"domains":["domain:software-engineering"],"specializations":["specialization:code-migration-modernization"],"skillAreas":["skill-area:dead-code-elimination","skill-area:code-analysis-linting"],"roles":["role:backend-engineer","role:refactor-bot"],"workflows":["workflow:technical-debt-reduction"],"topics":["topic:refactoring"]}
# Refactoring Assistant Skill Suggests appropriate refactoring patterns and guides their application to improve code quality, maintainability, and migration readiness. ## Purpose Enable guided refactoring for: - Code quality improvement - Design pattern application - Migration preparation - Technical debt reduction - Maintainability enhancement ## Capabilities ### 1. Extract Method/Class Suggestions - Identify extraction candidates - Suggest method boundaries - Recommend class decomposition - Guide interface extraction ### 2. Move Method Recommendations - Detect misplaced methods - Suggest target classes - Analyze dependencies - Guide safe relocation ### 3. Rename Refactoring - Suggest meaningful names - Propagate renames safely - Handle cross-references - Update documentation ### 4. Inline Refactoring - Identify inline candidates - Remove unnecessary indirection - Simplify call chains - Reduce complexity ### 5. Pull Up/Push Down Member - Analyze inheritance hierarchies - Suggest member movement - Optimize class hierarchies - Improve polymorphism ### 6. Design Pattern Application - Recognize pattern opportunities - Guide pattern implementation - Suggest appropriate patterns - Validate pattern application ## Tool Integrations | Tool | Purpose | Integration Method | |------|---------|-------------------| | IDE Refactoring | Automated refactoring | CLI / API | | Sourcery | AI-powered suggestions | CLI | | Sourcegraph Cody | Code intelligence | API | | IntelliJ IDEA | Java refactoring | CLI | | VS Code | Multi-language | Extension API | ## Output Schema ```json { "analysisId": "string", "timestamp": "ISO8601", "suggestions": [ { "type": "extract-method|move-method|rename|inline|design-pattern", "priority": "high|medium|low", "target": { "file": "string", "element": "string", "line": "number" }, "description": "string", "rationale": "string", "steps": ["string"], "estimatedImpact": { "complexity": "string", "maintainability": "string", "testability": "string" }, "risks": ["string"] } ], "patterns": { "applicable": ["string"], "opportunities": [] } } ``` ## Integration with Migration Processes - **code-refactoring**: Primary refactoring guidance - **technical-debt-remediation**: Debt reduction strategies ## Related Skills - `code-smell-detector`: Identifies refactoring needs - `codemod-executor`: Automates refactorings ## Related Agents - `code-transformation-executor`: Executes suggested refactorings
GitHub에서 보기