pr

pr is a skill for Claude Code from urmzd/dotfiles. It costs 107 tokens per session (657 once invoked), scanned A, original, Apache-2.0.

A pull-request helper for GitHub, where a pull request is a request to review and merge code changes. It gathers branch commits and differences, pushes the branch if needed, and creates or finds the matching pull request.

In plain words
What is it for?
Use it to open a pull request from the current branch with an automatically prepared title, change summary, and test checklist, or to find an existing pull request for that branch.
Why use it?
It removes the repetitive work of summarizing commits, checking whether changes are pushed, and avoiding duplicate pull requests. It also refuses to create one when the branch has no changes compared with the default branch.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to open a pull request from the current branch with an automatically prepared title, change summary, and test checklist, or to find an existing pull request for that branch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/urmzd/dotfiles/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 urmzd/dotfiles --skill pr
Clone the repo
git clone --depth 1 https://github.com/urmzd/dotfiles

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/skills/urmzd/dotfiles/pr/github.svg)](https://agentmods.dev/skills/urmzd/dotfiles/pr)
Your own site
<a href="https://agentmods.dev/skills/urmzd/dotfiles/pr"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/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/urmzd/dotfiles/pr"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 657 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.00107 $0.00657
Opus 5.5 $0.00043 $0.00263
Sonnet 5.5 $0.00021 $0.00131
Haiku 4.5 $0.00011 $0.00066

Measured 1mo ago against content hash d7b6a5f11e94, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

dot_agents/skills/pr/SKILL.md · 58 lines

What it actually says

PR

Create a pull request with a well-structured summary.

Steps

  1. Gather context:

    • Detect the default branch: gh repo view --json defaultBranchRef -q .defaultBranchRef.name
    • Get all commits since divergence: git log <default>..HEAD --oneline
    • Get the full diff: git diff <default>...HEAD --stat
    • Check if the branch is pushed: git rev-list @{u}..HEAD --count 2>/dev/null
  2. Push if needed: If there are unpushed commits, run git push -u origin HEAD.

  3. Generate PR content:

    • Title (if not provided): Derive from commits. If single commit, use its message. If multiple, summarize the theme (under 70 chars).
    • Body: Use this format:
      ## Summary
      - <bullet points derived from commits, grouped by type>
      
      ## Test plan
      - [ ] <derived from what changed, e.g., "CI passes", "manual test of X">
      
  4. Create PR: Run gh pr create --title "<title>" --body "<body>" using a HEREDOC for the body.

  5. Report: Show the PR URL.

Rules

  • Never create a PR if there are no commits ahead of the default branch.
  • If a PR already exists for this branch, show its URL instead of creating a duplicate.
  • Keep the title under 70 characters.
  • Group commits by type (feat, fix, chore, etc.) in the summary.

Gotchas

  • Refuse when HEAD is the default branch: a PR needs a non-default source branch. Detect the default with gh repo view --json defaultBranchRef -q .defaultBranchRef.name, compare to git branch --show-current, and if they match, stop and tell the user to create a feature branch first.
  • For a fork-based PR, the head ref must be qualified as owner:branch. Pass it with gh pr create --head <owner>:<branch> (the owner is the fork's GitHub login), so the PR targets the upstream repo from your fork.
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. 1mo ago First seen · 58 lines · 107 tokens per session scan A d7b6a5f11e94

Subscribe to this mod's changes

pr is a skill published in the GitHub repository urmzd/dotfiles (5 stars, last pushed 6d ago), licensed Apache-2.0. It adds 107 tokens to every session and 657 once invoked, about $0.0004 per session on Opus 5.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.