pr

pr is a command for Claude Code from hamza-ali-shahjahan/hamzaish. It costs 58 tokens per session (1,699 once invoked), scanned A, original, MIT.

A one-command GitHub workflow that creates a branch, commits changes, opens a pull request, waits for continuous integration, squash-merges it, and synchronizes the local repository. Continuous integration, or CI, automatically checks code after changes are submitted.

In plain words
What is it for?
Use it to send a change to a repository's main branch through GitHub and CI; product production deployments use /ship instead.
Why use it?
It turns the multi-step process of safely shipping a repository change into one guided workflow with plain-language progress.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it to send a change to a repository's main branch through GitHub and CI; product production deployments use /ship instead.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hamza-ali-shahjahan/hamzaish/pr
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/hamza-ali-shahjahan/hamzaish

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 pr

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/hamza-ali-shahjahan/hamzaish/pr"><img src="https://agentmods.dev/badge/commands/hamza-ali-shahjahan/hamzaish/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 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,699 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.00058 $0.01699
Opus 5.5 $0.00023 $0.00680
Sonnet 5.5 $0.00012 $0.00340
Haiku 4.5 $0.00006 $0.00170

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

Security

Grade A, and why

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 2mo 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.

factory/commands/pr.md · 109 lines

How it starts

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

The user invoked: /pr $ARGUMENTS

Ship the current working-tree change to main the safe way — through a branch, a PR, and CI — without making the user learn the 7 git concepts. Design + rationale: docs/repo-ship-flow.md. This is the repo-contribution flow; product production deploys stay on /ship.

Teaching mode (default)

The user may not know git. Narrate one plain-English line before each step, in their vocabulary ("proposal" not "PR", "checks" not "CI", "publish" not "merge"). On the first run in a session, print a 2-line "here's what's about to happen and why." Never dump raw git unless asked.

The flow (run in order; stop on any failure)

  1. Pre-flight.

    • Confirm there are uncommitted changes (git status --porcelain). If none → say so, stop.
    • Show the user the list of files about to ship; confirm scope if it's ambiguous or includes files you didn't create (e.g. a parallel session's). Stage only the intended files — never git add -A.
    • Secret scan the staged diff (gitleaks if present, else grep for key patterns). If anything looks like a secret → abort before pushing, tell the user.
    • Identity check: git config user.email must be a real address — not empty, not [email protected] / [email protected] / [email protected]. A placeholder gets your commits attributed to a stranger's GitHub account (2026-07-03 incident: brain/anti-patterns/misattributed-commits-placeholder-email.md). Bad identity → stop, print the fix (gh api user --jq '"\(.id)+\(.login)@users.noreply.github.com"').
  2. Branch — from origin/main, never local main. git fetch origin && git switch -c change/<kebab-slug-from-$ARGUMENTS> origin/main. Local main may carry unpushed commits from parallel sessions; branching off it smuggles them into the squash and publishes work nobody reviewed (this happened: 2026-07-02, PR #21 — see brain/anti-patterns/pr-branch-from-ahead-local-main.md). If local main is ahead of origin/main, say so out loud — those commits are NOT part of this ship unless the user says they are. (Branching from origin/main detaches from the working tree's base but keeps the working-tree changes — exactly what we want staged.)

Read the full file on GitHub · 109 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. 2mo ago Changed · +7 lines dc4f5945023b
  2. 3mo ago First seen · 102 lines · 58 tokens per session scan A 1824c0e7a90c

Subscribe to this mod's changes

pr is a command published in the GitHub repository hamza-ali-shahjahan/hamzaish (11 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 1,699 once invoked, about $0.0002 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-09-03.

Related

pr compared with commands from other repositories

pr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prhamza-ali-shahjahan/hamzaishCommand111mo agoMITA58Claude Code
upgrade-projectathola/claude-night-marketCommand358todayMITA15Claude Code
issue-to-mr-setupOpenHands/extensionsCommand191yesterdayMITA54Claude Code
commitjuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA6Claude Code, OpenCode
check-fixjuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA23OpenCode
prjuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA9Claude Code, OpenCode
project-initathola/claude-night-marketCommand358todayMITC28Claude Code