open-pr
Generates a PR summary from local git changes and opens the pull request on GitHub automatically. Use when the user asks to open, create, or submit a PR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates a PR summary from local git changes and opens the pull request on GitHub automatically. Use when the user asks to open, create, or submit a PR.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | open-pr |
| description | Generates a PR summary from local git changes and opens the pull request on GitHub automatically. Use when the user asks to open, create, or submit a PR. |
Generates a PR description from local changes and creates the pull request on GitHub using gh.
Gather change context
git status to get the current branch name.git log origin/main..HEAD --oneline to see commits on the branch.git diff origin/main..HEAD to understand what changed.Ensure changes are on a feature branch
main (or the default branch):
git diff and git status) to infer a branch name in kebab-case that matches the type of change (e.g. docs/update-readme, feat/add-login, fix/crash-on-startup).git checkout -b <inferred-branch-name> to create and switch to the new branch.git add -A and commit them with an appropriate conventional-commit message.main and no staged/unstaged changes, inform the user and stop.Infer the PR title
Infer type of change From the diff and file list, choose one or more types that fit:
Write the summary as topic bullets
Push and create the PR
git push -u origin <branch>.gh pr create using --title, --head, --base main, and --body with the generated description.Use this exact structure. Do NOT include a "Suggested Commit" section.
## ✨ Summary
- <topic 1>
- <topic 2>
- ...
## 🔧 Type of Change
- [ ] ✨ Enhancement
- [ ] 🐞 Bug fix
- [ ] 🔐 Security fix
- [ ] 💥 Breaking change
- [ ] 🚀 New feature
- [ ] 📦 New release
- [ ] 📚 Documentation
- [ ] ♻️ Refactor
main. If the current branch is main, automatically create a feature branch, commit the changes, and continue.main and no local changes exist, inform the user and stop.