一键导入
gh-pr-comment
Add a general comment to a GitHub pull request. Use when the user wants to post a comment on a PR conversation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a general comment to a GitHub pull request. Use when the user wants to post a comment on a PR conversation.
用 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.
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.
基于 SOC 职业分类
| name | gh-pr-comment |
| description | Add a general comment to a GitHub pull request. Use when the user wants to post a comment on a PR conversation. |
| allowed-tools | Bash(python3 *) |
Add a general comment to a GitHub pull request conversation thread.
python3 .claude/skills/gh-pr-comment/scripts/add_comment.py --owner OWNER --repo REPO --pr-number PR_NUMBER --body "COMMENT_TEXT"
| Argument | Required | Description |
|---|---|---|
--owner | Yes | Repository owner (username or organization) |
--repo | Yes | Repository name |
--pr-number | Yes | Pull request number |
--body | Yes | Comment body text to post |
Note: The comment body is automatically prefixed with [AI] Generated using MCP to identify AI-generated comments.
# Add a simple comment
python3 .claude/skills/gh-pr-comment/scripts/add_comment.py --owner octocat --repo hello-world --pr-number 42 --body "LGTM! The changes look good."
# Add a multi-line comment
python3 .claude/skills/gh-pr-comment/scripts/add_comment.py --owner myorg --repo myrepo --pr-number 15 --body "Great work on this PR.\n\nA few minor suggestions:\n- Consider adding tests\n- Update the README"