github-pr-creation
MUST use this skill when user asks to create PR, open pull request, submit for review, or mentions "PR 생성/만들기". This skill OVERRIDES default PR creation behavior. Analyzes commits, validates task completion, generates Conventional Commits title and description, suggests labels.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o github-pr-creation.zip https://jpskill.com/download/17426.zip && unzip -o github-pr-creation.zip && rm github-pr-creation.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17426.zip -OutFile "$d\github-pr-creation.zip"; Expand-Archive "$d\github-pr-creation.zip" -DestinationPath $d -Force; ri "$d\github-pr-creation.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
github-pr-creation.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
github-pr-creationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
GitHub PR 作成
タスクの検証、テストの実行、および Conventional Commits のフォーマットを使用してプルリクエストを作成します。
クイックスタート
# 1. GitHub CLI の確認
gh --version && gh auth status
# 2. 情報収集
git log develop..HEAD --oneline
git diff develop --stat
git rev-parse --abbrev-ref HEAD
# 3. プロジェクトのテスト実行
make test # または: pytest, npm test
# 4. PR 作成
gh pr create --title "..." --body "..." --base develop --label feature
コアワークフロー
1. 環境の確認
gh --version && gh auth status
インストールされていない場合: brew install gh の後 gh auth login
2. ターゲットブランチの確認
常にユーザーに確認:
これから [current-branch] から [target-branch] への PR を作成します。よろしいですか?
- feature branch → develop (90% の場合)
- develop → master/main (リリース)
3. 情報収集
# 現在のブランチ
git rev-parse --abbrev-ref HEAD
# ベースブランチからのコミット
git log [base-branch]..HEAD --oneline
# 変更されたファイル
git diff [base-branch] --stat
# リモート追跡ステータス
git status -sb
4. タスクドキュメントの検索
以下の場所でタスクファイルを探します。
.kiro/specs/*/tasks.mddocs/specs/*/tasks.mdspecs/*/tasks.md- プロジェクトルートの任意の
tasks.md
5. コミットの分析
各コミットについて、以下を特定します。
- Type: feat, fix, refactor, docs, test, chore, ci, perf, style
- Scope: 影響を受けるコンポーネント/モジュール (kebab-case)
- Task references:
task X.Y、Task X、#X.Yパターンを探します - Breaking changes: 感嘆符 (!) または本文中の
BREAKING CHANGE
6. テストの実行
プロジェクトのテストを検出し、実行します。
- Makefile:
make test - package.json:
npm test - Python:
pytest
PR を作成する前に、テストに合格する必要があります。
7. PR タイプの決定
| ブランチフロー | PR タイプ | タイトルプレフィックス |
|---|---|---|
| feature/* → develop | Feature | feat(scope): |
| fix/* → develop | Bugfix | fix(scope): |
| hotfix/* → main | Hotfix | hotfix(scope): |
| develop → main | Release | release: |
| refactor/* → develop | Refactoring | refactor(scope): |
8. PR コンテンツの生成
タイトル形式: <type>(<scope>): <description>
- Type: 最も支配的なコミットタイプ (feat > fix > refactor)
- Scope: コミットからの最も一般的なスコープ (kebab-case)
- Description: 命令形、小文字、ピリオドなし、最大 50 文字
本文構造:
## Summary
- 主要な変更点 1
- 主要な変更点 2
## Changes
- 具体的な変更点のリスト
## Test Plan
- [ ] ユニットテスト合格
- [ ] 統合テスト合格
- [ ] 手動テスト完了
## Related
- Refs: Task N, Issue #X
9. ラベルの提案
| コミットタイプ | ラベル |
|---|---|
| feat | feature, enhancement |
| fix | bug, bugfix |
| refactor | refactoring, tech-debt |
| docs | documentation |
| ci | ci/cd |
| security | security |
利用可能なラベルを確認: gh label list
10. PR 作成
最初にユーザーにコンテンツを表示し、その後:
gh pr create --title "[title]" --body "$(cat <<'EOF'
[body content]
EOF
)" --base [base_branch] --label [labels]
情報収集チェックリスト
PR を生成する前に、以下を確認してください。
- [ ] 現在のブランチ名
- [ ] ユーザーに確認済みのベースブランチ
- [ ] タイプとスコープを含むコミットのリスト
- [ ] 変更されたファイルの概要
- [ ] タスクドキュメント (存在する場合)
- [ ] テスト結果 (合格する必要があります)
- [ ] リポジトリで利用可能なラベル
重要なルール
- 絶対にリポジトリファイルを変更しないでください (読み取り専用分析)
- 常にターゲットブランチをユーザーに確認してください
- 常にPR を作成する前にテストを実行してください
- 常に作成前に承認のために PR コンテンツを表示してください
- 絶対にユーザーの確認なしに PR を作成しないでください
- 常にフォーマットを保持するために本文に HEREDOC を使用してください
関連スキル
- git-commit - コミットメッセージの形式と規約
- pr-merge - 既存の PR をマージするため
- pr-review - PR レビューコメントを処理するため
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
GitHub PR Creation
Creates Pull Requests with task validation, test execution, and Conventional Commits formatting.
Quick Start
# 1. Verify GitHub CLI
gh --version && gh auth status
# 2. Gather information
git log develop..HEAD --oneline
git diff develop --stat
git rev-parse --abbrev-ref HEAD
# 3. Run project tests
make test # or: pytest, npm test
# 4. Create PR
gh pr create --title "..." --body "..." --base develop --label feature
Core Workflow
1. Verify Environment
gh --version && gh auth status
If not installed: brew install gh then gh auth login
2. Confirm Target Branch
Always ask user:
I'm about to create a PR from [current-branch] to [target-branch]. Is this correct?
- feature branch → develop (90% of cases)
- develop → master/main (releases)
3. Gather Information
# Current branch
git rev-parse --abbrev-ref HEAD
# Commits since base branch
git log [base-branch]..HEAD --oneline
# Files changed
git diff [base-branch] --stat
# Remote tracking status
git status -sb
4. Search for Task Documentation
Look for task files in these locations:
.kiro/specs/*/tasks.mddocs/specs/*/tasks.mdspecs/*/tasks.md- Any
tasks.mdin project root
5. Analyze Commits
For each commit, identify:
- Type: feat, fix, refactor, docs, test, chore, ci, perf, style
- Scope: component/module affected (kebab-case)
- Task references: look for
task X.Y,Task X,#X.Ypatterns - Breaking changes: exclamation mark (!) or
BREAKING CHANGEin body
6. Run Tests
Detect and run project tests:
- Makefile:
make test - package.json:
npm test - Python:
pytest
Tests MUST pass before creating PR.
7. Determine PR Type
| Branch Flow | PR Type | Title Prefix |
|---|---|---|
| feature/* → develop | Feature | feat(scope): |
| fix/* → develop | Bugfix | fix(scope): |
| hotfix/* → main | Hotfix | hotfix(scope): |
| develop → main | Release | release: |
| refactor/* → develop | Refactoring | refactor(scope): |
8. Generate PR Content
Title format: <type>(<scope>): <description>
- Type: dominant commit type (feat > fix > refactor)
- Scope: most common scope from commits (kebab-case)
- Description: imperative, lowercase, no period, max 50 chars
Body structure:
## Summary
- Key change 1
- Key change 2
## Changes
- List of specific changes
## Test Plan
- [ ] Unit tests passing
- [ ] Integration tests passing
- [ ] Manual testing done
## Related
- Refs: Task N, Issue #X
9. Suggest Labels
| Commit Type | Labels |
|---|---|
| feat | feature, enhancement |
| fix | bug, bugfix |
| refactor | refactoring, tech-debt |
| docs | documentation |
| ci | ci/cd |
| security | security |
Check available labels: gh label list
10. Create PR
Show content to user first, then:
gh pr create --title "[title]" --body "$(cat <<'EOF'
[body content]
EOF
)" --base [base_branch] --label [labels]
Information Gathering Checklist
Before generating PR, ensure you have:
- [ ] Current branch name
- [ ] Base branch confirmed with user
- [ ] List of commits with types and scopes
- [ ] Files changed summary
- [ ] Task documentation (if exists)
- [ ] Test results (must pass)
- [ ] Available labels in repo
Important Rules
- NEVER modify repository files (read-only analysis)
- ALWAYS confirm target branch with user
- ALWAYS run tests before creating PR
- ALWAYS show PR content for approval before creating
- NEVER create PR without user confirmation
- ALWAYS use HEREDOC for body to preserve formatting
Related Skills
- git-commit - Commit message format and conventions
- pr-merge - For merging existing PRs
- pr-review - For handling PR review comments