pr

A guided command for preparing and creating a GitHub pull request, which is a request to merge code changes into another branch. It formats the code, reviews changed files, stages selected files, and uses the repository's instructions.

In plain words
What is it for?
Use it to inspect branch changes, choose files to stage, determine the target branch, draft the pull request details, and create the pull request with GitHub's command-line tool.
Why use it?
It helps avoid including unrelated files or targeting the wrong base branch when submitting changes for review.

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

Made for: Claude Code.

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 265 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.00011 $0.00265
Opus 5 $0.00005 $0.00133
Sonnet 5 $0.00002 $0.00053
Haiku 4.5 $0.00001 $0.00026

Measured 2d ago against content hash fcc3508f9745, 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.

.claude/commands/pr.md · 35 lines

What it actually says

Prepare and create pull request

First, let me run the formatting script:

! bash scripts/format.sh

Now let me check what files were modified:

! git status --short

Let me also check if there's a CLAUDE.md with PR instructions:

@CLAUDE.md

Steps to create PR:

  1. Review the changed files listed above and determine which ones are related to our current work
  2. Stage only the relevant files - I'll ask you to confirm which files to stage if there are unrelated changes
  3. Determine the base branch:
    • If you provided an argument: use $1
    • Otherwise, I'll ask you to confirm if it should be develop (the usual default) or another branch
  4. Create the PR using the gh CLI tool according to any instructions in CLAUDE.md
  5. Ask you for:
    • PR title (if not obvious from the changes)
    • PR description (I'll draft one based on the changes)

Let's proceed! Based on the git status above, which files should we stage for this 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 · 35 lines · 11 tokens per session scan A fcc3508f9745

Subscribe to this mod's changes

pr is a command published in the GitHub repository zenml-io/zenml (5,572 stars, last pushed today), licensed Apache-2.0. It adds 11 tokens to every session and 265 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-08-30.