一键导入
pr-create
Create a pull request with title and body based on commits
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a pull request with title and body based on commits
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | pr-create |
| disable-model-invocation | true |
| allowed-tools | Bash(git branch:*), Bash(git log:*), Bash(git diff:*), Bash(git ls-remote:*), Bash(gh pr:*) |
| description | Create a pull request with title and body based on commits |
The user invoking /pr-create IS the explicit intent to create the PR — do NOT ask for approval.
Self-contained: this skill reads git and runs gh pr create directly from
the top-level session. Do NOT spawn a subagent.
ABSOLUTELY NEVER run git push or any git write command — not directly, not
through Bash, not under any circumstances. The branch is expected to be
already pushed. NEVER use gh pr create --push.
origin/<base>..HEAD diff.Analyze (read-only):
git branch --show-current, git log --oneline origin/<base>..HEAD, git diff --stat origin/<base>..HEAD.Title: <concise summary>
## Summary
- <bullet points>
## Why
<explanation of WHY>
## Test Plan
- [ ] <items>
Verify remote branch - git ls-remote --exit-code origin refs/heads/<branch>.
Create - Run gh pr create directly with the drafted title and body (pass the body via a HEREDOC to preserve formatting). Do NOT ask for approval — the /pr-create invocation is the explicit permission. NEVER pass --push. Present the PR URL to the user.
Create a Claude Code rule, skill, or agent — global (~/.claude) or project-local (.claude)
Code review using OpenAI Codex CLI with project context (rules, diff, conventions)
Multi-perspective code review from base branch with 3 independent reviewer agents
Analyze working tree changes, map to existing commits, and create fixup commits for autosquash
Analyze working tree changes, plan logically minimal NEW atomic commits per hunk (no fixup), and execute them
Review every commit message since base branch and add reword fixups where the message needs improvement (non-interactive)