pr

pr is a command for Claude Code from coleam00/Archon. It costs 0 tokens per session (1,846 once invoked), scanned A, original, MIT.

A command that publishes a pull request for the committed work on the current Git branch. A pull request is a proposed change that reviewers can inspect before it is merged into a shared branch.

In plain words
What is it for?
Use it to push a branch and open either a draft or review-ready pull request with an accurate, reviewer-friendly summary.
Why use it?
It checks that the branch, target branch, commits, and final changes are correctly identified before publishing. It also creates the title and description reviewers need.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to push a branch and open either a draft or review-ready pull request with an accurate, reviewer-friendly summary.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/coleam00/archon/pr
About the project

Archon is a workflow engine for AI coding agents that turns development processes into YAML-defined sequences with phases, validation gates, and artifacts. Developers use it to run repeatable processes such as planning, implementation, testing, code review, and pull-request creation across projects. The catalogue entries provide commands, agents, skills, hooks, instructions, and settings for working with Archon.

coleam00/Archon · 24,031 stars · on GitHub · archon.diy

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/coleam00/Archon

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/coleam00/archon/pr/github.svg)](https://agentmods.dev/commands/coleam00/archon/pr)
Your own site
<a href="https://agentmods.dev/commands/coleam00/archon/pr"><img src="https://agentmods.dev/badge/commands/coleam00/archon/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/coleam00/archon/pr"><img src="https://agentmods.dev/badge/commands/coleam00/archon/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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,846 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.00000 $0.01846
Opus 5.5 $0.00000 $0.00738
Sonnet 5.5 $0.00000 $0.00369
Haiku 4.5 $0.00000 $0.00185

Measured 6d ago against content hash 5e1247ec3ef0, 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 6d 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.

.archon/workflows/sdlc/pr/commands/pr.md · 60 lines

How it starts

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

Prepare the Pull Request

Prepare a clear, reviewer-friendly pull request for the committed work on the current branch. You never modify source files, and you never push, create, edit, or comment on the pull request yourself: your only writes are the body file and the description file below. The node that follows owns the branch push and PR writes, and verifies the description edit through the forge plugin. You do not merge the base: a conflict with it is found by CI and resolved by the implementer.

Draft mode: $INPUTS.draft — true opens as a draft; anything else, ready for review. A pull request that already exists keeps the draft state its author gave it.

Description section: $INPUTS.publish_description — true lets this run publish content it prepared for the pull request's description; anything else, it prepares none.

Context from the run that may narrow this (often empty):

$ARGUMENTS

1. Establish the target

Record HEAD_BRANCH=$(git branch --show-current) before doing anything else; an empty value is a hard failure, as is a HEAD with no commits. Resolve the repository the pull request opens against from the checkout's remotes (git remote -v): the repository this work is proposed to, which in a fork setup is the upstream the fork was made from, not the fork. Whatever the remotes are named, declare its canonical forge identity as host plus path (owner/repo), with transport syntax, credentials, and a trailing .git stripped; GitHub's HTTPS, [email protected]:..., and ssh://[email protected]/... forms all declare host github.com. Remotes that do not identify one repository are a hard failure. Never persist or print a credential-bearing raw remote.

The base branch is $BASE_BRANCH: the branch this run was cut from, which is the work item's landing branch when it has one. Use it for every diff.

When this run continues an existing pull request — the caller resolved it ($INPUTS.pull_request; empty or null when it named none), the run's context names its number, or the run was launched onto it — record that number and the qualified head repository and head branch it belongs to. Read that pull request through the Archon CLI: <argv...> forge pr.view --json --data '{"selector":{"kind":"number","ref":{"repo":{"host":…,"path":…},"number":…}}}', where <argv...> is the JSON string array in $ARCHON_CLI_COMMAND. Its pr record carries head, head_repo, head_revision and maintainer_can_modify. A failed read is the answer: report it, and never repeat it through another tool. HEAD must descend from that pull request's current head revision; if it does not, stop and report rather than prepare a replacement. If the head lives in a fork and the author did not allow maintainer edits, this run cannot publish to it: stop and report.

Read the full file on GitHub · 60 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. 6d ago Changed 5e1247ec3ef0
  2. 21d ago Changed 9a35b3354558
  3. 24d ago Changed f321d4495e64
  4. 1mo ago Changed 5de7162da4e7
  5. 1mo ago Changed · +11 lines a8c16f191e67
  6. 1mo ago Changed 5c48ac9f2f12
  7. 1mo ago Changed 78e8ba5c961f
  8. 1mo ago Changed · +2 lines ee5231398a35
  9. 1mo ago Changed · -12 lines 878028e043f1
  10. 2mo ago First seen · 59 lines · 0 tokens per session scan A f6ee3ad85da1

Subscribe to this mod's changes

pr is a command published in the GitHub repository coleam00/Archon (24,031 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,846 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-30.

Related

pr compared with commands from other repositories

pr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prcoleam00/ArchonCommand24ktodayMITA0Claude Code
fix-issuescan1357/oh-my-piCommand40ktodayMITA0Claude Code
review-prscan1357/oh-my-piCommand40ktodayMITA0Claude Code
releasecan1357/oh-my-piCommand40ktodayMITA0Claude Code
triagecan1357/oh-my-piCommand40ktodayMITA0Claude Code
cleanupcan1357/oh-my-piCommand40ktodayMITA0Claude Code
hatch3r-pr-resolvehatch3r/hatch3rCommand262mo agoMITA25Claude Code