Skip to content
alyn
posit-dev

PR Threads Address skill

Address PR review feedback by systematically working through every unresolved PR review thread on the current branch's PR - analyze each comment, make the requested code changes (with tests where useful), commit, and optionally reply and resolve.

$npx skills add posit-dev/skills --skill pr-threads-address
View this skill on GitHubposit-dev/skills/github/pr-threads-address/SKILL.md
Pack stars
563
Pack installs
20k
Alyn Score
55/99
Updated
21 h ago
License
MIT
– views – installs via Alyn

posit-dev

PR Threads Address

Install PR Threads Address

Pick your agent. Every command is ready to paste.

$npx skills add posit-dev/skills --skill pr-threads-address

The open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads pr-threads-address when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the pr-threads-address skill”. In Codex, type $pr-threads-address.

The skill itself

SKILL.md

FolderGitHub

Prerequisites

gh pr-review extension

Before using this command, check if the gh pr-review extension is installed:

gh extension list | grep -q pr-review || gh extension install agynio/gh-pr-review

Resolve PR context

Every gh pr-review subcommand requires both --pr <number> and --repo <owner/repo> — do not omit either. Look the values up once at the start of the workflow and substitute the literal numbers and slugs into every later command.

Get the PR number for the current branch:

gh pr view --json number -q .number

Get the repository slug:

gh repo view --json nameWithOwner -q .nameWithOwner

Then pass the resulting values directly — e.g. --pr 42 --repo posit-dev/skills — on every subsequent gh pr-review call in this workflow (review view, comments reply, threads resolve, etc.).

Workflow

  1. Fetch and display all unresolved PR review threads
  2. Analyze each thread to understand the requested changes
  3. For each thread:
    1. Make the necessary code modifications
    2. (When possible) Add unit tests to verify the change
    3. Commit the changes with descriptive commit messages using conventional commit specification
  4. Report back with a summary of addressed threads
  5. Ask if the user wants to resolve the threads. If so, reply to each thread indicating what was done and then resolve the thread.

CLI Reference

View PR Reviews and Comments

Display all reviews, inline comments, and replies for a pull request:

gh pr-review review view --pr <number> --repo <owner/repo>

Common filters:

  • --reviewer <login> — Filter by specific reviewer
  • --states <list> — Comma-separated review states (APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED)
  • --unresolved — Show only unresolved threads
  • --tail <n> — Show only the last n replies per thread
  • --include-comment-node-id — Include GraphQL node IDs for replies

Reply to Review Threads

gh pr-review comments reply --thread-id <PRRT_...> --body "<reply-text>" --repo <owner/repo> --pr <number>

For multi-line replies, pass --body "$(cat <<'EOF' ... EOF\n)" heredoc syntax.

Resolve a Thread

gh pr-review threads resolve --thread-id <PRRT_...> --pr <number> --repo <owner/repo>

Thread IDs (format PRRT_...) come from review view --include-comment-node-id.

Tips for PR Threads Address

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about PR Threads Address

What does the PR Threads Address skill do?

Address PR review feedback by systematically working through every unresolved PR review thread on the current branch's PR - analyze each comment, make the requested code changes (with tests where useful), commit, and optionally reply and resolve.

How do I install PR Threads Address?

Run "npx skills add posit-dev/skills --skill pr-threads-address" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does PR Threads Address work in Cursor and Codex?

Yes. PR Threads Address uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

Is PR Threads Address free?

PR Threads Address is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.

Who made PR Threads Address?

PR Threads Address is published by posit-dev in the posit-dev/skills repository, together with 29 other skills.

Similar skills. From other creators.