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.
npx agentmods add commands/yuji0809/cc-recommender/pr-descriptiongit 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.svg" alt="Measured on agentmods" 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 | $0.00025 | $0.01204 |
| Opus 5 | $0.00013 | $0.00602 |
| Sonnet 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 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.
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.
- 3d 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 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.
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.
oss
Daily OSS contribution check - uses CLI with --json for structured data.
setup-oss
Configure OSS autopilot preferences.
nyann:diff-profile
Compare two nyann profiles side-by-side and show what changes between them: hooks, branching, CI, documentation, extras, governance. Useful before switching profiles to understand the impact.
plan
Show diff between YAML and current GitHub state. No mutations are made.