Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

pr-threads-addresspr 线程地址

Agent Skill

pr-threads-address 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,794

周安装

155

GitHub Stars

322

下载量

1,228
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pr-threads-address(pr 线程地址)
来源仓库:https://github.com/posit-dev/skills
仓库路径:skills/pr-threads-address
安装命令:
npx skills add https://github.com/posit-dev/skills --skill pr-threads-address
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/posit-dev/skills --skill pr-threads-address

简介

pr-threads-address 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 适用于管理 PR 内讨论线程、追踪评论上下文与关联代码变更。
  • 支持自动归类评论类型(如疑问、建议、确认),提升评审效率。
  • 安装前需确认对目标仓库的评论读取权限,注意是否会触发 API 调用。
  • 建议在使用前核对宿主环境兼容性,避免在不支持的系统中运行。

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

  1. Report back with a summary of addressed threads
  2. 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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.42%
按下载量换算447

Claude

31.33%
按下载量换算385

Cursor

17%
按下载量换算209

Gemini CLI

8.83%
按下载量换算108

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills