create-pr

create-pr is a skill for Claude Code from Guild-Agents/guild. It costs 14 tokens per session (1,075 once invoked), scanned A, original, MIT.

A workflow for creating a pull request, which is a request for teammates to review and merge code changes. It checks the branch, commits, changed files, tests, and lint results before writing the request.

In plain words
What is it for?
Opening pull requests from feature branches after development work is complete and collecting the relevant change and test details.
Why use it?
It turns the checks and information needed for a review into a structured process.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the guild plugin — 8 skills, 6 agents, 1 hook shipped together

Good fit Opening pull requests from feature branches after development work is complete and collecting the relevant change and test details.

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

Made for: Claude Code.

Or install guild, the plugin that ships this one along with the rest of its 8 skills, 6 agents, 1 hook.

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/guild-agents/guild/create-pr/github.svg)](https://agentmods.dev/skills/guild-agents/guild/create-pr)
Your own site
<a href="https://agentmods.dev/skills/guild-agents/guild/create-pr"><img src="https://agentmods.dev/badge/skills/guild-agents/guild/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/guild-agents/guild/create-pr"><img src="https://agentmods.dev/badge/skills/guild-agents/guild/create-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,075 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.00014 $0.01075
Opus 5.5 $0.00006 $0.00430
Sonnet 5.5 $0.00003 $0.00215
Haiku 4.5 $0.00001 $0.00108

Measured 1mo ago against content hash 19e00e506153, 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 1mo 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.

.claude/skills/create-pr/SKILL.md · 130 lines

How it starts

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

Create PR

Creates a pull request from the current feature branch with a structured summary, test results, and change description. Closes the pipeline loop: init -> build-feature -> create-pr.

When to use

  • After completing a feature with /build-feature
  • When you have changes on a feature branch ready for review
  • To create a well-structured PR without manual formatting

Usage

/create-pr

Process

Step 1 -- Verify branch state

  1. Confirm you are NOT on main or develop -- refuse to create PR from default branches
  2. Run git status to check for uncommitted changes -- if any, warn the user and ask whether to commit first
  3. Run git log main..HEAD --oneline to get the list of commits that will be in the PR
  4. If there are no commits ahead of main, report that there is nothing to PR

Step 2 -- Gather context

Collect the information needed for the PR description:

  1. Commits: git log main..HEAD --oneline -- list of all commits on this branch
  2. Diff summary: git diff main..HEAD --stat -- files changed with line counts
  3. Test results: Run project tests (e.g., npm test) and capture pass/fail
  4. Lint results: Run project lint (e.g., npm run lint) and capture pass/fail
  5. Branch name: Extract feature name from the branch (e.g., feature/dark-mode -> dark-mode)

If tests or lint fail, warn the user but allow them to proceed (some PRs are draft/WIP).

Step 3 -- Generate PR description

Build a structured PR description:

## Summary
[2-4 bullet points describing what this PR does, derived from commit messages]

## Changes
[File-level summary from git diff --stat]

## Test plan
- [x] Tests: [pass/fail] ([count] tests)
- [x] Lint: [pass/fail]
- [ ] [Any manual verification steps if applicable]

Step 4 -- Create the PR

  1. Push the branch to origin: git push -u origin [branch-name]
  2. Create the PR using gh pr create:
    • Title: derived from branch name or first commit message (max 70 chars)
    • Body: the generated description from Step 3
    • Base: main (or the project's default branch)
  3. Report the PR URL to the user

Read the full file on GitHub · 130 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. 1mo ago First seen · 130 lines · 14 tokens per session scan A 19e00e506153

Subscribe to this mod's changes

create-pr is a skill published in the GitHub repository Guild-Agents/guild (4 stars, last pushed 3mo ago), licensed MIT. It adds 14 tokens to every session and 1,075 once invoked, about $0.0001 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

setup-caliber

Sets up Caliber for automatic AI agent context sync. Installs pre-commit hooks so CLAUDE.md, Cursor rules, and Copilot instructions update automatically on every commit. Use when Caliber hooks are not yet installed or when the user asks about keeping agent configs in sync.

caliber-ai-org/ai-setup · 61 tokens

install

This skill should be used when the user asks to "install pikiclaw", "build and install", "deploy locally", "update local binary", "release", or "publish".

xiaotonng/pikiloom · 39 tokens

worktree-isolate

A workflow for doing risky or experimental changes in an isolated Git worktree, which is a separate working copy of the same repository. The changes can then be merged into the main checkout or discarded.

open-octo/octo-agent · 91 tokens

atomic-git-discipline

Compressed commit message and PR body generator. Cuts noise from both while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious; PR bodies state only what the diff can't show, 120 words max. Use when user says "write a commit", "commit message", "generate…

damusix/atomic-claude · 106 tokens

pypi-release

This skill should be used when releasing tunacode-cli to PyPI. It keeps the existing local release checks, then hands the actual PyPI upload to a GitHub Actions workflow that uses the repository's PYPIAPITOKEN secret.

alchemiststudiosDOTai/tunacode · 52 tokens

git-town

This skill should be used when the user asks to "create a feature branch", "start a new feature", "sync my branch", "sync with main", "update from main", "create a PR", "create a pull request", "ship a feature", "merge and clean up", "handle merge conflicts", "resolve conflicts in git-town", "create stacked branches"…

FortiumPartners/ensemble · 127 tokens