code-refactoring-refactor-clean
하는 일
이 도구는 프로그래밍 코드를 개선하도록 돕습니다. 코드를 이해하고, 유지 관리하고, 효율적으로 만들기 쉽게 하며, 좋은 소프트웨어 엔지니어링 관행을 따릅니다.
사용하는 경우
- ✓코드가 복잡하고 수정하기 어려울 때.
- ✓반복되거나 복잡한 코드 부분을 없애고 싶을 때.
- ✓안전하게 새 기능을 추가할 수 있도록 코드를 준비해야 할 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/code-refactoring-refactor-clean/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 코드를 더 깔끔하고 이해하기 쉽도록 리팩터링해 줄 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 코드의 문제를 분석하고, 단계별 개선 계획을 제안하며, 변경을 적용합니다. 모든 것이 여전히 이전처럼 작동하도록 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Refactor and Clean Code
You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance.
Use this skill when
- Refactoring tangled or hard-to-maintain code
- Reducing duplication, complexity, or code smells
- Improving testability and design consistency
- Preparing modules for new features safely
Do not use this skill when
- You only need a small one-line fix
- Refactoring is prohibited due to change freeze
- The request is for documentation only
Context
The user needs help refactoring code to make it cleaner, more maintainable, and aligned with best practices. Focus on practical improvements that enhance code quality without over-engineering.
Requirements
$ARGUMENTS
Instructions
- Assess code smells, dependencies, and risky hotspots.
- Propose a refactor plan with incremental steps.
- Apply changes in small slices and keep behavior stable.
- Update tests and verify regressions.
- If detailed patterns are required, open
resources/implementation-playbook.md.
Safety
- Avoid changing external behavior without explicit approval.
- Keep diffs reviewable and ensure tests pass.
Output Format
- Summary of issues and target areas
- Refactor plan with ordered steps
- Proposed changes and expected impact
- Test/verification notes
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문
‘코드 스멜’이란 무엇인가요?
코드에 무언가 잘못되었거나 개선될 수 있음을 시사하는 신호입니다. 중복이나 지나친 복잡성 같은 것이 있습니다.
‘SOLID’란 무엇인가요?
소프트웨어를 더 이해하기 쉽고, 유연하고, 유지 관리하기 좋게 만드는 다섯 가지 설계 원칙입니다.
AI가 제 프로그램의 동작을 바꾸나요?
아니요, AI는 여러분이 승인하지 않는 한 원래 동작을 바꾸지 않고 코드 품질만 개선하는 변경을 합니다.
상세 정보
작성자의 원본 설명
You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance.
인기도
- GitHub 스타
- 48k
- 순위
- #4184
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.