Pull Requestのタイトルと説明文を設定・更新する際に呼び出してください。
Pull Requestのタイトルと説明文を自動生成・更新します。PRの差分とコミットメッセージを分析し、適切な日本語の説明文を作成して更新します。
/plugin marketplace add syou6162/claude-code-commands/plugin install syou6162-plugin@syou6162-marketplacehaikuPull Requestのタイトルと説明文を以下の手順で更新してください:
PR番号の取得
PR番号を取得(現在のブランチから):
gh pr view --json number --jq '.number'
修正内容の確認
gh pr diff
コミットメッセージの確認
gh pr view --json commits --jq '.commits[] | .messageHeadline'
説明文ファイルの準備
.github/PULL_REQUEST_TEMPLATE.mdが存在する場合はコピー:
cp .github/PULL_REQUEST_TEMPLATE.md .claude_work/pr_body_<PR番号>.md
存在しない場合は新規ファイル作成:
touch .claude_work/pr_body_<PR番号>.md
Pull Requestの説明文を作成
.claude_work/pr_body_<PR番号>.md)を編集WriteツールまたはEditツールを使用することcat <<EOF > file、echo "..." > fileなど)でファイルを書き込んではいけませんPull Requestの更新
# 修正内容を考慮したタイトルと説明文を更新
gh pr edit --title "修正内容を考慮したタイトル" --body-file .claude_work/pr_body_<PR番号>.md
更新後の確認と文字化けチェック
# 更新されたPRの内容を確認
gh pr view
.claude_work/pr_body_<PR番号>.md を確認し、UTF-8エンコーディングで保存されているか確認gh pr edit --body-file .claude_work/pr_body_<PR番号>.md で更新gh pr view で確認.github/PULL_REQUEST_TEMPLATE.mdが存在する場合:
.github/PULL_REQUEST_TEMPLATE.mdが存在しない場合:
--body-fileオプションを使用して安全に更新.claude_work/pr_body_<PR番号>.md)は削除せず残しておくWriteツールまたはEditツールを使用することcat <<EOF > file、cat << 'EOF' > file、echo "..." > fileなど)でファイルを書き込まないこと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>