agentleFS
worldbankworldbank/geoPovLearn/.claude/skills/pr-threads-address/SKILL.md

pr-threads-address

Skill2 starsChanged 6 months agoMITView on GitHub

Review all unresolved PR review threads, address them by making necessary code changes, and commit the changes appropriately.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Note: If PR_NUMBER is omitted, the command will automatically detect and use the PR associated with the current branch.

    line 17
  2. Distinctive:

    Commit the changes with descriptive commit messages using conventional commit specification

    line 26
  3. Distinctive:

    Ask if the user wants to resolve the threads.

    line 28
  4. Distinctive:

    Use this command when you have received PR review feedback and need to systematically address all unresolved threads before the PR can be …

    line 32
  5. Distinctive:

    Create commits for the changes

    line 43
  6. Distinctive:

    Ask if you want to resolve the threads

    line 46
  7. Distinctive:

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

    line 50
  8. Distinctive:

    Multi-line replies: use heredoc syntax:

    line 96
  9. Distinctive:

    Create a new pending review to add comments before submission:

    line 118
  10. Distinctive:

    Add inline comments to a pending review:

    line 128
  11. Very specific:

    Repository Context: Always include --repo owner/repo to ensure correct repository context, or run commands from within a local clone of the …

    line 157
  12. Very specific:

    State Filters: When using --states, provide a comma-separated list: --states APPROVED,CHANGES_REQUESTED

    line 163
  13. Very specific:

    Unresolved Focus: Use --unresolved --not_outdated together to focus on actionable comments that need attention.

    line 165

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/pr-threads-address

Usage: /pr-threads-address [PR_NUMBER]

Description: Review all unresolved PR review threads, address them by making necessary code changes, and commit the changes appropriately.

Note: If PR_NUMBER is omitted, the command will automatically detect and use the PR associated with the current branch.

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.

When to use

Use this command when you have received PR review feedback and need to systematically address all unresolved threads before the PR can be merged.

Example

/pr-threads-address 42

This will:

  • View unresolved threads on PR #42
  • Make code changes to address each thread
  • Create commits for the changes
  • Reply to reviewers with explanations
  • Provide a summary of all addressed items
  • Ask if you want to resolve the threads

Prerequisites

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

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> — Filter by review state (APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED)
  • --unresolved — Show only unresolved threads
  • --not_outdated — Exclude outdated threads
  • --tail <n> — Show only the last n replies per thread
  • --include-comment-node-id — Include GraphQL node IDs for replies

Examples:

# View all unresolved comments
gh pr-review review view --pr 42 --unresolved --repo owner/repo

# View comments from a specific reviewer
gh pr-review review view --pr 42 --reviewer username --repo owner/repo

# View only change requests, excluding outdated threads
gh pr-review review view --pr 42 --states CHANGES_REQUESTED --not_outdated --repo owner/repo

Reply to Review Threads

Respond to specific review comment threads:

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

Multi-line replies use heredoc syntax:

gh pr-review comments reply --thread-id PRRT_xyz789 --body "$(cat <<'EOF'
Fixed in commit abc123.

The changes include:
- Updated function signature
- Added error handling
- Updated tests
EOF
)" --repo owner/repo --pr 42

Resolve a Thread

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

Start a Pending Review

Create a new pending review to add comments before submission:

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

This returns a review ID (format: PRR_...) needed for adding comments.

Add Review Comments

Add inline comments to a pending review:

gh pr-review review --add-comment --review-id <PRR_...> --path <file-path> --line <number> --body "<comment-text>" --repo <owner/repo>

Flags:

  • --review-id — Review ID from --start command (required)
  • --path — File path in the repository (required)
  • --line — Line number for the comment (required)
  • --body — Comment text (required)

Submit a Review

Finalize and submit a pending review:

gh pr-review review --submit --review-id <PRR_...> --event <EVENT_TYPE> --body "<summary>" --repo <owner/repo>

Event types:

  • APPROVE — Approve the changes
  • REQUEST_CHANGES — Request changes before merging
  • COMMENT — Submit general feedback without explicit approval

Usage Notes

  1. Repository Context: Always include --repo owner/repo to ensure correct repository context, or run commands from within a local clone of the repository.
  2. Thread IDs: Thread IDs (format PRRT_...) can be obtained from review view --include-comment-node-id or threads list commands.
  3. Review IDs: Review IDs (format PRR_...) are returned by the review --start command and must be used for adding comments to that review.
  4. State Filters: When using --states, provide a comma-separated list: --states APPROVED,CHANGES_REQUESTED
  5. Unresolved Focus: Use --unresolved --not_outdated together to focus on actionable comments that need attention.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.