GitHub Pull Request の作成、レビュー依頼、マージなど PR に関する操作を包括的にサポートします。
Manages GitHub pull requests including creation, review assignment, merging, and branch cleanup.
/plugin marketplace add shiiman/claude-code-plugins/plugin install shiiman-git@shiiman-claude-code-pluginsGitHub Pull Request の作成、レビュー依頼、マージなど PR に関する操作を包括的にサポートします。
# 基本的な PR 作成
gh pr create \
--title "feat: 機能追加" \
--body "## 概要\n\n変更内容\n\n## 関連 Issue\n\nCloses #123"
# ドラフト PR
gh pr create --draft
# レビュアー指定
gh pr create --reviewer "@user1,@user2"
# ラベル指定
gh pr create --label "enhancement"
# PR 一覧
gh pr list
# 自分の PR
gh pr list --author "@me"
# レビュー待ちの PR
gh pr list --search "is:open review:required"
# 特定のラベル
gh pr list --label "bug"
# レビュアー追加
gh pr edit {pr番号} --add-reviewer "@user"
# ラベル追加
gh pr edit {pr番号} --add-label "ready-for-review"
# タイトル変更
gh pr edit {pr番号} --title "新しいタイトル"
# 本文変更
gh pr edit {pr番号} --body "新しい本文"
# PR の詳細
gh pr view {pr番号}
# JSON 形式で取得
gh pr view {pr番号} --json title,body,reviews,reviewDecision,mergeable
# チェック状態
gh pr checks {pr番号}
# マージ(スカッシュ)
gh pr merge {pr番号} --squash
# マージ(リベース)
gh pr merge {pr番号} --rebase
# マージ(マージコミット)
gh pr merge {pr番号} --merge
# ブランチ削除付きマージ
gh pr merge {pr番号} --squash --delete-branch
# レビュー(承認)
gh pr review {pr番号} --approve
# レビュー(コメント)
gh pr review {pr番号} --comment --body "LGTM!"
# レビュー(変更要求)
gh pr review {pr番号} --request-changes --body "修正が必要です"
| タイプ | 説明 | 例 |
|---|---|---|
| feat | 新機能 | feat: ユーザー認証機能を追加 |
| fix | バグ修正 | fix: ログインエラーを修正 |
| docs | ドキュメント | docs: README を更新 |
| refactor | リファクタリング | refactor: 認証ロジックを整理 |
| chore | その他 | chore: 依存関係を更新 |
| test | テスト | test: ユーザーサービスのテストを追加 |
| # | タイトル | ブランチ | 状態 | レビュー |
|---|---|---|---|---|
| 10 | feat: 新機能 | feature/5 | Open | ⏳ 待機中 |
| 8 | fix: バグ修正 | fix/3 | Open | ✅ 承認済 |
# PR を作成
現在のブランチで PR を作成して
# レビュアーを追加
PR #10 に @user をレビュアーとして追加して
# PR をマージ
PR #10 をスカッシュマージして
# マージ後のクリーンアップ
マージ済みのブランチを削除して
Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Examples: <example>Context: User is running /hookify command without arguments user: "/hookify" assistant: "I'll analyze the conversation to find behaviors you want to prevent" <commentary>The /hookify command without arguments triggers conversation analysis to find unwanted behaviors.</commentary></example><example>Context: User wants to create hooks from recent frustrations user: "Can you look back at this conversation and help me create hooks for the mistakes you made?" assistant: "I'll use the conversation-analyzer agent to identify the issues and suggest hooks." <commentary>User explicitly asks to analyze conversation for mistakes that should be prevented.</commentary></example>