prp-pr

prp-pr is a command for coding agents from Fmarzochi/EGC. It costs 21 tokens per session (677 once invoked), scanned A, original, Apache-2.0.

A command that creates a GitHub pull request from the commits and code changes on the current branch.

In plain words
What is it for?
Use it to prepare and push a pull request, including a summary of the change, verification evidence, and possible reviewer concerns.
Why use it?
It checks that the branch and proposed changes are ready, then builds the pull request description from the actual project history.

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/fmarzochi/egc/prp-pr
Clone the repo
git clone --depth 1 https://github.com/Fmarzochi/EGC

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/fmarzochi/egc/prp-pr.svg)](https://agentmods.dev/commands/fmarzochi/egc/prp-pr)
Your own site
<a href="https://agentmods.dev/commands/fmarzochi/egc/prp-pr"><img src="https://agentmods.dev/badge/commands/fmarzochi/egc/prp-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 677 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.00021 $0.00677
Opus 5 $0.00010 $0.00338
Sonnet 5 $0.00004 $0.00135
Haiku 4.5 $0.00002 $0.00068

Measured 2d ago against content hash 93ec3f915a37, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

prp-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 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.

commands/prp-pr.md · 89 lines

How it starts

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

Pull Request Creator

Input: $ARGUMENTS: optional base branch name and/or flags (e.g., --draft).

Open a pull request whose description a reviewer can trust: assembled from the actual commits and diff, with verification evidence, never from memory of the conversation.

Step 1: Preflight

All four must hold before anything is pushed:

Check Command On failure
Not on the base branch git branch --show-current Offer to create a feature branch from the current state
Base branch exists git rev-parse --verify {base} Ask for the correct base
There are commits to propose git log {base}..HEAD --oneline Stop: nothing to open a PR for
gh is authenticated gh auth status Stop with the login instruction

Base branch: first word of $ARGUMENTS if present, otherwise main.

Step 2: Understand the change

Build the PR narrative from evidence:

git log {base}..HEAD --format='%h %s%n%b'
git diff {base}...HEAD --stat

Identify: the user-visible outcome, the commits that carry it, breaking changes, and anything a reviewer will ask about (large diffs, deleted files, dependency changes).

Step 3: Template discovery

Look for a PR template, in order:

.github/PULL_REQUEST_TEMPLATE.md
.github/pull_request_template.md
.github/PULL_REQUEST_TEMPLATE/*.md
docs/pull_request_template.md

When one exists, fill its sections faithfully; empty template sections are deleted, not left as placeholder text. When none exists, use:

## What

{the change, stated as its user-visible outcome}

## Why

{the problem or request behind it}

## Verification

{commands run and their results; screenshots for UI changes}

## Notes for review

{breaking changes, migration steps, or "none"}

Step 4: Push and open

git push -u origin {current-branch}
gh pr create --base {base} --title "{conventional-commit style title}" --body "{assembled body}"

Add --draft when the flag was passed. The PR title follows the same conventional format as commit messages.

Read the full file on GitHub · 89 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 · 89 lines · 21 tokens per session scan A 93ec3f915a37

Subscribe to this mod's changes

prp-pr is a command published in the GitHub repository Fmarzochi/EGC (48 stars, last pushed today), licensed Apache-2.0. It adds 21 tokens to every session and 677 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-09-03.