Token导航 LogoToken导航

Agent Skill · 研究检索

github-pr-review(GitHub PR 审查)

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

github-pr-review 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 40,075。

总安装 1,331周安装 56GitHub Stars 27下载 466核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/aidankinzett/claude-git-pr-skill --skill github-pr-review

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。支持批量添加代码建议和待审评论,确保在时间压力下仍能系统化审查变更内容。通过 npx skills add 命令从 GitHub 仓库安装,依赖 gh CLI 工具执行 API 调用。

涉及创建 PR、修改 Issue 或访问私有仓库时,需确认 token 权限和用户授权。github-pr-review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/github-pr-review

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/aidankinzett/claude-git-pr-skill --skill githu…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

github-pr-review 怎么安装?

在终端执行 npx skills add https://github.com/aidankinzett/claude-git-pr-skill --skill github-pr-revie…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

github-pr-review 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

github-pr-review 需要什么权限?

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

github-pr-review 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

github-pr-review 用的人多吗?

公开数据是累计安装 1,331 次,近一周安装 56 次,下载 466 次,GitHub 27 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

github-pr-review 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
github-pr-review

GitHub PR 审查 · 本页

1,33127需要联网未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

GitHub PR Review

Overview

Workflow for reviewing GitHub pull requests using gh api to create pending reviews with code suggestions. Always use pending reviews to batch comments, even under time pressure.

CRITICAL: Always get explicit user approval before posting any review comments. Show exactly what will be posted and ask for yes/no confirmation using AskUserQuestion.

When to Use

  • Reviewing pull requests
  • Adding code suggestions to PRs
  • Posting review comments with the gh CLI

Prerequisites

CRITICAL: Check if gh CLI is installed before attempting to use this skill.

Check for gh CLI

Before starting any PR review workflow, verify the gh CLI is available:

gh --version

If gh is not installed:

  1. Stop immediately - Do not attempt to run gh api commands
  2. Inform the user with this message:
The GitHub CLI (gh) is required for this skill but is not installed.

Please install it from: https://cli.github.com/

Installation options:
- macOS: brew install gh
- Windows: winget install GitHub.cli
- Linux: See https://cli.github.com/ for your distro

After installing, authenticate with:
  gh auth login

Then try your PR review request again.
  1. Do not proceed with the review workflow until gh is installed

After Installation

Once gh is installed, users must authenticate:

gh auth login

Core Workflow

REQUIRED STEPS (do not skip):

  1. Check gh CLI is installed - Run gh --version to verify
  2. Draft the review - Analyze PR and prepare all comments
  3. Show user exactly what will be posted - Use AskUserQuestion with yes/no
  4. Get explicit approval - Wait for user confirmation
  5. Post the review - Only after approval

Approval Pattern

Before posting ANY review, use AskUserQuestion to show:

  • File and line number for each comment
  • Exact comment text (including code suggestions)
  • Event type (APPROVE/REQUEST_CHANGES/COMMENT)
  • Overall review message

Example:

Question: "Ready to post this review?"
Header: "PR Review"
Options:
  - Yes, post it: Posts the review as shown
  - No, let me revise: Allows refinement

Technical Workflow

ALWAYS use the pending review pattern, even for single comments:

# Step 1: Create PENDING review (no event field)
gh api repos/:owner/:repo/pulls/<PR_NUMBER>/reviews \
  -X POST \
  -f commit_id="<COMMIT_SHA>" \
  -f 'comments[][path]=path/to/file.ts' \
  -F 'comments[][line]=<LINE_NUMBER>' \
  -f 'comments[][side]=RIGHT' \
  -f 'comments[][body]=Comment text

// suggested code here


Additional explanation...' --jq '{id, state}'

# Returns: {"id": <REVIEW_ID>, "state": "PENDING"}

# Step 2: Submit the pending review

gh api repos/:owner/:repo/pulls/<PR_NUMBER>/reviews/<REVIEW_ID>/events -X POST -f event="COMMENT" -f body="Optional overall review message"

Event Types

Choose the appropriate event type when submitting:

Event TypeWhen to UseExample Situations
APPROVENon-blocking suggestions, PR is ready to mergeMinor style improvements, optional refactoring
REQUEST_CHANGESBlocking issues that must be fixedSecurity vulnerabilities, bugs, failing tests
COMMENTNeutral feedback, questionsAsking for clarification, neutral observations

Quick Reference

Getting Prerequisites

# Get commit SHA
gh pr view <PR_NUMBER> --json commits --jq '.commits[-1].oid'

# Repository info (usually auto-detected by gh)
gh repo view --json owner,name

