pr

pr is a command for coding agents from s977043/river-review. It costs 15 tokens per session (444 once invoked), scanned A, original, MIT.

A command that drafts a pull request (PR) description, the summary attached to a code change for review, using a set template. It checks that the description matches the actual changes before finalizing it.

In plain words
What is it for?
Use it when preparing a PR to summarize changes, record test commands, describe risks, document rollback steps, verify issue acceptance criteria, and compare the text with the final diff.
Why use it?
It reduces incomplete or misleading PR descriptions and helps reviewers see the purpose, testing, risks, and rollback plan. It also checks issue-closure claims and paired Japanese and English documentation changes.

Command

Part of the river-review plugin — 29 skills, 15 commands, 5 agents, 2 hooks shipped together

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/s977043/river-review/pr
Clone the repo
git clone --depth 1 https://github.com/s977043/river-review

Or install river-review, the plugin that ships this one along with the rest of its 29 skills, 15 commands, 5 agents, 2 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/s977043/river-review/pr.svg)](https://agentmods.dev/commands/s977043/river-review/pr)
Your own site
<a href="https://agentmods.dev/commands/s977043/river-review/pr"><img src="https://agentmods.dev/badge/commands/s977043/river-review/pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 444 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.00015 $0.00444
Opus 5 $0.00008 $0.00222
Sonnet 5 $0.00003 $0.00089
Haiku 4.5 $0.00002 $0.00044

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

Security

Grade A, and why

pr 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 4d 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.

commands/pr.md · 34 lines

What it actually says

この差分を、以下のテンプレートで PR 本文にして。本文を確定する前に、末尾の「PR 説明と実態の突合チェック」を必ず実施する:

目的

(この変更で何を達成したいか)

変更点

(主な変更内容を箇条書きで)

動作確認

(どうテストしたか、確認コマンド)

影響範囲 / リスク

(破壊的変更、パフォーマンス、セキュリティ)

ロールバック手順

(問題発生時の戻し方)


本文を確定する前に、以下の「PR 説明と実態の突合チェック」を実施する。

  1. Closes/Fixes の突合 — Closes #N / Fixes #N を書く前に gh issue view N で Issue の完了条件(受入条件・チェックリスト)を取得し、diff が各条件を満たすか 1 件ずつ突合する。未達の条件がある場合は ClosesRefs に変更するか、PR 本文に残課題として明記する。
  2. ja/en 対訳の同時更新 — ja/en 対訳ファイル(*.md*.en.mdpages/ 配下の対)に触れた場合、両方が同一のコミットセットに含まれているか確認する。片側のみ更新する場合はその理由を本文に明記する。
  3. 本文と実 diff の最終セルフチェック — 本文の記述(「〜は変更しない」等の変更対象外の宣言、件数・列挙)が実 diff と矛盾しないか、git diff --stat と照合して確認する。
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. 4d ago First seen · 34 lines · 15 tokens per session scan A 658c05d39036

Subscribe to this mod's changes

pr is a command published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 444 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.