create-pr
Create a pull request for the current branch
When & Why to Use This Skill
This Claude skill automates the GitHub Pull Request (PR) creation process to streamline software development workflows. By integrating Git and GitHub CLI (gh) commands, it handles branch diffing, generates structured PR titles and summaries, ensures code is pushed to the remote repository, and automatically assigns the PR to the creator. It is designed to enhance developer productivity and maintain high standards for repository documentation and code review readiness.
Use Cases
- Automating the transition from local feature development to formal code review by generating standardized GitHub Pull Requests.
- Ensuring consistent PR documentation across a team by automatically applying templates that include summaries and test plans.
- Reducing manual CLI overhead by combining 'git push' and 'gh pr create' into a single, intelligent automated action.
- Improving repository organization by ensuring all PRs are correctly assigned and targeted at the main branch by default.
| name | create-pr |
|---|---|
| description | Create a pull request for the current branch |
| allowed-tools | Bash(git:*), Bash(gh:*) |
Create PR
Instructions
現在のブランチのPRを作成する。
- 現在のブランチとmainの差分を確認
- 変更内容を要約したPRタイトル・本文を作成
- pushされていなければ先にpushする
gh pr create --assignee @meでPRを作成(Assignee は必ず @me を設定)- PRのURLを表示する
PR Format
Title: 簡潔な日本語タイトル
## Summary
- 変更点を箇条書きで
## Test Plan
- テスト方法を箇条書きで
Notes
- ベースブランチは
main - タイトル・本文は日本語
- Assignee は必ず
@meを設定すること