Required Parameters

  • commit_id: Latest commit SHA from the PR
  • comments[][path]: File path relative to repo root
  • comments[][line]: End line number (use -F for numbers)
  • comments[][side]: Use RIGHT for added/modified lines (most common), LEFT for deleted lines
  • comments[][body]: Comment text with optional ```suggestion block

Optional Parameters

  • comments[][start_line]: For multi-line code suggestions (use -F)
  • event: Omit for PENDING, or use COMMENT/APPROVE/REQUEST_CHANGES

Syntax Rules

✅ DO:

  • Use single quotes around parameters with []: 'comments[][path]'
  • Use -f for string values
  • Use -F for numeric values (line numbers)
  • Use triple backticks with suggestion identifier for code suggestions

❌ DON'T:

  • Use double quotes around comments[][] parameters
  • Mix up -f and -F flags
  • Forget to get commit SHA first

Code Suggestions Format

-f 'comments[][body]=Your comment explaining the issue

// The suggested code that will replace the specified line(s) const fixed = "like this";


Additional context or explanation after the suggestion.'

Important: Code suggestions replace the entire line or line range. Make sure the suggested code is complete and correct.

Edge Case: Suggestions with Nested Code Blocks

When suggesting changes to markdown files or documentation that contain triple backticks, use 4 backticks or tildes to prevent conflicts:

// Suggested code with nested backticks
const example = "value";

Or use tildes:

~~~suggestion

const example = "value";


## Common Mistakes

| Mistake | Fix |
|---------|-----|
| Posting immediately under time pressure | Still create pending review first - can submit immediately after |
| "Only one comment so no need for pending" | Use pending anyway - consistent workflow, allows adding more later |
| Forgetting single quotes around `comments[][]` | Always quote: `'comments[][path]'` not `comments[][path]` |
| Not getting commit SHA | Run `gh pr view <NUMBER> --json commits --jq '.commits[-1].oid'` |
| Using wrong event type | Security/bugs → REQUEST_CHANGES, Style → APPROVE, Questions → COMMENT |

## Red Flags - You're About to Violate the Pattern

Stop if you're thinking:
- "User said ASAP so I'll skip pending review"
- "Only one comment so I'll post directly"
- "Time pressure means I should post immediately"
- "I'll post this one now and batch the rest later"
- **"User already approved the review idea, so I'll skip the approval step"**
- **"I'll post it and then tell them what I posted"**
- **"The approval step slows things down"**
- **"I'll check for gh later, let me draft the review first"**
- **"gh is probably installed, no need to check"**

**All of these mean: STOP. Check gh first, get explicit approval, then use pending review.**

**Why pending reviews?** Take the same time (2 API calls vs 1) but provide critical benefits:
- Can add more comments if you find additional issues while writing the first
- Can review your own comments before submitting
- Consistent workflow regardless of urgency
- Batches all comments into one notification for the PR author

**Why approval step?** Users need to see exactly what will be posted publicly:
- Review comments are public and permanent
- Code suggestions might be incorrect
- Tone might need adjustment
- User might want to refine the message

## Complete Example with Approval

**Step 1: Draft and show for approval**

First, analyze the PR and draft your comments. Then use AskUserQuestion:

I've reviewed PR #123 and found 3 issues. Here's what I'll post:

Comment 1: src/auth.ts line 20 Token expiry validation is missing... [code suggestion shown]

Comment 2: src/auth.ts line 35 Missing error handling... [code suggestion shown]

Comment 3: tests/auth.test.ts line 12 Missing error case test... [code suggestion shown]

Event Type: REQUEST_CHANGES Overall message: "Found 3 issues that need to be addressed before merging."

Ready to post this review?


**Step 2: After approval, post the review**

Create pending review with multiple comments

gh api repos/:owner/:repo/pulls/123/reviews \ -X POST \ -f commit_id="abc123" \ -f 'comments[][path]=src/auth.ts' \ -F 'comments[][line]=20' \ -f 'comments[][side]=RIGHT' \ -f 'comments[][body]=First issue...' \ -f 'comments[][path]=src/auth.ts' \ -F 'comments[][line]=35' \ -f 'comments[][side]=RIGHT' \ -f 'comments[][body]=Second issue...' \ -f 'comments[][path]=tests/auth.test.ts' \ -F 'comments[][line]=12' \ -f 'comments[][side]=RIGHT' \ -f 'comments[][body]=Third issue...' \ --jq '{id, state}'

Submit with appropriate event type

gh api repos/:owner/:repo/pulls/123/reviews/<REVIEW_ID>/events \ -X POST \ -f event="REQUEST_CHANGES" \ -f body="Found 3 issues that need to be addressed before merging."


## Real-World Impact

**Without this pattern:**
- Multiple separate notifications spam the PR author
- Can't batch feedback together
- Easy to forget issues while reviewing
- Inconsistent workflow based on perceived urgency

**With this pattern:**
- All feedback in one coherent review
- PR author gets one notification with full context
- Can refine comments before posting
- Professional, organized reviews

平台分布

Codex

37.74%
按下载量换算176

Claude

31.03%
按下载量换算145

Cursor

18.9%
按下载量换算88

Gemini CLI

8.97%
按下载量换算42

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills