create-pr

create-pr is a skill for Claude Code from flurdy/agent-skills. It costs 47 tokens per session (3,097 once invoked), scanned A, original, MIT.

A command that creates a GitHub pull request from the current branch using the project's conventions. A pull request is a request for teammates to review and merge code changes.

In plain words
What is it for?
Use it when your branch is ready for review and follows the expected ticket-based naming and pull-request workflow.
Why use it?
It gathers the branch changes, finds the related Jira issue, prepares the standard description, pushes the branch, and closes the associated bead when applicable.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Good fit Use it when your branch is ready for review and follows the expected ticket-based naming and pull-request workflow.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/flurdy/agent-skills/create-pr"><img src="https://agentmods.dev/badge/skills/flurdy/agent-skills/create-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,097 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.00047 $0.03097
Opus 5.5 $0.00019 $0.01239
Sonnet 5.5 $0.00009 $0.00619
Haiku 4.5 $0.00005 $0.00310

Measured 4d ago against content hash 4bb357414d86, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-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 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/gh-pr-create.sh, scripts/pr-required-sections.sh, tests/test-required-sections.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/create-pr/SKILL.md · 282 lines

How it starts

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

Create Pull Request

Create a pull request from the current branch using project conventions.

Usage

/create-pr                              # Resolve recorded/default base
/create-pr {base-branch}                # Explicit base, including a stacked parent
/create-pr --draft {base-branch}        # Create a draft PR against that base

Instructions

Parse optional --draft plus at most one {base-branch}. Reject unknown or duplicate arguments. Expand {draft-flag} to --draft when requested and to nothing otherwise.

1. Gather context

Get the current branch and working-copy state:

git branch --show-current
git status -sb

If the branch is empty, stop: HEAD is detached. Preserve the commit on a branch before attempting to push or create a PR.

2. Resolve the PR base

Use the first available source:

  1. explicit {base-branch} argument;
  2. git config --get branch.{branch-name}.gh-merge-base (recorded by /stack-branch);
  3. the default branch from origin/HEAD, falling back to local main, then master.

If the result is empty, equals the head branch, or does not resolve to a commit, ask rather than guessing. Fetch the selected base, then use it consistently for context and PR creation:

git fetch origin {base-branch}
git log origin/{base-branch}..HEAD --oneline
git diff origin/{base-branch}...HEAD --stat

3. Extract Jira Ticket from Branch Name

Parse the branch name to find the ticket number:

  • Pattern: {type}/{TICKET-NUMBER}-{description}
  • Example: feat/AB-123-sanitize-input → AB-123
  • Ticket format: 2-4 uppercase letters, dash, numbers (e.g., AB-123, SSP-456)

If no ticket found, ask the user.

4. Look Up Jira Ticket

Use jira-ticket for the key, summary and description. It owns tool availability, deferred discovery and unavailable-context handoffs. If skill invocation is absent, read that installed skill and follow it; do not reconstruct the lookup. Missing context remains unavailable in the draft unless supplied by the user; never fabricate fetched requirements.

Read the full file on GitHub · 282 lines

Files

What ships with it

3 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. 4d ago Changed 4bb357414d86
  2. 7d ago Changed · +12 lines fdc50703a262
  3. 14d ago Changed · +4 lines 6afcd6e8146b
  4. 1mo ago Changed · +3 lines 2af0b8f33d81
  5. 1mo ago Changed · +69 lines · +4 tokens per session 6f0f7d4fb2c7
  6. 1mo ago Changed · +48 lines f0d7443e773b
  7. 1mo ago First seen · 146 lines · 43 tokens per session scan A 33610abfbbbb

Subscribe to this mod's changes

create-pr is a skill published in the GitHub repository flurdy/agent-skills (9 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 3,097 once invoked, about $0.0002 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.