AgentSkillsCN

github-pr-comment-resolve

查看 PR 审查中收到的评论,并协助制定修改计划或执行“解决(Resolve)”操作。适用于“我会采纳你的审查意见”、“请帮我查看一下 PR 评论”等场景。

SKILL.md
--- frontmatter
name: github-pr-comment-resolve
description: PR 리뷰에 달린 코멘트들을 조회하고, 수정 계획을 세우거나 해결(Resolve) 처리를 돕습니다. "리뷰 반영할게", "PR 코멘트 확인해줘" 등의 상황에서 사용하십시오.

Resolve PR Comments

Systematically address code review comments.

Steps

  1. Fetch Comments

    • Get PR number: gh pr view --json number
    • Get unresolved comments:
      bash
      gh api /repos/:owner/:repo/pulls/<PR_NUM>/comments --jq '.[] | select(.position != null) | {id: .id, path: .path, body: .body}'
      
  2. Analyze & Plan

    • List comments and propose actions (Accept/Question/Refuse).
  3. Fix & Verify

    • Apply code changes.
    • Run verification: ./scripts/check-all.sh.
  4. Push

    • git push origin HEAD
  5. Reply & Resolve

    • Reply to comments using gh api.
    • Resolve threads using GraphQL (advanced) or manual verification.

Tip

  • Always verify before pushing.
  • Write replies in Korean.