一键导入
gh-pr-create
Create a new GitHub pull request. Use when the user wants to create a PR, open a pull request, or submit changes for review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a new GitHub pull request. Use when the user wants to create a PR, open a pull request, or submit changes for review.
用 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.
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-create |
| description | Create a new GitHub pull request. Use when the user wants to create a PR, open a pull request, or submit changes for review. |
| allowed-tools | Bash(python3 *) |
GitHub Pull Request を新規作成するスキル。現在のブランチの変更をレビューに提出する際に使用する。
python3 .claude/skills/gh-pr-create/scripts/create_pr.py \
--owner <owner> \
--repo <repo> \
--title <title> \
--body <body> \
--head <head-branch> \
--base <base-branch> \
[--draft]
| Argument | Required | Description |
|---|---|---|
--owner | Yes | Repository owner (username or organization) |
--repo | Yes | Repository name |
--title | Yes | Pull request title |
--body | Yes | Pull request description body |
--head | Yes | Branch containing the changes |
--base | Yes | Branch to merge changes into |
--draft | No | Create as a draft pull request (flag, no value needed) |
Create a standard PR:
python3 .claude/skills/gh-pr-create/scripts/create_pr.py \
--owner myorg --repo myrepo \
--title "Add user authentication" \
--body "Implements JWT-based authentication flow" \
--head feature/auth --base main
Create a draft PR:
python3 .claude/skills/gh-pr-create/scripts/create_pr.py \
--owner myorg --repo myrepo \
--title "WIP: Refactor database layer" \
--body "Work in progress - refactoring database connections" \
--head refactor/db --base main \
--draft