pr

A command that prepares a pull request, which is a request to merge code changes into a shared branch. It reviews the branch’s commits and changes and follows the project’s standard template.

In plain words
What is it for?
Use it to update and rebase a feature branch, inspect its changes, handle conflicts, and create a pull request with the relevant project information.
Why use it?
It helps bring the branch up to date and avoid an unclear or incorrectly scoped merge request.

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

Made for: Claude Code.

Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,321 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.00021 $0.02321
Opus 5 $0.00010 $0.01161
Sonnet 5 $0.00004 $0.00464
Haiku 4.5 $0.00002 $0.00232

Measured yesterday against content hash d7867ba9961a, 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 yesterday.

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 · 212 lines

How it starts

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

Create Pull Request

Create a pull request for the current branch using the project's standard PR template.

# Benchmark logging (entry)
bash .claude/benchmark/log.sh "pr_start" "" "" 2>/dev/null || true

Instructions

  1. Update main branch and rebase:

    • Stash any uncommitted changes first (if any): git stash push -m "Pre-rebase stash"
    • Fetch latest: git fetch origin
    • Update local main: git checkout main && git pull origin main (adjust branch name if project uses master)
    • Check for local-only main commits: git rev-list --count origin/main..main -- if non-zero, warn the user: "local main is N commits ahead of origin/main -- these will leak into PR scope. Run git reset --hard origin/main to fix."
    • Switch back to feature branch: git checkout -
    • Rebase onto updated main: git rebase main
    • Handle rebase conflicts (if any): Inform the user and help resolve them
    • Pop the stashed changes (if any): git stash pop
  2. Gather branch information by running these commands in parallel:

    • git status -- check for uncommitted changes
    • git branch --show-current -- get current branch name
    • git log origin/main..HEAD --oneline -- list all commits on this branch
    • git diff origin/main...HEAD --stat -- summary of all committed changes
    • git diff --stat -- summary of uncommitted changes
    • gh pr list --head $(git branch --show-current) --json number,url,state -- check if PR already exists
  3. Handle existing PR: If a PR already exists, ASK THE USER which workflow they want:

    • Option A: AI feedback workflow -- reset and recreate all commits (soft reset to main, reorganize)
    • Option B: Incremental workflow -- add new commits on top
  4. Handle main branch (if current branch is main/master):

    • Create a new feature branch from changes
    • Generate a descriptive branch name (e.g., fix/lint-errors, feat/add-caching)
    • Continue PR process on the new branch

Read the full file on GitHub · 212 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. yesterday First seen · 212 lines · 21 tokens per session scan A d7867ba9961a

Subscribe to this mod's changes

pr is a command published in the GitHub repository xsovad06/sova (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 21 tokens to every session and 2,321 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-31.