본문으로 건너뛰기
cccskills
무료GitHub에 공개

gh-address-comments

Address GitHub PR review comments and issue feedback using the gh CLI. Fetch all comments, summarize review threads, and apply fixes with explicit user approval.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHub
설치 방법 보기

포함된 파일(2)

  • SKILL.md5.2 KB
  • scripts/fetch_comments.py6.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

GitHub PR Address Comments

Use This Skill When

  • Need to address review comments on your open GitHub PR
  • Want to systematically handle all feedback threads
  • Making code changes in response to reviewer suggestions
  • Need visibility into all pending comments before responding
  • Want to batch-address multiple review items

When NOT to Use

  • Responding directly on GitHub (can do manually)
  • Complex discussions requiring back-and-forth debate
  • Comments needing legal/compliance review
  • Working on closed/merged PRs

Context: PR Feedback Workflow Maturity

Undeveloped: Manual review, ad-hoc responses, forget some comments.

Target: Fetch all comments, list with summaries, apply fixes after user selects which to address.

Optimized: Auto-categorize by type (bug, style, enhancement), suggest fixes for each, batch commit with reply threads.

Core Principle

Address feedback systematically. Fetch all comments, understand context, let user choose priorities, then apply fixes — reducing friction in PR review cycles.

Instructions

Step 1: Verify gh CLI Authentication

Check authentication status:

gh auth status

If not authenticated:

gh auth login
# Select GitHub.com
# Select SSH or HTTPS
# Authorize with browser

Verify workflow/repo scopes:

gh auth status --show-token  # Verify scopes include "repo" and "workflow"

Step 2: Locate Current PR

Find PR for current branch:

gh pr view --json number,title,url,state

Or specify PR explicitly:

gh pr view 123 --json number,title,url,state
# or
gh pr view https://github.com/owner/repo/pull/123

Step 3: Fetch All Review Comments

Pull all comments and review threads:

# Run helper script (if available)
python scripts/fetch_comments.py

# Or manual approach:
gh pr view [PR] --json reviews --jq '.reviews[]'

Output includes:

  • Reviewer name
  • Comment text
  • Status (approved, commented, changes requested)
  • Threading structure

Step 4: Summarize and Prioritize Comments

Organize comments for user review:

# PR Comments to Address

## Review Thread 1: "Add error handling" (Changes Requested by @reviewer-name)
**Line**: src/utils.ts:42
**Comment**: "This function should handle null values gracefully"
**Context**: [Code snippet]
**Priority**: High — blocking approval
**Fix needed**: Add try-catch or validation

---

## Review Thread 2: "Typo in variable name" (Commented by @reviewer-name)
**Line**: src/types.ts:15
**Comment**: "Should this be `userAuthToken` instead of `userAuthTOKEN`?"
**Priority**: Medium — style
**Fix needed**: Rename variable

---

## Review Thread 3: "Nice refactoring!" (Approved by @reviewer-name)
**Status**: ✓ Approved
**Action**: No response needed

Step 5: Ask User Which Comments to Address

Present prioritized list:

Select which comments to address (enter numbers separated by comma):

[ 1] High: Add error handling (Line 42)
[ 2] Medium: Fix typo in variable name (Line 15)  
[ 3] Low: Consider adding JSDoc comment (Line 8)

Enter selection (e.g., "1,2"):

Step 6: Apply Fixes

For each selected comment:

  1. Navigate to line/file

    code src/utils.ts:42  # Open editor at line
    
  2. Make required changes

    • Apply fix (add error handling, rename variable, etc.)
    • Test locally if needed
  3. Commit changes

    git add [files]
    git commit -m "Address review feedback: [comment theme]"
    git push
    
  4. Reply to comment (optional)

    gh pr review [PR] --comment -b "Fixed: Added error handling for null values"
    

Step 7: Verify Updated Status

Check if review is now satisfied:

gh pr view [PR] --json reviewDecisions,statusCheckRollup

If approved:

gh pr merge [PR] --squash --delete-branch

Common Workflows

Address all blocking comments:

gh pr view [PR] --json reviews --jq '.reviews[] | select(.state=="CHANGES_REQUESTED")'
# Then select those for addressing

Reply to specific comment:

gh pr comment [PR] -b "Fixed in latest commit. Thanks for the feedback!"

Re-request review after fixing:

gh pr review [PR] --request-review @reviewer-name

Troubleshooting

IssueSolution
gh not authenticatedRun gh auth login and select scopes including repo/workflow
Rate limit errorsWait a few minutes or check gh auth status for token validity
Can't see PRVerify you're on correct branch or provide explicit PR number/URL
Comments not showingEnsure gh is fully authenticated with gh auth refresh

Output

Deliver:

  1. Organized comment list with context and priorities
  2. User selections (which comments to address)
  3. Applied changes with commit links
  4. Updated PR status (approved/changes requested/etc.)

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

manu14357/zskills162026년 7월 24일 업데이트

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

manu14357/zskills162026년 7월 24일 업데이트

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

manu14357/zskills162026년 7월 24일 업데이트

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

manu14357/zskills162026년 7월 24일 업데이트

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

manu14357/zskills162026년 7월 24일 업데이트

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

manu14357/zskills162026년 7월 24일 업데이트

manu14357의 스킬 모두 보기

이 스킬의 문제 신고