Borrowing it
Nothing to install: this file belongs to yuji0809/cc-recommender. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/yuji0809/cc-recommender/main/.claude/commands/pr-description.mdgit clone --depth 1 https://github.com/yuji0809/cc-recommenderWrote 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.
[](https://agentmods.dev/commands/yuji0809/cc-recommender/pr-description)<a href="https://agentmods.dev/commands/yuji0809/cc-recommender/pr-description"><img src="https://agentmods.dev/badge/commands/yuji0809/cc-recommender/pr-description/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00025 | $0.01204 |
| Opus 5.5 | $0.00010 | $0.00482 |
| Sonnet 5.5 | $0.00005 | $0.00241 |
| Haiku 4.5 | $0.00003 | $0.00120 |
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 1mo 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.
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. クリーンアップ
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.
- 1mo ago First seen · 120 lines · 25 tokens per session scan A 94f03dfd5c0d
pr-description-ja is a command published in the GitHub repository yuji0809/cc-recommender (10 stars, last pushed 5mo ago), licensed MIT. It adds 25 tokens to every session and 1,204 once invoked, about $0.0001 per session on Opus 5.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.
Other commands, from other repositories
create-pr
Run PR checks, push to remote, create PR, and generate description automatically.
generate-pr-desc
Generate and update PR description from branch commits using GitHub CLI.
pr-ready
Run the project's pre-commit review loop to determine whether the current branch is ready to push — lint, tests, parallel pr-review-toolkit agents plus an over-engineering audit, fix-and-re-run until convergence.
nyann:doctor
Run nyann's read-only hygiene + documentation audit on the current repo. Emits the same drift sections retrofit uses, but never offers remediation or writes to the filesystem. Use this on session start, in CI, or any time you want to sanity-check a repo without risking mutations.
nyann:retrofit
Audit an existing repo against a profile and fix what's drifted. Unlike doctor (read-only), retrofit detects missing hooks, misconfigured gitignore, documentation gaps, and non-compliant history, then offers to remediate via bootstrap. Idempotent — safe to re-run.
nyann:hotfix
Create the branch topology for a patch release against a previously tagged version. Ensures release/ . exists from the source tag, then creates hotfix/ off it. After this, the user commits the fix and runs /nyann:release from the hotfix branch.