pr-create

pr-create is a command for Claude Code from Insight-Services-APAC/ingenious. It costs 0 tokens per session (492 once invoked), scanned A, original, MIT.

A command workflow that uses GitHub CLI to create a pull request, which asks a team to review and merge a branch's changes.

In plain words
What is it for?
Use it to compare a branch with its base, summarize affected changes, and create a pull request targeting a chosen base branch.
Why use it?
It ensures the request accounts for commits and file changes and follows stated rules for titles, descriptions, attribution, and merging.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions 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/insight-services-apac/ingenious/pr-create
Clone the repo
git clone --depth 1 https://github.com/Insight-Services-APAC/ingenious

Made for: Claude Code.

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/insight-services-apac/ingenious/pr-create.svg)](https://agentmods.dev/commands/insight-services-apac/ingenious/pr-create)
Your own site
<a href="https://agentmods.dev/commands/insight-services-apac/ingenious/pr-create"><img src="https://agentmods.dev/badge/commands/insight-services-apac/ingenious/pr-create.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 492 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.1 $0.00000 $0.00492
Opus 5 $0.00000 $0.00246
Sonnet 5 $0.00000 $0.00098
Haiku 4.5 $0.00000 $0.00049

Measured yesterday against content hash 4669716da627, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 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.

.claude/commands/git/pr-create.md · 53 lines

How it starts

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

Pull Request Creation

Arguments

  • $ARGUMENTS - Base branch for the PR (default: to-stable)

Instructions

Use GitHub CLI to create a pull request targeting the base branch specified in $ARGUMENTS. If no argument is provided, use to-stable as the default base branch.

Pre-PR Analysis

Before creating the PR, perform comprehensive change analysis:

  1. Review all commits: Run git log origin/main..HEAD --oneline to see all commits in the PR
  2. Review all file changes: Run git diff origin/main..HEAD --stat to see changed files
  3. Review detailed changes: Run git diff origin/main..HEAD to see all code changes
  4. Categorize changes: Group changes by type (features, bug fixes, refactoring, docs, tests, config)
  5. Identify impact: Note which components/modules are affected

PR Guidelines

CRITICAL Requirements:

  • NEVER include emojis in PR titles or descriptions
  • Maintain a concise, professional tone in all PR content
  • DO NOT add attribution footers (e.g., no "Generated with Claude Code")
  • DO NOT use squash merge - preserve all commits
  • Use clear, descriptive PR titles in imperative mood
  • Account for ALL changes - every modified file must be explained in PR description
  • Structure PR description with clear sections:
    • Summary: Brief overview of changes
    • Changes: Detailed list of modifications by category
    • Files Modified: List all changed files with brief description
    • Impact: Note any breaking changes or migration steps

Command Format

gh pr create --base <base-branch> --title "Your PR title" --body "Your PR description"

Where <base-branch> is the value from $ARGUMENTS or to-stable if not specified.

Examples

# Using default base branch (to-stable)
gh pr create --base to-stable --title "Add authentication middleware" --body "Add JWT authentication middleware for API endpoints."

# Using custom base branch (e.g., main)
gh pr create --base main --title "Add authentication middleware" --body "Add JWT authentication middleware for API endpoints."

Read the full file on GitHub · 53 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 First seen · 53 lines · 0 tokens per session scan A 4669716da627

Subscribe to this mod's changes

pr-create is a command published in the GitHub repository Insight-Services-APAC/ingenious (24 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 492 tokens. 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-04.