pr-creator

pr-creator is a skill for Claude Code, Codex from mblode/agent-skills. It costs 75 tokens per session (2,230 once invoked), scanned A, original, MIT.

A tool for creating or updating GitHub pull requests, which are proposed code changes sent for review. It writes short descriptions, can add a Linear issue identifier, and can tidy noisy commit history when needed.

In plain words
What is it for?
Use it to prepare PR titles and descriptions, update an existing PR, reorganise messy commits, and add guidance for reviewing large changes.
Why use it?
It makes a pull request easier for reviewers to understand without turning it into a long generated report.

Skill for Claude CodeCodex

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 skills/mblode/agent-skills/pr-creator
Any agent
npx skills add mblode/agent-skills --skill pr-creator
Clone the repo
git clone --depth 1 https://github.com/mblode/agent-skills

Made for: Claude Code, Codex.

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-creator

README.md
[![agentmods](https://agentmods.dev/badge/skills/mblode/agent-skills/pr-creator.svg)](https://agentmods.dev/skills/mblode/agent-skills/pr-creator)
Your own site
<a href="https://agentmods.dev/skills/mblode/agent-skills/pr-creator"><img src="https://agentmods.dev/badge/skills/mblode/agent-skills/pr-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,230 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.00075 $0.02230
Opus 5 $0.00037 $0.01115
Sonnet 5 $0.00015 $0.00446
Haiku 4.5 $0.00007 $0.00223

Measured today against content hash 233343941999, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pr-creator 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 today.

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.

skills/pr-creator/SKILL.md · 138 lines

How it starts

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

pr-creator

Write PR descriptions like a developer posting in Slack, not an AI summarizing a diff.

  • IS: creating or updating a GitHub PR's title, body, draft state, and reviewers, plus the commit restructuring and review path that make a large diff readable.
  • IS NOT: changing the code in the diff (use tidy), reviewing it for bugs (use pr-reviewer), watching CI and review comments after the PR exists (use pr-babysitter), or cutting npm releases (use autoship).

Reference Files

File Read When
references/pr-polish.md Commits contain fixup, WIP, or "address review" noise, the diff exceeds 500 lines, or the user asks to polish, restructure, squash, or split the PR

Workflow

Copy this checklist to track progress:

PR creation progress:
- [ ] Inspect the current branch and diff against the existing PR base, or the discovered default branch merge-base
- [ ] Existing PR? gh pr view --json url,state,isDraft (state OPEN means edit, not create)
- [ ] Linear ID from branch, commits, prompt, or issue link; no ID means no prefix
- [ ] Noisy commits or a >500-line diff? references/pr-polish.md, before pushing
- [ ] PR template present? Read it (paths under Templates)
- [ ] Draft title and body against Rules and Anti-patterns
- [ ] git push -u origin HEAD
- [ ] gh pr create (or gh pr edit); then gh pr view --json url,title and return the URL

Do not ask the user to approve the description first; the point is speed. They can ask for a rewrite and you run gh pr edit.

Rules

  1. Title. With a Linear ID: ABC-123: Add auth flow. Without one: Add auth flow. Under 60 characters, no trailing period. If the repo lints PR titles (a semantic-pull-request or commitlint workflow under .github/workflows/), use its shape and put the ID at the end: feat: add auth flow (ABC-123). Linear links on the ID wherever it sits in the title.
  2. Body. One short paragraph: what changed and why it matters. Length follows the change; a one-line body is fine for a one-line fix.
  3. No fake why. If the reason is not in the prompt, the Linear issue, the branch, the commits, or the diff, leave it out rather than inventing one.
  4. Risk only when real. One Risk: line for migrations, billing, auth, permissions, irreversible writes, wide blast radius, or a subtle behavior change. Otherwise nothing.
  5. Testing only if real. Say what you ran only if you ran it. Never a Test plan section, never checkboxes.
  6. Partial work. If this PR does not finish the Linear issue, keep the ID out of the title and write Part of ABC-123 in the body. Linear's default automation moves a linked issue to Done when the PR merges; the non-closing magic word links without closing.
  7. Draft and reviewers only when asked. --draft for "draft" or "WIP"; gh pr ready promotes it later, gh pr ready --undo demotes. --reviewer alice,org/team only for people the user named; CODEOWNERS already requests owners.
  8. Stop after the useful content. The harness's attribution setting owns the PR footer (Generated with Claude Code, session link). Never hand-write one, and never strip one the harness or a repo policy appends. Everything above the footer is this skill's; its one-paragraph body replaces the harness's default Summary and Test plan sections.

Read the full file on GitHub · 138 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · -4 lines · -141 tokens per session 233343941999
  2. 5d ago First seen · 142 lines · 216 tokens per session scan A 5d6f2f85676b

Subscribe to this mod's changes

pr-creator is a skill published in the GitHub repository mblode/agent-skills (102 stars, last pushed today), licensed MIT. It adds 75 tokens to every session and 2,230 once invoked, about $0.0004 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-30.