coding-plugin: Command for Claude Code

.claude/commands/pr.md

pr is a command for Claude Code from liaogui1023/coding-plugin. It costs 11 tokens per session (235 once invoked), scanned A, original, MIT.

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

Written for Claude Code: allowed-tools in frontmatter.

This is liaogui1023/coding-plugin's own configuration. It tells Claude Code how to work on coding-plugin itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything coding-plugin configures →

Reuse

Borrowing it

Nothing to install: this file belongs to liaogui1023/coding-plugin. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/liaogui1023/coding-plugin/main/.claude/commands/pr.md
Clone the repo
git clone --depth 1 https://github.com/liaogui1023/coding-plugin

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/liaogui1023/coding-plugin/pr/github.svg)](https://agentmods.dev/commands/liaogui1023/coding-plugin/pr)
Your own site
<a href="https://agentmods.dev/commands/liaogui1023/coding-plugin/pr"><img src="https://agentmods.dev/badge/commands/liaogui1023/coding-plugin/pr/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.

agentmods 80×15 button for pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/liaogui1023/coding-plugin/pr"><img src="https://agentmods.dev/badge/commands/liaogui1023/coding-plugin/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00011 $0.00235
Opus 5.5 $0.00004 $0.00094
Sonnet 5.5 $0.00002 $0.00047
Haiku 4.5 $0.00001 $0.00023

Measured 1mo ago against content hash 8d26b9b2f54a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

.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. 1mo ago 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 3mo ago), licensed MIT. It adds 11 tokens to every session and 235 once invoked, about $0.0000 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.