pr

A command that creates a GitHub pull request, which is a proposed code change for review and merging into a shared repository.

In plain words
What is it for?
Use it to check the branch, commit and push pending changes when needed, review its commits, generate the pull-request text, and create the request with the GitHub CLI.
Why use it?
It gathers the branch changes, prepares a consistent summary and test plan, and handles the GitHub submission steps in one workflow.

Command

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/xiaobei930/cc-best/pr
Clone the repo
git clone --depth 1 https://github.com/xiaobei930/cc-best
Per session 3 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 278 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.00003 $0.00278
Opus 5 $0.00002 $0.00139
Sonnet 5 $0.00001 $0.00056
Haiku 4.5 $0.00000 $0.00028

Measured 2d ago against content hash f822941e8572, 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 2d 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 · 49 lines

What it actually says

/pr - 创建 Pull Request

创建 GitHub Pull Request。

任务

  1. 检查当前分支状态
  2. 确保所有更改已提交并推送
  3. 分析分支上的所有提交
  4. 生成 PR 标题和描述
  5. 使用 gh 命令创建 PR

PR 格式

## Summary

- 主要更改点

## Test plan

- [ ] 测试项目

执行步骤

  1. 检查 git status 和 remote 状态
  2. 如需要,推送到远程
  3. 分析所有相关提交
  4. 生成 PR 内容
  5. 创建 PR 并返回 URL

注意事项

  • 需要 GitHub CLI (gh) 已安装并认证
  • 默认目标分支为 main/master
  • 重要代码变更建议先调用 code-reviewer agent 进行代码审查

参考

  • 完整 Git 工作流规范请参考 skills/git/SKILL.md

记住: 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. 2d ago First seen · 49 lines · 3 tokens per session scan A f822941e8572

Subscribe to this mod's changes

pr is a command published in the GitHub repository xiaobei930/cc-best (50 stars, last pushed 2mo ago), licensed MIT. It adds 3 tokens to every session and 278 once invoked, about $0.0000 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-30.