pr-description-ja

pr-description-ja is a command for Claude Code from yuji0809/cc-recommender. It costs 25 tokens per session (1,204 once invoked), scanned A, original, MIT.

A command that reviews the current Git branch and drafts a pull request description in Japanese. A pull request is a request to merge code changes into another branch.

In plain words
What is it for?
Use it to prepare Japanese pull request text covering the change type, affected files, testing, and other details from the branch history and diff.
Why use it?
It removes the need to manually collect commit and file-change details and organize them into a consistent review summary.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/yuji0809/cc-recommender/pr-description
Clone the repo
git clone --depth 1 https://github.com/yuji0809/cc-recommender

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-description-ja

README.md
[![agentmods](https://agentmods.dev/badge/commands/yuji0809/cc-recommender/pr-description.svg)](https://agentmods.dev/commands/yuji0809/cc-recommender/pr-description)
Your own site
<a href="https://agentmods.dev/commands/yuji0809/cc-recommender/pr-description"><img src="https://agentmods.dev/badge/commands/yuji0809/cc-recommender/pr-description.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,204 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.01204
Opus 5 $0.00013 $0.00602
Sonnet 5 $0.00005 $0.00241
Haiku 4.5 $0.00003 $0.00120

Measured 3d ago against content hash 94f03dfd5c0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pr-description-ja scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/pr-description.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

実行指示

現在のブランチの変更内容を分析し、日本語で包括的なPull Request descriptionを生成してください。

実行手順

1. ベースブランチの判定

以下のコマンドでベースブランチを検出:

BASE_BRANCH=$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name 2>/dev/null || echo "main")
echo "Base branch: ${BASE_BRANCH}"

2. 変更内容の分析

コミット履歴とファイル変更を取得:

# コミットメッセージを取得
git log ${BASE_BRANCH}..HEAD --pretty=format:"%s"

# 変更されたファイルを取得
git diff ${BASE_BRANCH}...HEAD --name-status

# ファイル統計を取得
git diff ${BASE_BRANCH}...HEAD --stat

3. 変更タイプの自動判定

コミットメッセージとファイルパターンから変更タイプを判定:

  • 🐛 Bug fix: fix: で始まるコミット
  • ✨ New feature: feat: で始まるコミット、または src/ 配下の新規ファイル
  • 💥 Breaking change: BREAKING CHANGE を含む、または feat!:, fix!: のコミット
  • 📝 Documentation update: docs: で始まるコミット、または *.md ファイルのみの変更
  • 🎨 Code style update: style: で始まるコミット
  • ♻️ Refactoring: refactor: で始まるコミット
  • ⚡ Performance improvement: perf: で始まるコミット
  • ✅ Test update: test: で始まるコミット、または *.test.ts ファイルのみの変更

4. 既存PRの確認

gh pr view --json url,title,state 2>/dev/null

PRが既に存在する場合は、更新するか、生成した内容を表示するだけかをユーザーに確認してください。

5. PR Descriptionの生成

.github/PULL_REQUEST_TEMPLATE.md のテンプレートに従い、日本語で包括的なPR descriptionを生成:

構成:

  • Description(概要): コミットメッセージから変更内容を要約
  • Changed Files(変更ファイル): 新規ファイルと変更ファイルを簡潔に説明
  • Motivation and Context(動機と背景): なぜこの変更が必要かを説明
  • Type of Change(変更タイプ): 分析結果に基づき該当項目にチェック
  • How Has This Been Tested(テスト方法): 実行したテストコマンドを記載
  • Checklist(チェックリスト): 完了した項目をマーク
  • Additional Notes(補足事項): 実装アプローチ、今後の改善案、破壊的変更(ある場合)

重要:

  • 明確で分かりやすい日本語で記述
  • 簡潔かつ包括的に
  • ファイル統計(変更ファイル数、追加行数、削除行数)を含める
  • カテゴリごとにグループ化(新規ファイル vs 変更ファイル)
  • 共同執筆者の行を追加: Co-Authored-By: Claude Sonnet 4.5 <[email protected]>

6. PRの更新または作成

PRが存在する場合:

# 一時ファイルに保存
# gh pr edit --body-file /tmp/pr-description.md で更新

PRが存在しない場合:

# 新規PR作成の確認をユーザーに求める
# はいの場合: gh pr create --title "..." --body-file /tmp/pr-description.md --base ${BASE_BRANCH}

7. クリーンアップ

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 120 lines · 25 tokens per session scan A 94f03dfd5c0d

Subscribe to this mod's changes

pr-description-ja is a command published in the GitHub repository yuji0809/cc-recommender (10 stars, last pushed 3mo ago), licensed MIT. It adds 25 tokens to every session and 1,204 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.