---
name: Resolve PR Comments
slug: resolve-pr-comments
category: Automation
description: Resolve PR Comments analyzes unresolved pull request review comments, fixes valid issues, and drafts replies for comments that do not need code changes. Use it when addressing PR feedback or responding to review comments.
github: "https://github.com/fcakyon/claude-codex-settings/tree/main/plugins/github-dev/skills/resolve-pr-comments"
language: Python
stars: 1086
forks: 102
install: "npx degit https://github.com/fcakyon/claude-codex-settings/tree/main/plugins/github-dev/skills/resolve-pr-comments ~/.claude/skills/resolve-pr-comments"
installs_to: ~/.claude/skills/resolve-pr-comments
source_path: plugins/github-dev/skills/resolve-pr-comments/SKILL.md
collection_size: 25
category_size: 1523
collection_url: "https://dirskills.com/collections/fcakyon/claude-codex-settings"
added: 2026-08-20T07:56:47.163Z
last_synced: 2026-08-20T07:56:47.163Z
canonical_url: "https://dirskills.com/skills/resolve-pr-comments"
---

# Resolve PR Comments

Resolve PR Comments analyzes unresolved pull request review comments, fixes valid issues, and drafts replies for comments that do not need code changes. Use it when addressing PR feedback or responding to review comments.

**Install:**

```bash
npx degit https://github.com/fcakyon/claude-codex-settings/tree/main/plugins/github-dev/skills/resolve-pr-comments ~/.claude/skills/resolve-pr-comments
```

## README

# Resolve PR Comments

Analyze unresolved PR review comments, fix valid concerns, and draft responses for comments
that do not require code changes.

When explicitly invoked with extra text, treat that text as the PR number or URL. If no PR
reference is provided, infer it from the current branch.

## Process

1. **Preferred execution**
   - If subagents are available, use `github-dev:pr-comment-resolver` and pass the PR reference.
   - Otherwise follow the manual steps below.

2. **Fetch unresolved comments**
   - If a PR number or URL is provided, use it directly.
   - Otherwise auto-detect the PR from the current branch with `gh pr view --json number,headRefName`.
   - Fetch inline comments with `gh api repos/{owner}/{repo}/pulls/{number}/comments`.
   - Fetch review-level comments with `gh pr view <number> --json reviews,comments`.
   - Filter to unresolved or pending threads.

3. **Resolve each comment**
   - If the comment is valid, fix the code and search the codebase for the same problem in other locations.
   - Fix all matching occurrences, not just the location mentioned in the comment.
   - If the comment does not require a code change, draft a concise reply.
   - If the comment is from a bot, reply with a direct factual sentence and no pleasantries.

4. **Reply style**
   - Start in lowercase.
   - Use simple language and short sentences.
   - Avoid end punctuation when possible.
   - Be concise and polite when replying to real people.

5. **Never auto-submit**
   - Present all draft responses before posting them.
   - Reply comments are posted directly with `gh api repos/{owner}/{repo}/pulls/{number}/comments/{comment_id}/replies -f body="..."` (the `{number}` PR number is required, the endpoint 404s without it).
   - Add a random 3-5 second delay between posted replies with `sleep $((RANDOM % 3 + 3))`.
