create-pr

A command that prepares a GitHub pull request according to ClaudeForge conventions. A pull request is a proposed set of code changes for review before merging.

In plain words
What is it for?
Use it to decide the target branch, validate or suggest a branch name, check work before pushing, and create a Conventional Commits-style title and description.
Why use it?
It checks the current branch, target branch, naming, uncommitted work, and commits so the request follows the project's expected process.

Command for Claude Code

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/alirezarezvani/claudeforge/create-pr
Clone the repo
git clone --depth 1 https://github.com/alirezarezvani/ClaudeForge

Made for: Claude Code.

Per session 6 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,062 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.00006 $0.01062
Opus 5 $0.00003 $0.00531
Sonnet 5 $0.00001 $0.00212
Haiku 4.5 $0.00001 $0.00106

Measured 2d ago against content hash a6287a1c1bbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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/commands/github/create-pr.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.

Create Pull Request

You are helping the user create a pull request that follows ClaudeForge conventions.

Workflow

  1. Detect Current Branch

    CURRENT_BRANCH=$(git branch --show-current)
    echo "Current branch: $CURRENT_BRANCH"
    
  2. Determine Target Branch

    • If current branch starts with feature/, fix/, hotfix/, test/, refactor/, docs/:
      • Target: dev
    • If current branch is dev:
      • Target: main (release PR)
    • Otherwise: Ask user
  3. Validate Branch Name

    • Check if branch follows convention
    • If not, suggest renaming:
      git branch -m feature/new-name
      
  4. Check for Uncommitted Changes

    git status --short
    
    • If changes exist, suggest committing first
  5. Push Branch (if needed)

    git push -u origin $CURRENT_BRANCH
    
  6. Generate PR Title

    • Based on commits since target branch
    • Must follow Conventional Commits format
    • Examples:
      • feat(installer): add Windows PowerShell support
      • fix(skill): correct template selection logic
      • docs: update installation guide
  7. Generate PR Description

    Use PR template format:

    ## Description
    [Describe changes]
    
    ## Type of Change
    - [x] [Selected type]
    
    ## Related Issues
    Closes #[issue number]
    
    ## Changes Made
    - Change 1
    - Change 2
    
    ## Testing Performed
    - [x] Tested installation
    - [x] Tested slash command
    ...
    
  8. Create PR

    gh pr create \
      --base [target branch] \
      --title "[PR title]" \
      --body "[PR description]"
    

    Or for draft:

    gh pr create --draft \
      --base [target branch] \
      --title "[PR title]" \
      --body "[PR description]"
    
  9. Post-Creation

    • Show PR URL
    • Explain what workflows will run:
      • For PR to dev: pr-into-dev.yml
      • For PR to main: dev-to-main.yml
    • Link to workflow documentation

Validation Checklist

Read the full file on GitHub · 185 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. 2d ago First seen · 185 lines · 6 tokens per session scan A a6287a1c1bbf

Subscribe to this mod's changes

create-pr is a command published in the GitHub repository alirezarezvani/ClaudeForge (422 stars, last pushed 3mo ago), licensed MIT. It adds 6 tokens to every session and 1,062 once invoked, about $0.0000 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-30.