pr

pr is a command for Claude Code from xiaobei930/cc-best. It costs 3 tokens per session (278 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the cc-best plugin — 19 skills, 44 commands, 8 agents, 20 hooks shipped together

Good fit 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.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/xiaobei930/cc-best/pr
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.

Clone the repo
git clone --depth 1 https://github.com/xiaobei930/cc-best

Made for: Claude Code.

Or install cc-best, the plugin that ships this one along with the rest of its 19 skills, 44 commands, 8 agents, 20 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/xiaobei930/cc-best/pr/github.svg)](https://agentmods.dev/commands/xiaobei930/cc-best/pr)
Your own site
<a href="https://agentmods.dev/commands/xiaobei930/cc-best/pr"><img src="https://agentmods.dev/badge/commands/xiaobei930/cc-best/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/xiaobei930/cc-best/pr"><img src="https://agentmods.dev/badge/commands/xiaobei930/cc-best/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00003 $0.00278
Opus 5.5 $0.00001 $0.00111
Sonnet 5.5 $0.00001 $0.00056
Haiku 4.5 $0.00000 $0.00028

Measured 1mo ago against content hash f822941e8572, 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.

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. 1mo 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 (48 stars, last pushed 4mo ago), licensed MIT. It adds 3 tokens to every session and 278 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-30.