create-pr

create-pr is a skill for Claude Code, Codex from sergeyklay/.agents. It costs 54 tokens per session (2,165 once invoked), scanned A, original, Apache-2.0.

A pull-request helper for submitting a branch's code changes to a shared repository for review.

In plain words
What is it for?
Use it to create a pull request, describe the changes, identify sensitive or breaking work, and submit the branch with GitHub's command-line tool.
Why use it?
It checks the branch and changes before creating the review request, reducing mistakes in the submission details.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to create a pull request, describe the changes, identify sensitive or breaking work, and submit the branch with GitHub's command-line tool.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sergeyklay/.agents/create-pr/github.svg)](https://agentmods.dev/skills/sergeyklay/.agents/create-pr)
Your own site
<a href="https://agentmods.dev/skills/sergeyklay/.agents/create-pr"><img src="https://agentmods.dev/badge/skills/sergeyklay/.agents/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/sergeyklay/.agents/create-pr"><img src="https://agentmods.dev/badge/skills/sergeyklay/.agents/create-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,165 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.00054 $0.02165
Opus 5.5 $0.00022 $0.00866
Sonnet 5.5 $0.00011 $0.00433
Haiku 4.5 $0.00005 $0.00216

Measured 11d ago against content hash 8e0cf8303566, 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 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.

.agents/skills/create-pr/SKILL.md · 185 lines

How it starts

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

Creating a Pull Request

Workflow

Step 1: Verify branch state

CURRENT=$(git branch --show-current)
DEFAULT=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')
  • If $CURRENT equals $DEFAULT or is develop/release/*/hotfix/*: inform user they are on a protected branch, cannot create PR from here
  • If uncommitted changes exist: commit first (use git-commit skill)
  • If branch not pushed: git push -u origin $CURRENT

Step 2: Analyze changes

DEFAULT=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')
git log --format="%s%n%b" "$DEFAULT..HEAD"
git diff --name-only "$DEFAULT..HEAD"
git diff --stat "$DEFAULT..HEAD"

From the diff and commits, identify:

  • Type: primary change type (feat, fix, refactor, chore, perf)
  • Intent: business/technical goal (1-2 sentences)
  • Entry point: most critical changed file for reviewer
  • Sensitive areas: files needing extra scrutiny (auth, payments, data)
  • Breaking changes: ! in commits or BREAKING CHANGE footer
  • Migrations: database or schema changes

Step 3: Resolve the linked issue

Two separate questions decide what the PR takes from an issue:

Question When yes
Belongs: does every change in the PR serve this one issue, and nothing else? Copy the issue's labels, milestone and projects to the PR
Completes: once merged, is nothing left to do on the issue? Link it under Development with a closing keyword

A PR can belong to an issue without completing it: one step of a larger task. A PR that serves several issues, or mixes in unrelated changes, belongs to none of them and gets neither.

Take the first candidate found:

  1. An issue named in the arguments: #123, owner/repo#123, or its URL.
  2. A closing footer in the branch's commits: Closes #123, Fixes #123, Resolves #123.
  3. An issue number in the branch name, as in fix/123-null-user.
gh issue view <number> --json number,title,state,body,labels,milestone,projectItems

Read the full file on GitHub · 185 lines

Files

What ships with it

1 file 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. 11d ago Changed · +4 lines 8e0cf8303566
  2. 12d ago Changed · +52 lines 5a9a3c20756b
  3. 1mo ago Changed · -2 lines dc86d0e781d6
  4. 1mo ago First seen · 131 lines · 54 tokens per session scan A da29b2b9b10d

Subscribe to this mod's changes

create-pr is a skill published in the GitHub repository sergeyklay/.agents (6 stars, last pushed 3d ago), licensed Apache-2.0. It adds 54 tokens to every session and 2,165 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.

Related

Other skills, from other repositories

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

catchup

Summarize and review what changed while you were away. Use after a weekend, vacation, or flight to check missed PRs, git commits, Linear tickets, and meetings — one prioritized brief, not a firehose.

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

watch-pr

Watch an Elixir/Phoenix PR for new review comments (bot + human) and CI results via a background watcher that wakes Claude only on real events. Use after opening a PR or pushing, while waiting on CI or reviewers.

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

changelog

Update per-package CHANGELOG.md files for a Ratel release. Drafts entries with git-cliff (scoped per package), lets you curate, then writes the CHANGELOGs. Handles both RC entries and GA-graduation collapse (merging X.Y.Z-rc. sections into a single X.Y.Z section). Invoke before tagging a release.

ratel-ai/ratel · 74 tokens

phx-pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

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

ship

Prepare or execute an authorized controlled release with verified checks, recovery and an operating owner. Use when a customer increment is ready for deployment.

suboss87/FDEOps · 29 tokens