/skills-toybox:respond-reviewfrom skills-toybox
This skill should be used when the user wants to "respond to review", "리뷰 대응", "PR 리뷰 반영", "리뷰 코멘트 처리", "address review comments", or needs to process PR review feedback by analyzing comments, deciding accept/reject, modifying code, and posting responses.
Ships in skills-toybox. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
GitHub PR에 달린 리뷰 코멘트를 수집하고, 각 코멘트에 대해 반영/미반영을 판단한 뒤, 유저 컨펌을 거쳐 코드 수정과 PR 코멘트를 수행한다. 런타임 정책이 허용하면 분석과 코드 수정에 서브에이전트 병렬 실행을 활용한다.
PR 리뷰를 받은 뒤 각 코멘트에 대응하는 작업(코멘트 읽기, 코드 확인, 반영 판단, 수정, 응답)을 자동화한다.
gh pr view --json url -q .url로 현재 브랜치의 PR 자동 탐지코드 수정 후 자동으로 커밋하고 PR에 응답 코멘트를 남길까요? (Y/n)
gh api로 리뷰 코멘트 전체 수집:
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments
gh api repos/{owner}/{repo}/pulls/{pr_number}/reviews
lessons.md~/.claude/respond-review-lessons.md~/.codex/respond-review-lessons.md코멘트가 4개 이상이고 런타임이 서브에이전트 사용을 허용하면 병렬 분석, 그 외에는 메인 세션에서 순차 분석.
메인 세션이 각 코멘트에 대해:
## 작업
PR 리뷰 코멘트를 분석하고 반영 여부를 판단하라.
## 코멘트 정보
- 작성자: {reviewer}
- 위치: {file_path}:{line_range}
- 내용: {comment_body}
## 해당 코드의 diff
{diff_hunk}
## 현재 파일 내용
Read 도구로 {file_path}를 읽어라.
추천 읽기 범위: {recommended_range} ({range_reason})
필요하다고 판단되면 더 넓게 읽어도 된다.
## 기존 판단 기준 (lessons)
{lessons_content}
## 판단 기준
- 버그 수정, 보안 이슈 → 반영
- 코드 컨벤션, 가독성 향상 → 반영
- 취향 차이, 트레이드오프가 있는 설계 의견 → 미반영 가능
- 현재 PR 범위 밖의 리팩토링 제안 → 미반영 가능
- 기존 lessons가 있으면 우선 참고
## 출력 (이 포맷을 정확히 따라라)
판단: 반영 | 미반영
사유: (1-2문장, 기술적 근거)
근거: (왜 그 판단이 적절한지, 코드 기반 설명)
영향 범위:
- {file_path}:{function_name 또는 line_range}
- (수정 시 영향받는 다른 파일이 있으면 추가)
수정 계획: (반영일 경우) 구체적으로 무엇을 어떻게 바꿀지
(미반영일 경우) "없음"
## 제약
- 코드를 수정하지 마라. 분석만 하라.
- Read/Grep 도구만 사용하라.
- 추측하지 말고 코드를 읽고 판단하라.
분석 결과를 아래 포맷으로 한 번에 제시:
## PR 리뷰 대응 계획 (#{pr_number})
### 1. [반영] {file_path}:{line} — @{reviewer}
> 원본 코멘트: "{comment_body}"
\`\`\`diff
{diff_hunk}
\`\`\`
**사유**: {reason}
**근거**: {evidence}
**수정 계획**: {plan}
---
### 2. [미반영] {file_path}:{line} — @{reviewer}
> 원본 코멘트: "{comment_body}"
\`\`\`diff
{diff_hunk}
\`\`\`
**사유**: {reason}
**근거**: {evidence}
**수정 계획**: 없음
---
> 수정할 항목이 있으면 번호와 변경 내용을 알려주세요.
> 없으면 "확인"으로 진행합니다.
유저가 수정할 항목만 고치고, 나머지는 그대로 승인.
반영 항목만 대상으로, Step 2에서 보고된 영향 범위 기반으로 그룹핑:
그룹별로 수정한다. 런타임이 서브에이전트 사용을 허용하면 독립 그룹을 병렬 디스패치하고, 아니면 메인 세션에서 순차 수정한다.
## 작업
유저가 승인한 PR 리뷰 코멘트를 코드에 반영하라.
## 반영할 코멘트 목록
{각 코멘트별:}
- 코멘트: {comment_body}
- 파일: {file_path}:{line_range}
- 승인된 수정 계획: {modification_plan}
## 제약
- 승인된 수정 계획에 명시된 범위만 수정하라.
- 수정 계획에 없는 추가 개선을 하지 마라.
- 수정 후 관련 파일의 import, 타입, 호출부가 깨지지 않는지 확인하라.
- Edit 도구를 사용하라.
## 완료 보고
수정한 파일 목록:
- {file_path}: {무엇을 변경했는지 1줄 요약}
반영: {수정 내용 1-2문장 요약}미반영: {사유 1-2문장}유저 레벨 lessons 파일에 규칙이 쌓이고 있습니다. 확정된 규칙은 스킬 내장으로 옮길 수 있어요.
# 특정 리뷰 코멘트에 reply
gh api repos/{owner}/{repo}/pulls/comments/{comment_id}/replies \
-f body="반영: {내용}"
# respond-review lessons
## 반영 경향
- {규칙} ({날짜} 학습)
## 미반영 경향
- {규칙} ({날짜} 학습)
| 상황 | 대응 |
|---|---|
| 리뷰 코멘트 없음 | 처리할 코멘트가 없다고 안내 |
| PR URL 잘못됨 | 올바른 URL인지 확인 요청 |
| 이미 resolved된 코멘트 | 건너뛰고 안내 |
| 서브에이전트 수정 충돌 | 충돌 파일을 유저에게 보여주고 수동 해결 요청 |
| lessons 파일 없음 | 기본 판단 기준만으로 진행, 파일 자동 생성 |
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/code-reviewThis skill should be used when the user wants to "review code", "check code quality", "run code review", or needs local code quality verification before git push. Runs lint, typecheck, and code review on changed files./command-validatorThis skill should be used when the user wants to "validate a command", "review my command", "check command quality", "audit slash command", or needs evaluation of their Claude Code custom command against best practices./commitThis skill should be used when the user wants to "commit", "make a commit", "save changes", "git commit", "커밋", "커밋 해줘", "변경사항 저장", or needs to create a git commit following Conventional Commit format. Also triggers when the user asks to commit after finishing implementation work (e.g., "done, commit this", "작업 끝났어 커밋해줘"). Automatically analyzes staged/unstaged changes and generates a one-line conventional commit message.Other plugins' skills for the same job
npx claudepluginhub wonjiko/claude-toymarket --plugin skills-toybox