pr-create

pr-create is a command for coding agents from C0ntr0lledCha0s/claude-code-plugin-automations. It costs 14 tokens per session (1,027 once invoked), scanned A, original, MIT.

A command that creates a GitHub pull request, which is a request to review and merge changes from one branch into another. It builds the title and description from the branch's commits and file changes.

In plain words
What is it for?
Use it to create a regular or draft pull request, optionally giving it a custom title. It can also add labels based on the changes.
Why use it?
It saves time writing the request and keeps useful details such as changed files, linked issues, and testing steps together.

Command

Part of the github-workflows plugin — 8 skills, 9 commands, 4 agents shipped together

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.

agentmods
npx agentmods add commands/c0ntr0lledcha0s/claude-code-plugin-automations/pr-create
Clone the repo
git clone --depth 1 https://github.com/C0ntr0lledCha0s/claude-code-plugin-automations

Or install github-workflows, the plugin that ships this one along with the rest of its 8 skills, 9 commands, 4 agents.

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/commands/c0ntr0lledcha0s/claude-code-plugin-automations/pr-create.svg)](https://agentmods.dev/commands/c0ntr0lledcha0s/claude-code-plugin-automations/pr-create)
Your own site
<a href="https://agentmods.dev/commands/c0ntr0lledcha0s/claude-code-plugin-automations/pr-create"><img src="https://agentmods.dev/badge/commands/c0ntr0lledcha0s/claude-code-plugin-automations/pr-create.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,027 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00014 $0.01027
Opus 5 $0.00007 $0.00513
Sonnet 5 $0.00003 $0.00205
Haiku 4.5 $0.00001 $0.00103

Measured 4d ago against content hash 8375b67c094d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

github-workflows/commands/pr-create.md · 182 lines

How it starts

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

PR Create

Create a pull request with automatically generated description from commits and proper formatting.

Usage

/pr-create                          # Auto-detect title and generate description
/pr-create --title "Add auth"       # Custom title
/pr-create --draft                  # Create as draft PR
/pr-create --title "Fix bug" --draft

Arguments

  • --title TITLE (optional): PR title

    • If omitted, derives from first commit or branch name
    • Validates against conventional commit format
  • --draft (optional): Create as draft PR

    • Use when PR needs more work before review

What This Does

  1. Analyze branch: Get commits and file changes since base branch
  2. Generate title: From first commit or branch name
  3. Build description:
    • Summary from commits
    • List of changes
    • Linked issues
    • Testing checklist
  4. Apply labels: Based on file paths and commit types
  5. Create PR: With gh pr create

Workflow

When this command is invoked:

Step 1: Get Branch Information

# Get current branch
BRANCH=$(git branch --show-current)

# Get base branch (main or develop)
BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")

# Get commits on this branch
COMMITS=$(git log $BASE..$BRANCH --pretty=format:"%s" --reverse)

# Get files changed
FILES=$(git diff --name-only $BASE...$BRANCH)

Step 2: Generate Title

If title not provided:

# From branch name: feature/issue-42-auth → Add authentication (Closes #42)
# From first commit: feat(auth): add login → Add login

# Parse branch for issue number
ISSUE=$(echo "$BRANCH" | grep -oE '[0-9]+' | head -1)

# Use first commit subject
TITLE=$(git log $BASE..$BRANCH --pretty=format:"%s" --reverse | head -1)

Step 3: Build Description

Generate PR body with:

## Summary

[Auto-generated from commits]

## Changes

- List of commits grouped by type
- Files changed

## Testing

- [ ] Tests added/updated
- [ ] Manual testing completed
- [ ] No regressions

## Related Issues

Closes #N (if detected from branch name or commits)

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Read the full file on GitHub · 182 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. 4d ago First seen · 182 lines · 14 tokens per session scan A 8375b67c094d

Subscribe to this mod's changes

pr-create is a command published in the GitHub repository C0ntr0lledCha0s/claude-code-plugin-automations (3 stars, last pushed 6mo ago), licensed MIT. It adds 14 tokens to every session and 1,027 once invoked, about $0.0001 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.