pr

pr is a skill for Claude Code from rikdc/ai-skills. It costs 43 tokens per session (775 once invoked), scanned A, original, MPL-2.0.

A guide for creating a draft pull request on GitHub, where proposed code changes are reviewed before they are merged.

In plain words
What is it for?
Use it to validate the branch, inspect its differences from the base branch, and create a draft PR with a short summary.
Why use it?
It turns the branch's actual commits and changes into a correctly titled, focused review request.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the git-workflow plugin — 3 skills shipped together

Good fit Use it to validate the branch, inspect its differences from the base branch, and create a draft PR with a short summary.

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

Made for: Claude Code.

Or install git-workflow, the plugin that ships this one along with the rest of its 3 skills.

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/rikdc/ai-skills/pr.svg)](https://agentmods.dev/skills/rikdc/ai-skills/pr)
Your own site
<a href="https://agentmods.dev/skills/rikdc/ai-skills/pr"><img src="https://agentmods.dev/badge/skills/rikdc/ai-skills/pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 775 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.00043 $0.00775
Opus 5 $0.00022 $0.00387
Sonnet 5 $0.00009 $0.00155
Haiku 4.5 $0.00004 $0.00077

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

plugins/git-workflow/skills/pr/SKILL.md · 102 lines

How it starts

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

PR - GitHub Pull Request Creation

Creates a draft pull request with a conventional-commit title and a short description of what the branch actually changes.

Workflow

  1. Validate: gh auth status, current branch, uncommitted changes.
  2. Read the branch: git log <base>..HEAD and git diff <base>...HEAD — the description covers exactly this, nothing more.
  3. Write the body: use .github/pull_request_template.md if present, otherwise the sections below.
  4. Create: gh pr create --draft --title "<type>(<scope>): <subject>" --body-file <file> --base main

Title Rules

  • Conventional commit format: <type>(<scope>): <subject>.
  • No emoji. The title is plain text.
  • Under 70 characters, imperative mood, no trailing period.
  • For a single-commit PR, reuse that commit's subject.

Examples:

  • feat(auth): add session refresh endpoint
  • fix(scanner): match patterns case-insensitively
  • docs: document the scanner exit codes

Body Rules

Keep it succinct. The PR body describes the commits on the branch and nothing else.

  • Summary: one to three sentences. What changed and why. No restating the title, no background essay.
  • Changes: one bullet per meaningful change, one line each. Group trivial edits rather than listing every file. Under six bullets for a normal PR — if it needs more, the PR is probably too large.
  • Testing: one line stating what was run (make test, go test ./...) and the result. Say so plainly if nothing was run.
  • Drop any template section that has nothing real to say.
  • No emoji, no headings beyond the template's, no "Notes for reviewers", "Future work", "Impact", or risk-assessment sections unless asked.
  • Do not claim behaviour you have not verified.

Default body when there is no template:

## Summary

<1-3 sentences>

## Changes

- <change>
- <change>

## Testing

<command and result>

Example body:

## Summary

Pattern matching in the MCP scanner was case-sensitive, so uppercase AWS keys
passed the scan. Matching is now case-insensitive.

## Changes

- Add `-i` to the pattern grep in `mcp-security-scanner.sh`
- Cover uppercase keys in `tests/test-scanner.sh`

## Testing

`make test` — all suites pass.

Read the full file on GitHub · 102 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. 7d ago First seen · 102 lines · 43 tokens per session scan A a1fde95eb1db

Subscribe to this mod's changes

pr is a skill published in the GitHub repository rikdc/ai-skills (2 stars, last pushed 2d ago), licensed MPL-2.0. It adds 43 tokens to every session and 775 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

skill-ship

Package and finalize completed work for delivery — use when a feature is done and ready to ship.

nyldn/claude-octopus · 22 tokens

deploy-steward

Mainline deploy steward. Consumes ready PRs, owns a lease on mainline landing, refreshes PR state, updates stale branches, waits for CI and deploy gates, merges or queues one candidate at a time, and opens repair tasks for failures.

SethGammon/Citadel · 56 tokens

release

CONTRIBUTOR TOOL - Cut a plugin release: bump plugin.json version, finalize CHANGELOG, update README if needed, gate on make ci, commit, tag vX.Y.Z, and create the GitHub release. Use when shipping a new plugin version. NOT distributed.

oliver-kriska/claude-elixir-phoenix · 60 tokens

release

Cut a brooks-lint release: set the version in package.json, propagate it across all four plugin manifests and every version-bearing text file (README badges, docs site metadata), write the CHANGELOG entry, validate, then commit, push, tag, and publish the GitHub release. Triggers when the maintainer asks to "release"…

hyhmrright/brooks-lint · 135 tokens

create-release-checklist

Create a release checklist and GitHub issue for an R package. Use when the user asks to "create a release checklist" or "start a release" for an R package.

posit-dev/skills · 41 tokens

push-ci

Push to remote and monitor CI. Validates branch safety, executes git push WITH explicit user approval, then monitors CI run status via gh CLI. Use when: user says 'push', 'push and watch CI', 'ship it', 'push-ci'. Not for: committing (use /smart-commit), creating PRs (use /create-pr), merging (use /merge-prep).

sd0xdev/sd0x-harness · 82 tokens