pr-create

A command that prepares and creates a GitHub pull request from staged changes or recent commits. A pull request is a request for others to review and merge code into a shared repository.

In plain words
What is it for?
Use it to check the branch, confirm it is pushed, see whether a pull request already exists, run available code reviews, and create the pull request.
Why use it?
It checks common prerequisites and gathers review results so the pull request has the needed context and does not fail because the branch or GitHub setup is incomplete.

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

Made for: Claude Code.

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 1,384 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.00000 $0.01384
Opus 5 $0.00000 $0.00692
Sonnet 5 $0.00000 $0.00277
Haiku 4.5 $0.00000 $0.00138

Measured 2d ago against content hash 3bac5819b268, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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/pr-create.md · 131 lines

How it starts

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

Pull Request Creation (limps)

Create a PR on GitHub with a limps-aware description based on staged changes or recent commits.

Instructions for Claude

When this command is invoked, you must:

  1. Check prerequisites:

    • Verify current branch is not main
    • Check if branch is pushed (git push --dry-run)
    • Verify GitHub CLI is available (gh --version)
    • Check if PR already exists (gh pr view)
  2. Optional: Run code reviews (recommended before PR creation):

    • Review order: Run reviews in parallel if possible, or sequentially (branch review first, then MCP review)
    • For general code review: Invoke /branch-code-review skill to review architecture, maintainability, and correctness
    • For MCP/LLM security review: Invoke /mcp-code-review skill to review security, MCP safety, and LLM-related concerns
    • Timing: Run reviews after analyzing git changes (step 4) to have full context
    • Include review findings in PR description if issues are found (or note that reviews passed)
  3. Detect plan/agent context (if applicable):

    • Use limps MCP tools when available:
      • list_plans, list_agents, get_plan_status, process_doc
    • If a plan is inferred (via modified files under plans/ or commit messages), locate the agent file and extract:
      • Agent title, status, and feature list from frontmatter/sections
    • If no plan/agent is detected, proceed as a standard PR.
  4. Analyze git changes:

    • Detect base branch:
      • If user specifies base (e.g., --base develop), use that
      • Otherwise, detect default: git symbolic-ref refs/remotes/origin/HEAD → extract branch name
      • Fallback: try origin/main, then origin/master
      • If no base branch found, ask user or default to main
    • Use git log <base>..HEAD and git diff --stat <base>..HEAD
    • Edge case: If no commits exist (only staged changes), analyze git diff --cached instead
    • Summarize key files and modules touched

Read the full file on GitHub · 131 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 · 131 lines · 0 tokens per session scan A 3bac5819b268

Subscribe to this mod's changes

pr-create is a command published in the GitHub repository paulbreuler/limps (10 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,384 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-08-31.