pr

A checklist for preparing code changes for a pull request, which is a request for others to review and merge your work. It covers reviewing changes, staging files, writing a standard commit message, and summarising the work.

In plain words
What is it for?
Checking a diff, staging changes, preparing a conventional commit message, and writing a pull request summary with tests and possible risks.
Why use it?
It reduces the chance of submitting unwanted files or leaving reviewers without the context they need. It also makes the change history easier to understand.

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/liaogui1023/coding-plugin/pr
Clone the repo
git clone --depth 1 https://github.com/liaogui1023/coding-plugin

Made for: Claude Code.

Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 235 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.00011 $0.00235
Opus 5 $0.00005 $0.00118
Sonnet 5 $0.00002 $0.00047
Haiku 4.5 $0.00001 $0.00023

Measured yesterday against content hash 8d26b9b2f54a, 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 yesterday.

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.md · 29 lines

What it actually says

Pull Request Preparation Checklist / PR 准备清单

在创建 PR 之前,请按下面步骤执行:

  1. 检查 diff:git diff HEAD
  2. 暂存改动:git add .
  3. 生成符合 conventional commits 的提交信息:
    • fix: bug 修复
    • feat: 新功能
    • docs: 文档变更
    • refactor: 代码重构
    • test: 测试补充
    • chore: 维护项
  4. 输出 PR 摘要,至少包括:
    • 改了什么
    • 为什么改
    • 做了哪些测试
    • 可能影响到什么

要求:

  • 先检查是否有明显不该提交的内容
  • 优先让用户看到摘要和风险点
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. yesterday First seen · 29 lines · 11 tokens per session scan A 8d26b9b2f54a

Subscribe to this mod's changes

pr is a command published in the GitHub repository liaogui1023/coding-plugin (2 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 235 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.