一键导入
gh-pr-changes
Get file changes from a GitHub pull request with commentable positions. Use when reviewing code and need to know where to place review comments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Get file changes from a GitHub pull request with commentable positions. Use when reviewing code and need to know where to place review comments.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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 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.
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-changes |
| description | Get file changes from a GitHub pull request with commentable positions. Use when reviewing code and need to know where to place review comments. |
| allowed-tools | Bash(python3 *) |
Get file changes from a GitHub pull request with calculated commentable positions. Parses the diff patches to determine valid position numbers for placing review comments.
python3 .claude/skills/gh-pr-changes/scripts/get_changes.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 changes for a pull request:
python3 .claude/skills/gh-pr-changes/scripts/get_changes.py --owner octocat --repo hello-world --pr-number 42
For each changed file, the output includes: