pr
Create pull requests with conventional titles using gh CLI. Use when creating PRs, opening pull requests, or pushing branches for review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create pull requests with conventional titles using gh CLI. Use when creating PRs, opening pull requests, or pushing branches for review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run OpenAI Codex code review on current changes or review a plan/design. Use when user asks to review code, review implementation, or run codex review.
Create conventional commit messages without co-author labels. Use when committing code changes or formatting git history.
| name | pr |
| description | Create pull requests with conventional titles using gh CLI. Use when creating PRs, opening pull requests, or pushing branches for review. |
| metadata | {"version":"1.0.0"} |
Create pull requests with conventional commit-style titles using the gh CLI. Never add co-author labels.
<type>(<scope>): <subject>
Same types and scopes as conventional commits — see /commit skill for the full list.
Keep titles under 72 characters. Use the description for details, not the title.
Co-Authored-By lines anywheremaster unless specified otherwiseCheck the current branch and understand the scope of changes:
git branch --show-current
git status
git log --oneline master..HEAD
git diff master...HEAD --stat
If on master — you cannot push directly. Create a new branch first:
git checkout -b <type>/<short-description>
Branch naming: feat/add-report-notifications, fix/cron-duplicate, chore/bump-ui-kit, etc.
If there are uncommitted changes, they will carry over to the new branch.
If the branch has not been pushed yet:
git push -u origin HEAD
Analyze all commits on the branch (not just the latest) to draft the title and summary
Create the PR using a HEREDOC for the body:
gh pr create --title "type(scope): subject line here" --body "$(cat <<'EOF'
## Summary
- Brief bullet points explaining the changes
## Test plan
- [ ] How to verify these changes work
EOF
)"
Return the PR URL to the user
## Summary
- 1-3 bullet points describing what changed and why
## Test plan
- [ ] Steps or checks to verify the changes
Keep it concise. No fluff, no emojis, no generated-by footers.
Title examples:
feat(console-ui): add scheduled report notifications
fix(console-server): prevent duplicate cron triggers
refactor(cloud-router): extract auth middleware into module
chore: bump ui-kit to v0.15.0 across packages
fix(ai-engineer): handle streaming timeout on large contexts
Full example:
gh pr create --title "feat(console-ui): add scheduled report notifications" --body "$(cat <<'EOF'
## Summary
- Add email and Slack notifications for scheduled report runs
- Support configurable notification channels per report
- Handle delivery failures with retry logic
## Test plan
- [ ] Create a scheduled report and verify notification is sent
- [ ] Test failure retry by simulating a delivery error
- [ ] Verify notification preferences persist across sessions
EOF
)"
gh pr create --base <branch> ...gh pr create --draft ...gh pr create --reviewer user1,user2 ...gh pr create --label "bug,priority" ...