pr

pr is a command for Claude Code from kavo-labs/kavo. It costs 15 tokens per session (848 once invoked), scanned A, original, Apache-2.0.

A command for checking, pushing, and creating or updating a GitHub pull request from the current branch. It runs the project's checks and documentation-link validation before pushing.

In plain words
What is it for?
Use it to run the local gate, push a completed feature branch, and open or update its pull request.
Why use it?
It stops an unsafe or incomplete branch from being pushed when the branch is main, the worktree is dirty, or checks fail.

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

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/kavo-labs/kavo/pr.svg)](https://agentmods.dev/commands/kavo-labs/kavo/pr)
Your own site
<a href="https://agentmods.dev/commands/kavo-labs/kavo/pr"><img src="https://agentmods.dev/badge/commands/kavo-labs/kavo/pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 848 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.00015 $0.00848
Opus 5 $0.00008 $0.00424
Sonnet 5 $0.00003 $0.00170
Haiku 4.5 $0.00002 $0.00085

Measured 3d ago against content hash 8c9b39f7b29c, 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 3d 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 · 73 lines

How it starts

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

Context

  • Branch: !git rev-parse --abbrev-ref HEAD
  • Working tree: !git status --short
  • Commits on branch: !git log main..HEAD --oneline
  • Remote: !git remote -v | head -1 || echo "NO REMOTE"
  • Existing PR for this branch: !gh pr view --json number,url,isDraft 2>/dev/null || echo "NO PR"

Your task

Push this branch and create or update its PR. Notes: $ARGUMENTS

  1. Refuse to push if any of these hold — say which one, and stop:

    • the branch is main;
    • there is no GitHub remote;
    • the working tree is dirty (commit with /commit first);
    • there are no commits on the branch.
  2. Run the gate for real:

    pnpm check
    pnpm docs:links
    

    If build, typecheck, depcruise, or the tests fail, stop and report the failure output. A red gate is never pushed, and never worked around. The same goes for docs:links — it is a separate CI job, so pnpm check passing says nothing about it, and pushing without it means finding out from a red job instead of from a one-second local run.

  3. Push:

    git push -u origin HEAD
    
  4. Create the PR, or update it if one already exists (see the context above):

    • No PR yetgh pr create. Use --draft if the user asked for a draft or if anything non-blocking is still open. The description should say:
      • What changed and why, in a short paragraph — not a file list.
      • Closes #<n> for the issue, so the merge closes it automatically. Get <n> from the branch name, which the conventions skill fixes as <type>/<issue-number>-<short-slug> — the Branch: line in the context above is enough to read it off. If $ARGUMENTS names an issue explicitly (#123), that wins; if neither yields a number, say so and open the PR without the trailer rather than guessing one, since a wrong Closes silently closes someone else's issue on merge. A PR covering more than one issue gets one Closes #<n> line each.
      • Public API impact — barrel changes, and whether they are breaking. Write "none" when there are none; do not omit the line.
      • Testing — what was added, and the verified pnpm check result.
      • Review notes — anything you want a reviewer to look at hardest, and any non-blocking findings deliberately left for later.

Read the full file on GitHub · 73 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. 3d ago First seen · 73 lines · 15 tokens per session scan A 8c9b39f7b29c

Subscribe to this mod's changes

pr is a command published in the GitHub repository kavo-labs/kavo (12 stars, last pushed yesterday), licensed Apache-2.0. It adds 15 tokens to every session and 848 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-09-02.