create-pr

create-pr is a skill for Claude Code, Codex from hmj1026/dhpk. It costs 59 tokens per session (791 once invoked), scanned A, original, MIT.

A procedure for opening a GitHub pull request from an already pushed branch. A pull request is a proposed set of changes for review; this procedure prepares its title, description, ticket link, and test plan.

In plain words
What is it for?
Use it to gather branch and change details, generate a ticket-aware request, perform pre-flight checks, and either print or explicitly run the creation command.
Why use it?
It prevents empty or duplicate requests and lets you review the exact command before anything is created. It does not commit, push, merge, or edit existing requests.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present.

Part of the dhpk plugin — 39 skills, 1 command, 1 agent, 3 hooks shipped together

Good fit Use it to gather branch and change details, generate a ticket-aware request, perform pre-flight checks, and either print or explicitly run the creation command.

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

Made for: Claude Code, Codex.

Or install dhpk, the plugin that ships this one along with the rest of its 39 skills, 1 command, 1 agent, 3 hooks.

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/hmj1026/dhpk/create-pr/github.svg)](https://agentmods.dev/skills/hmj1026/dhpk/create-pr)
Your own site
<a href="https://agentmods.dev/skills/hmj1026/dhpk/create-pr"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/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/hmj1026/dhpk/create-pr"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/create-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 791 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.00059 $0.00791
Opus 5.5 $0.00024 $0.00316
Sonnet 5.5 $0.00012 $0.00158
Haiku 4.5 $0.00006 $0.00079

Measured yesterday against content hash 98a64821f3cd, 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 yesterday.

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.

generated/claude-marketplace/package/skills/create-pr/SKILL.md · 74 lines

How it starts

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

Create PR

Workflow

Run in the consumer repository and preserve the supplied arguments. Resolve --head to the current branch and --base to {TARGET_BRANCH} or main when they are omitted. Gather the branch, remote, existing PRs, recent commits, and diff statistics before composing the request.

Extract a ticket from the branch with {TICKET_PATTERN} (default [A-Z]+-\d+), then generate <type>: [<TICKET>] <summary> unless --title overrides it. Build the body from a concise summary, the ticket link when resolved, and verification evidence. Separate checks actually run from planned checks marked NOT RUN; for behavior changes, include a compact before/after example or evidence. Label an unobserved after-state as expected and list its check as NOT RUN. Add rollback and blast-radius details when they materially affect review. Use a visual aid only when it clarifies the change; do not include one by default. Before any PR creation, run the pre-flight checks in references/workflow.md, including git rev-list --count <base>..HEAD. A zero count stops with the exact message No commits between <base> and HEAD — nothing to open a PR for.

Dry-run is the default and only prints a copy-pasteable gh pr create command. --execute is the sole creation path: verify the branch is pushed, verify no PR already exists, require the existing GitHub authorization, ask for confirmation, and then report the URL. Do not push or create commits.

When NOT to Use

  • The branch still needs commits or a push.
  • An existing PR must be edited, merged, or closed.
  • A release, tag, or deployment is the requested operation.

Output

  • Dry-run: one copy-pasteable gh pr create command block and no PR URL claim.
  • Execute: the URL returned by gh pr create.
  • Missing refs, no commits, an unpushed branch, an existing PR, unavailable gh, failed authorization, or failed confirmation are terminal failures; never report a created PR without the URL evidence.

Read the full file on GitHub · 74 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. yesterday Changed · +8 lines 98a64821f3cd
  2. 10d ago Changed · +9 lines 7e6f8f2ecb80
  3. 23d ago First seen · 57 lines · 59 tokens per session scan A 68a3366d3f1a

Subscribe to this mod's changes

create-pr is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 791 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-09-24.

Related

Other skills, from other repositories

avatar-contribution-pr

Turn an avatar GitHub issue (from the in-app avatar-editor easter egg) into a merged sprite — validate the art, then either add a new module or replace an existing one, and open a PR that closes the issue. Handles both "Avatar contribution: " (a brand-new sprite) and "Avatar edit: " (a hand-redraw of an existing…

khromov/codebay · 0 tokens

release

Release a new version of the mumei repository. Invoke when the user gives an explicit release instruction ("release it", "/release", "patch release", "ship 0.2.0"). Takes no argument or "patch" / "minor" / "major" for a SemVer bump, or a direct version such as "0.2.0". Wraps any uncommitted changes into a single…

iroha924/mumei · 144 tokens

generator-fix-integrator

Internal Auto-Harness generator skill for worktree-merge fix integration. Use only inside the parallel Generator integrator when it is addressing named defects from QA or retest.

redker56/auto-harness · 40 tokens

open-code-review

Performs AI-powered code review on Git changes using the ocr CLI from alibaba/open-code-review. Use when the user asks to review code, review a pull request, review staged/unstaged changes, review a commit, or compare branches for code quality issues. Produces line-level review comments and can automatically apply…

alibaba/open-code-review · 98 tokens

update-pr

Update an existing pull request with new changes. Use when the user wants to update a PR, push follow-up changes to a PR, refresh a PR description, or sync a PR with latest commits. Triggers on: update pr, update-pr, update the pr, push to pr, refresh pr, sync pr, update pull request.

ReflexioAI/claude-smart · 71 tokens

merge-prep

Pre-merge analysis and preparation. Analyzes source branch vs target branch: commit stats, conflict detection, file impact. Analysis-only v1 — outputs report + suggested commands, does not auto-merge. Use when: user says 'merge prep', 'pre-merge', 'merge analysis', or /merge-prep.

sd0xdev/sd0x-harness · 69 tokens