ccc-pr

ccc-pr is a command for Claude Code from KevinZai/commander. It costs 34 tokens per session (635 once invoked), scanned A, original, MIT.

A command that commits current changes, pushes the branch to a remote Git repository, and opens a pull request using GitHub's command-line tool.

In plain words
What is it for?
Check status, create a commit, push a branch, generate a pull-request summary and labels, and return the pull-request link.
Why use it?
It gathers the repeated steps of preparing a pull request into one workflow and includes test results when available.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Good fit Check status, create a commit, push a branch, generate a pull-request summary and labels, and return the pull-request link.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kevinzai/commander/ccc-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/KevinZai/commander

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 ccc-pr

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-pr"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 635 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.00034 $0.00635
Opus 5.5 $0.00014 $0.00254
Sonnet 5.5 $0.00007 $0.00127
Haiku 4.5 $0.00003 $0.00064

Measured 6d ago against content hash a3001974ed20, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ccc-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 6d 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/ccc-pr.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/ccc-pr — pull request for the current branch

CC Commander · /ccc-pr · commits, tests, pushes and opens a PR with gh, then reports the URL.

Arguments: $ARGUMENTS (optional: PR title override, target branch).

What happens

  1. Inspect the branch:

    gh auth status
    git branch --show-current
    git status --short
    git remote show origin | sed -n 's/.*HEAD branch: //p'
    

    The last line is the default base; a target branch in $ARGUMENTS overrides it. If the current branch is the base branch, stop and offer to create a feature branch first.

  2. If there are uncommitted changes, show them and ask with AskUserQuestion:

    • 🟢 Commit them — stages the listed files by name and commits with a conventional message.
    • Leave them out — opens the PR from existing commits only.
    • Cancel — nothing is committed or pushed.
    git add <file> <file>
    git commit -m "<type>: <description>"
    
  3. If the project has tests, run them (take the command from package.json scripts or the project's CLAUDE.md) and keep the actual result for the PR body. A failure goes in the body as a failure; ask whether to continue.

  4. Push:

    git push -u origin "$(git branch --show-current)"
    
  5. Build the PR:

    • Title: the $ARGUMENTS override, else the last commit subject, else the branch name.
    • Body: summary of changes, files modified (from git diff --stat <base>...HEAD), test command and result.
    • Labels: detect from changed paths (frontend, backend, docs, and so on); apply only labels that already exist in the repository (gh label list).
    gh pr create --base <base> --title "<title>" --body-file <body-file> --label <label>
    
  6. Verify and report:

    gh pr view --json url,state,baseRefName,headRefName
    

    Output the PR URL from this command.

Done when

gh pr view returns the PR in OPEN state and its URL is reported.

Guardrails

  • Invoking /ccc-pr authorizes the push and PR for this branch only; ask before committing changes the user has not seen.
  • Never push to the base branch, force-push, or skip hooks with --no-verify.
  • Stage files by name; never git add -A on a tree with unrelated changes.

Read the full file on GitHub · 74 lines

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. 6d ago Changed · +56 lines · +14 tokens per session a3001974ed20
  2. 1mo ago First seen · 18 lines · 20 tokens per session scan A 960f62509fd0

Subscribe to this mod's changes

ccc-pr is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 635 once invoked, about $0.0001 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-09-04.