一键导入
gh-pr-review-comment
Add a review comment to a specific line in a GitHub pull request. Use when the user wants to comment on specific code in a PR diff.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a review comment to a specific line in a GitHub pull request. Use when the user wants to comment on specific code in a PR diff.
用 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 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.
| name | gh-pr-review-comment |
| description | Add a review comment to a specific line in a GitHub pull request. Use when the user wants to comment on specific code in a PR diff. |
| allowed-tools | Bash(python3 *) |
Add a review comment to a specific line in a GitHub pull request diff. The comment is placed at a specific position in the diff and automatically prefixed with an AI identifier.
python3 .claude/skills/gh-pr-review-comment/scripts/add_review_comment.py --owner OWNER --repo REPO --pr-number PR_NUMBER --body "COMMENT" --path FILE_PATH --position POSITION
| Argument | Required | Description |
|---|---|---|
--owner | Yes | Repository owner (username or organization) |
--repo | Yes | Repository name |
--pr-number | Yes | Pull request number |
--body | Yes | Comment content (will be prefixed with "[AI] Generated using MCP") |
--path | Yes | Relative path to the file being commented on |
--position | Yes | Position in the diff where the comment should be placed (use gh-pr-changes skill to find valid positions) |
Add a review comment on a specific line:
python3 .claude/skills/gh-pr-review-comment/scripts/add_review_comment.py --owner octocat --repo hello-world --pr-number 42 --body "Consider using a constant here instead of a magic number." --path src/utils.ts --position 5
Add a review comment suggesting a fix:
python3 .claude/skills/gh-pr-review-comment/scripts/add_review_comment.py --owner octocat --repo hello-world --pr-number 42 --body "This function should handle the null case." --path src/api/handler.ts --position 12