pr-create

pr-create is a skill for Claude Code, Codex from alunduil/alunduil-chezmoi. It costs 85 tokens per session (1,287 once invoked), scanned A, original, 0BSD.

A workflow for drafting GitHub pull requests (PRs), which are proposed code changes sent for review. It checks what the branch contains, finds an existing PR or repository template, and prepares a concise description.

In plain words
What is it for?
Use it to open or update a PR, write or regenerate its description, or add a pull-request template to a repository.
Why use it?
It prevents duplicate PRs and descriptions that omit the reason for a change, surprising details, or evidence that the code works.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it to open or update a PR, write or regenerate its description, or add a pull-request template to a repository.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/alunduil/alunduil-chezmoi/pr-create/github.svg)](https://agentmods.dev/skills/alunduil/alunduil-chezmoi/pr-create)
Your own site
<a href="https://agentmods.dev/skills/alunduil/alunduil-chezmoi/pr-create"><img src="https://agentmods.dev/badge/skills/alunduil/alunduil-chezmoi/pr-create/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-create

Your own site · 80×15
<a href="https://agentmods.dev/skills/alunduil/alunduil-chezmoi/pr-create"><img src="https://agentmods.dev/badge/skills/alunduil/alunduil-chezmoi/pr-create.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,287 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.00085 $0.01287
Opus 5 $0.00043 $0.00643
Sonnet 5 $0.00017 $0.00257
Haiku 4.5 $0.00009 $0.00129

Measured 11d ago against content hash e55f8e1f638b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pr-create 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 11d 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_claude/skills/pr-create/SKILL.md · 132 lines

How it starts

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

PR create

Compose before opening. The body is the squash-merge commit context — write it for the reviewer first, the future reader of git log second.

Pre-flight

# REST reads — see ~/.claude/CLAUDE.md "GitHub API budget".
branch=$(git branch --show-current)
gh api repos/:owner/:repo/pulls \
  --jq ".[] | select(.head.ref==\"$branch\") | {number, state, url}"  # existing PR for this branch?
git log --oneline main..HEAD          # what this PR actually contains
gh api repos/:owner/:repo/pulls/<N> --jq '.body'   # iterating? read the current body
  • Existing PR for the branch → iterate on it, don't open a second.
  • Find the issue this resolves (branch name, commit trailers, the task). A PR that closes one carries Closes #<N> in the body.

Detect repo template

ls .github/pull_request_template.md \
   .github/PULL_REQUEST_TEMPLATE.md \
   .github/PULL_REQUEST_TEMPLATE/ \
   docs/pull_request_template.md 2>/dev/null

Template present → fill its sections; don't swap its structure for ours. Absent → use the structure below.

Body structure (no template)

Three short blocks. A reviewer should grasp all three in one read; a block that runs past a few lines is carrying detail the diff already shows.

  • Summarywhy this change. Prose, 1-2 sentences leading with the user-visible outcome ("X now works"), not the diff ("set Y to Z"). Surface mechanism only when the choice isn't obvious. Link the issue; don't re-explain it. Bad: "Set format_space \"#[bg=16]\" in pair.kdl." Good: "Bar paints uniformly black across the format gap, closing the lighter strip from #68."
  • Gotchaswhat'll surprise the reviewer. A bullet per pointer: where to spend attention and why, not an exhaustive risk dump. Typical: off-diff state (a label/secret/setting changed remotely), a silent-failure mode, a non-obvious constraint, something that reads like a typo. Litmus: a gotcha completes "watch out — ___", not "I chose ___ because ___"; rationale goes to Summary or gets cut. Omit when nothing surprises. Bad: "Split into two workflows so each trigger is self-documenting." Good: "Labeling pins .../autolabeler@<sha>, a subpath of the same action — not a typo."
  • Verificationhow we know it's correct. A bullet per material check beyond CI, past tense ("ran X, confirmed Y"). Skip trivial steps. Omit the section when CI covers everything; unverified items go in Gotchas, not here.

Read the full file on GitHub · 132 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. 11d ago First seen · 132 lines · 85 tokens per session scan A e55f8e1f638b

Subscribe to this mod's changes

pr-create is a skill published in the GitHub repository alunduil/alunduil-chezmoi (2 stars, last pushed today), licensed 0BSD. It adds 85 tokens to every session and 1,287 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-31.