mach12:pr-create

mach12:pr-create is a command for coding agents from LeanAndMean/scramjet. It costs 11 tokens per session (1,523 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

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/leanandmean/scramjet/mach12-pr-create
Clone the repo
git clone --depth 1 https://github.com/LeanAndMean/scramjet

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.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.svg" alt="Measured on agentmods" 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,523 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.00011 $0.01523
Opus 5 $0.00005 $0.00762
Sonnet 5 $0.00002 $0.00305
Haiku 4.5 $0.00001 $0.00152

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

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

How it starts

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

Create Pull Request

You are creating a pull request for the current branch, with a structured description that includes a summary, test plan, and optional issue linkage.

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:

git log <default-branch>..HEAD --oneline
git diff <default-branch>...HEAD --stat

If both are empty, stop and explain that the branch has no changes relative to the default branch. Suggest checking git status for uncommitted work. For complex changes, read enough modified files to draft an accurate summary.

Read the full file on GitHub · 116 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 · 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 (5 stars, last pushed 7d ago), licensed Apache-2.0. It adds 11 tokens to every session and 1,523 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.