pr
Push committed changes and create or update a pull request
- License 许可
- MIT
- 最近更新
- 2026-09-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pr
- description
- Push committed changes and create or update a pull request
03 SKILL.md 正文
pr - Push and Create PR
Push committed changes to the remote and create or update a pull request.
This skill handles PR creation only. Review is offered as a next action after completion.
Workflow
Step 1: Check Current State
Run the following commands to understand the current state:
git branch --show-currentto check the current branchgit statusto check for uncommitted changesgit log --oneline origin/<branch>..HEAD 2>/dev/null || git log --oneline -5to check for unpushed commits
If on the main branch: Warn that pushing directly to main is not allowed. Suggest creating a feature branch with the implement skill or manually with git checkout -b <branch>, then end.
If there are uncommitted changes: Suggest committing first with the commit skill, then end.
If there are no commits to push: Inform the user that there are no commits to push and end.
Step 2: Push and Create PR
- Run
git push -u origin <branch>to push to the remote - Create or update the PR:
- Run
gh pr viewto check for an existing PR - If no existing PR: Run
gh pr create --title "<title>" --body "<body>"to create a new PR. Use the first line of the most recent commit message as the title - If a PR already exists: Push only (the PR updates automatically)
- Run
- Report the PR URL to the user
PR body format:
## Summary
- <bullet points describing the changes>
Closes #N <!-- Only when originating from an issue. Infer issue number from branch name or commits -->
## Test plan
- [ ] TypeScript tests pass
- [ ] Python tests pass
- [ ] CDK tests pass
Step 3: Completion Report
Report the results:
Done:
Branch: feat/add-auth
PR: https://github.com/owner/repo/pull/123
Next Actions
After reporting completion, ask the user which action to take next:
- Review the PR - Read
.agents/skills/review/SKILL.mdand follow its workflow - Merge the PR - Run
gh pr merge --squash --delete-branchand report the result
04 同仓库更多 Skills
test
全テストを実行し、結果を報告する
ship
lint・テスト・コミット・PR 作成を一括実行する
setup
開発環境のフルセットアップを行う
review
コード変更や PR をレビューし、問題点・改善案を報告する
pr
変更を push し、PR を作成・更新する
lint
全リンターを自動修正付きで実行し、結果を報告する