{"meta":{"title":"코드 검토","intro":"체계적인 피드백을 통해 포괄적인 코드 검토를 수행합니다.","product":"GitHub Copilot","breadcrumbs":[{"href":"/ko/enterprise-cloud@latest/copilot","title":"GitHub Copilot"},{"href":"/ko/enterprise-cloud@latest/copilot/tutorials","title":"자습서"},{"href":"/ko/enterprise-cloud@latest/copilot/tutorials/customization-library","title":"사용자 지정 라이브러리"},{"href":"/ko/enterprise-cloud@latest/copilot/tutorials/customization-library/prompt-files","title":"프롬프트 파일"},{"href":"/ko/enterprise-cloud@latest/copilot/tutorials/customization-library/prompt-files/review-code","title":"코드 검토"}],"documentType":"article"},"body":"# 코드 검토\n\n체계적인 피드백을 통해 포괄적인 코드 검토를 수행합니다.\n\n데이터 재사용가능.copilot.프롬프트-파일-미리보기-노트 %}\n\n이 프롬프트 파일은 철저한 코드 검토를 수행하고 공동 파일럿 채팅에서 하나의 종합 보고서 형태로 체계적이고 실행 가능한 피드백을 제공합니다.\n\n또한, Visual Studio Code에서도 Copilot 코드 검토를 사용할 수도 있습니다. [GitHub Copilot 코드 검토 사용](/ko/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=vscode)을(를) 참조하세요. Copilot 코드 검토는 직접 적용할 수 있는 인라인 편집기 주석과 함께 대화형의 단계별 피드백을 제공하는 반면, 이 프롬프트 파일은 교육용 설명이 포함된 종합 보고서를 제공합니다.\n\n## 코드 검토 프롬프트\n\n```text copy\n---\nagent: 'agent'\ndescription: 'Perform a comprehensive code review'\n---\n\n## Role\n\nYou're a senior software engineer conducting a thorough code review. Provide constructive, actionable feedback.\n\n## Review Areas\n\nAnalyze the selected code for:\n\n1. **Security Issues**\n   - Input validation and sanitization\n   - Authentication and authorization\n   - Data exposure risks\n   - Injection vulnerabilities\n\n2. **Performance & Efficiency**\n   - Algorithm complexity\n   - Memory usage patterns\n   - Database query optimization\n   - Unnecessary computations\n\n3. **Code Quality**\n   - Readability and maintainability\n   - Proper naming conventions\n   - Function/class size and responsibility\n   - Code duplication\n\n4. **Architecture & Design**\n   - Design pattern usage\n   - Separation of concerns\n   - Dependency management\n   - Error handling strategy\n\n5. **Testing & Documentation**\n   - Test coverage and quality\n   - Documentation completeness\n   - Comment clarity and necessity\n\n## Output Format\n\nProvide feedback as:\n\n**🔴 Critical Issues** - Must fix before merge\n**🟡 Suggestions** - Improvements to consider\n**✅ Good Practices** - What's done well\n\nFor each issue:\n- Specific line references\n- Clear explanation of the problem\n- Suggested solution with code example\n- Rationale for the change\n\nFocus on: ${input:focus:Any specific areas to emphasize in the review?}\n\nBe constructive and educational in your feedback.\n```\n\n## 이 프롬프트 파일을 사용하는 방법\n\n1. 위의 콘텐츠를 `review-code.prompt.md` 폴더에 `.github/prompts`로 저장합니다.\n2. 편집기에서 검토할 코드 파일을 엽니다.\n3. Visual Studio Code에서 공동 파일럿 채팅 보기를 표시하고 `/review-code`를 입력하여 이 프롬프트 파일을 사용한 사용자 지정 검토를 트리거합니다. 필요에 따라, `focus=security`를 입력하는 것과 같이 검토의 중점을 무엇에 두어야 할지 지정할 수도 있습니다.\n\n공동 파일럿 채팅"}