一键导入
gh-pr-diff
Get the unified diff for a GitHub pull request. Use when the user wants to see code changes, review a diff, or understand what changed in a PR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Get the unified diff for a GitHub pull request. Use when the user wants to see code changes, review a diff, or understand what changed in a PR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Get file changes from a GitHub pull request with commentable positions. Use when reviewing code and need to know where to place review comments.
Add a general comment to a GitHub pull request. Use when the user wants to post a comment on a PR conversation.
Get all comments from a GitHub pull request including both conversation and code review comments. Use when the user wants to read PR comments or review feedback.
Create a new GitHub pull request. Use when the user wants to create a PR, open a pull request, or submit changes for review.
Get detailed information about a specific GitHub pull request. Use when the user wants to see PR details, check PR status, or view PR metadata.
List open pull requests in a GitHub repository. Use when the user wants to see PRs, check open pull requests, or browse PRs.
| name | gh-pr-diff |
| description | Get the unified diff for a GitHub pull request. Use when the user wants to see code changes, review a diff, or understand what changed in a PR. |
| allowed-tools | Bash(python3 *) |
Retrieve the unified diff for a GitHub pull request, showing all code changes in standard diff format.
python3 .claude/skills/gh-pr-diff/scripts/get_diff.py --owner OWNER --repo REPO --pr-number PR_NUMBER
| Argument | Required | Description |
|---|---|---|
--owner | Yes | Repository owner (username or organization) |
--repo | Yes | Repository name |
--pr-number | Yes | Pull request number |
# Get diff for PR #42 in octocat/hello-world
python3 .claude/skills/gh-pr-diff/scripts/get_diff.py --owner octocat --repo hello-world --pr-number 42
# Get diff for a PR in the current project
python3 .claude/skills/gh-pr-diff/scripts/get_diff.py --owner my-org --repo my-repo --pr-number 123