mach12:pr-create

mach12:pr-create is a command for Claude Code from LeanAndMean/scramjet. It costs 11 tokens per session (1,584 once invoked), scanned A, original, Apache-2.0.

A command that creates a GitHub pull request for the current branch with a structured summary, test plan, and optional issue link.

In plain words
What is it for?
Use it to open a pull request after deciding its description and any issue linkage.
Why use it?
It turns completed branch changes into a consistent review request and resolves ambiguity about which issue to reference.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to open a pull request after deciding its description and any issue linkage.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/leanandmean/scramjet/mach12-pr-create
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.

Clone the repo
git clone --depth 1 https://github.com/LeanAndMean/scramjet

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/leanandmean/scramjet/mach12-pr-create/github.svg)](https://agentmods.dev/commands/leanandmean/scramjet/mach12-pr-create)
Your own site
<a href="https://agentmods.dev/commands/leanandmean/scramjet/mach12-pr-create"><img src="https://agentmods.dev/badge/commands/leanandmean/scramjet/mach12-pr-create/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 mach12:pr-create

Your own site · 80×15
<a href="https://agentmods.dev/commands/leanandmean/scramjet/mach12-pr-create"><img src="https://agentmods.dev/badge/commands/leanandmean/scramjet/mach12-pr-create.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 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,584 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.00011 $0.01584
Opus 5.5 $0.00004 $0.00634
Sonnet 5.5 $0.00002 $0.00317
Haiku 4.5 $0.00001 $0.00158

Measured 1mo ago against content hash 790efa213681, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mach12: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 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.

packages/scramjet/mach12/commands/mach12:pr-create.md · 120 lines

How it starts

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

Create Pull Request

Goals

  • Publish one verified pull request whose title, summary, test plan, draft state, base, and optional single-issue linkage accurately represent the current branch.
  • Ensure the branch is safely synchronized to its intended remote without overwriting divergent work.
  • Return the verified pull-request identity and offer review paths only after creation succeeds.

Step 1: Parse input and resolve linkage

The user may provide an issue number, an issue number plus context, context alone, or nothing.

Resolve issue-linkage ambiguity before constructing a draft:

  • An explicit canonical positive issue number is the proposed linked issue.
  • If user input could be either an issue number or general context, ask which interpretation is intended.
  • If multiple plausible issue candidates exist in the input or branch name, present them and ask the user to select exactly one issue or explicitly decline linkage.
  • Do not resolve ambiguity by silently producing an unlinked draft or by deferring the decision to draft approval.
  • If no issue was supplied and exactly one issue is unambiguously encoded by a branch pattern such as feature/issue-55-*, fix/issue-55-*, or 55-some-description, use that issue.
  • If no issue was supplied and the branch yields no candidate, proceed unlinked.

When one issue is selected, delegate to /mach12:gh-issue-read <issue-number>. If the read fails, report the error and stop. Issue comments may inform the summary and test plan but must not be copied verbatim. Never expand a parent issue, sub-issues, or other relationships into additional closers.

Step 2: Gather branch context

Determine the current and default branches:

git branch --show-current
gh repo view --json defaultBranchRef --jq .defaultBranchRef.name

If the current branch is detached or is the default branch, stop and tell the user to create or check out a feature branch.

Read this branch's commits and diff summary:

Read the full file on GitHub · 120 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 Changed · +4 lines 790efa213681
  2. 1mo ago First seen · 116 lines · 11 tokens per session scan A f6b3816cb2ff

Subscribe to this mod's changes

mach12:pr-create is a command published in the GitHub repository LeanAndMean/scramjet (8 stars, last pushed 10d ago), licensed Apache-2.0. It adds 11 tokens to every session and 1,584 once invoked, about $0.0000 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.