pr

pr is a command for Claude Code from andrei-isvoran96/claude-skill-lab. It costs 0 tokens per session (464 once invoked), scanned A, original, MIT.

A Git command workflow that prepares a pull request from the current branch into a chosen integration branch, such as main or develop. A pull request is a request for teammates to review and merge code changes.

In plain words
What is it for?
Use it to inspect a feature or bug-fix branch, push it when needed, and draft a pull request from it.
Why use it?
It gathers the branch’s commits and changes and helps produce a consistent title and description. It also checks that the work is not being submitted directly from the integration branch.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to inspect a feature or bug-fix branch, push it when needed, and draft a pull request from it.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/andrei-isvoran96/claude-skill-lab/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/andrei-isvoran96/claude-skill-lab

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/andrei-isvoran96/claude-skill-lab/pr.svg)](https://agentmods.dev/commands/andrei-isvoran96/claude-skill-lab/pr)
Your own site
<a href="https://agentmods.dev/commands/andrei-isvoran96/claude-skill-lab/pr"><img src="https://agentmods.dev/badge/commands/andrei-isvoran96/claude-skill-lab/pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 464 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.00000 $0.00464
Opus 5 $0.00000 $0.00232
Sonnet 5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00046

Measured 7d ago against content hash 0a5be3afe6a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 7d 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 · 45 lines

What it actually says

Create a pull request from the current branch towards origin/<BASE_BRANCH>.

Steps

  1. Validate the current branch. Run git branch --show-current. If the current branch is main or <BASE_BRANCH>, warn the user and stop — PRs should come from feature/bug branches.

  2. Fetch latest and check remote tracking:

    git fetch origin <BASE_BRANCH>
    
  3. Check if the branch is pushed to origin. Run git status to see if the branch tracks a remote. If not, push it first:

    git push -u origin $(git branch --show-current)
    
  4. Gather context for the PR. Run these in parallel:

    • git log --oneline origin/<BASE_BRANCH>..HEAD to see all commits on this branch
    • git diff origin/<BASE_BRANCH>...HEAD --stat to see changed files
    • git diff origin/<BASE_BRANCH>...HEAD (piped through head -6000) to see the full diff
  5. Draft the PR title and body by analyzing ALL commits and changes (not just the latest commit):

    • Title: short, under 70 characters, conventional format (e.g. fix: prevent edges disappearing when deleting branched node)
    • Body: use the template below
    • If the branch name contains an issue number (e.g. bug/207-...), include Fixes #207 in the body
  6. Create the PR using gh pr create:

    gh pr create --base <BASE_BRANCH> --title "the title" --body "$(cat <<'EOF'
    ## Summary
    <1-3 concise bullet points describing what changed and why>
    
    ## Test plan
    <Bulleted checklist of manual or automated verification steps>
    EOF
    )"
    
  7. Report the PR URL to the user so they can review it.

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. 7d ago First seen · 45 lines · 0 tokens per session scan A 0a5be3afe6a6

Subscribe to this mod's changes

pr is a command published in the GitHub repository andrei-isvoran96/claude-skill-lab (1 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 464 tokens. 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.