본문으로 건너뛰기
Skillpedia
일반 코딩48k · #4184

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/code-refactoring-refactor-clean/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.md for 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.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4184
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