create-pr

create-pr is a command for Claude Code from thecombatwombat/replicant-mcp. It costs 11 tokens per session (456 once invoked), scanned A, original, MIT.

A command for creating a pull request, which is a proposed code change submitted for review, after several project checks. It also asks another agent to simplify changed code and checks its complexity.

In plain words
What is it for?
Use it to prepare a pull request from the current branch. It checks plans, Beads issues, branch changes, architecture records, code simplification, and complexity.
Why use it?
It catches missing planning records, untracked work items, orphaned issues, undocumented design decisions, and overly complex changes before review.

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/thecombatwombat/replicant-mcp/create-pr
Clone the repo
git clone --depth 1 https://github.com/thecombatwombat/replicant-mcp

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/thecombatwombat/replicant-mcp/create-pr.svg)](https://agentmods.dev/commands/thecombatwombat/replicant-mcp/create-pr)
Your own site
<a href="https://agentmods.dev/commands/thecombatwombat/replicant-mcp/create-pr"><img src="https://agentmods.dev/badge/commands/thecombatwombat/replicant-mcp/create-pr.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 456 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.00456
Opus 5 $0.00005 $0.00228
Sonnet 5 $0.00002 $0.00091
Haiku 4.5 $0.00001 $0.00046

Measured 4d ago against content hash 25ee8a48c2e5, 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 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.

.claude/commands/create-pr.md · 35 lines

What it actually says

Create a pull request with built-in quality gates. Follow these steps exactly:

  1. Persist plan: Check .claude/plans/ for a plan file relevant to current branch. If found, copy to docs/plans/YYYY-MM-DD-<branch-topic>-design.md and stage it.

  2. Beads validation: Run bd list --status=in_progress. If no issues found, STOP and ask user to create a beads issue before proceeding.

  3. Graph check: For each in-progress issue, verify it has a parent epic (bd show <id>). Warn if orphans found.

  4. Determine base branch: Check git log --oneline master..HEAD to understand commits on this branch.

  5. Find changed files: Run git diff --name-only master...HEAD to get all files changed vs base branch.

  6. ADR check: Review git diff master...HEAD for significant decisions — architectural (new patterns, technology choices, design trade-offs) OR workflow (process changes, enforcement mechanisms, convention changes). If any found, check DECISIONS.md for a corresponding entry. If missing, add the entry before proceeding.

  7. Run code-simplifier: Use the Task tool to launch the code-simplifier agent on changed files.

  8. Run complexity check: Execute scripts/check-complexity.sh. If violations found, fix them before proceeding.

  9. Stage and commit: If the simplifier, ADR additions, or violation fixes made changes, stage and commit them:

    git add <changed-files>
    git commit -m "refactor: simplify code and fix complexity violations"
    
  10. Push branch: git push -u origin HEAD

  11. Create PR: Use gh pr create with a descriptive title and body summarizing all commits on the branch.

If complexity violations persist after the fix attempt, report them and stop — do not create the PR.

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 · 35 lines · 11 tokens per session scan A 25ee8a48c2e5

Subscribe to this mod's changes

create-pr is a command published in the GitHub repository thecombatwombat/replicant-mcp (16 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 456 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-30.