pr

pr is a skill for Claude Code from bengous/claude-code-plugins. It costs 51 tokens per session (1,709 once invoked), scanned A, original, MIT.

A workflow for opening or updating the current branch's GitHub pull request, including a review summary and attached images. A pull request is a proposed code change sent to collaborators for review.

In plain words
What is it for?
Use it to create, submit, update, or rewrite a pull request, or to preview its title, base, body, and attachments without publishing.
Why use it?
It checks the branch and working tree before publishing, and gives reviewers a concise account of the change and checks performed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Part of the github-flow plugin — 8 skills, 1 agent shipped together

Good fit Use it to create, submit, update, or rewrite a pull request, or to preview its title, base, body, and attachments without publishing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bengous/claude-code-plugins/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.

Any agent
npx skills add bengous/claude-code-plugins --skill pr
Clone the repo
git clone --depth 1 https://github.com/bengous/claude-code-plugins

Made for: Claude Code.

Or install github-flow, the plugin that ships this one along with the rest of its 8 skills, 1 agent.

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/skills/bengous/claude-code-plugins/pr/github.svg)](https://agentmods.dev/skills/bengous/claude-code-plugins/pr)
Your own site
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/pr"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/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 pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/pr"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,709 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.00051 $0.01709
Opus 5 $0.00026 $0.00855
Sonnet 5 $0.00010 $0.00342
Haiku 4.5 $0.00005 $0.00171

Measured yesterday against content hash 1a248cf29f67, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-16, 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.

github-flow/skills/pr/SKILL.md · 84 lines

How it starts

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

PR

A PR body is a review brief. Its reader is a different agent, in a fresh session, with the diff and the tools. The body says why the change exists, where to look first, and what was already checked. The body proves; the reviewer judges.

Input

$ARGUMENTS

  • --dry-run: no push, no publish; print the title, the base, the body and the attachments instead.
  • Paths ending in .png, .jpg, .gif, .mp4, .mov: files to attach. Alt text may follow the path after #.
  • The rest: what the reviewer should know, kept as facts in the body.
  • Empty: everything comes from the branch.

Protocol

  1. Branch. git branch --show-current. On dev, main, or the repo's default branch: stop, show git status --short, ask for a branch name. Uncommitted changes: stop and say so; the commit comes first (/git:commit).
  2. Base. dev when origin/dev exists, else gh repo view --json defaultBranchRef. Without --dry-run, push with git push -u origin HEAD. A rejected push: report it verbatim and stop; never force.
  3. Evidence. Read before citing.
    • git log --oneline <base>..HEAD and git diff --stat <base>...HEAD: the size, the files.
    • Tests added by the branch: git diff --stat <base>...HEAD -- '*test*'.
    • The issue: Closes #N in a commit body, else the leading number of the branch name, else none. gh issue view <n> --json title,body when there is one.
    • When the issue has an Out of scope section: every file of git diff --name-only <base>...HEAD that it names.
    • The repo's AGENTS.md or CLAUDE.md: the validation commands.
    • What ran this session, with its numbers.
  4. Images. A change the reader sees (a page, a view, a component, a stylesheet) gets a Before/After pair when $ARGUMENTS gave none. The browser tool of the session captures the base state (the live page, else the base branch served) and the branch, one state per file, outside the repo. No reachable base: After alone, and the caption says so. A change with no visible result gets no image.
  5. Body. Pick the size from step 3, fill the sections below. The title follows the convention of git log --oneline -10.
  6. Publish. No question before it: the skill is the guard, and a caller that wants a look first passes --dry-run. Files the issue puts out of scope go in Ask, so the reviewer decides. Body in a temporary file outside the repo. A PR already open on the branch (gh pr view --json number,body) is edited, else one is created:

Read the full file on GitHub · 84 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 Changed · +8 lines 1a248cf29f67
  2. 6d ago First seen · 76 lines · 51 tokens per session scan A 7467e0cc6027

Subscribe to this mod's changes

pr is a skill published in the GitHub repository bengous/claude-code-plugins (4 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 1,709 once invoked, about $0.0003 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-11.

Related

Other skills, from other repositories