pr

pr is a command for Claude Code from Pierry/harness-kit. It costs 15 tokens per session (873 once invoked), scanned A, original, MIT.

A command that opens a GitHub pull request, usually as a draft, while following the project's team conventions. A pull request is a proposed code change submitted for review before merging.

In plain words
What is it for?
Use it after earlier planning, development, and testing gates pass to infer a ticket ID, compose the request, and publish it through GitHub.
Why use it?
It removes repetitive preparation and helps ensure the branch, required workflow checks, title, and description follow the project's rules.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Part of the harness-kit plugin — 14 skills, 18 commands, 4 agents, 4 hooks shipped together

Good fit Use it after earlier planning, development, and testing gates pass to infer a ticket ID, compose the request, and publish it through GitHub.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/pierry/harness-kit/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/Pierry/harness-kit

Made for: Claude Code.

Or install harness-kit, the plugin that ships this one along with the rest of its 14 skills, 18 commands, 4 agents, 4 hooks.

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/pierry/harness-kit/pr/github.svg)](https://agentmods.dev/commands/pierry/harness-kit/pr)
Your own site
<a href="https://agentmods.dev/commands/pierry/harness-kit/pr"><img src="https://agentmods.dev/badge/commands/pierry/harness-kit/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/pierry/harness-kit/pr"><img src="https://agentmods.dev/badge/commands/pierry/harness-kit/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 873 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.00015 $0.00873
Opus 5.5 $0.00006 $0.00349
Sonnet 5.5 $0.00003 $0.00175
Haiku 4.5 $0.00002 $0.00087

Measured 11d ago against content hash 463307e1825e, 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 11d 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/sse/pr.md · 68 lines

What it actually says

Open Pull Request. Follow .claude/agents/staff-software-engineer/guides/pipeline.md for retry, approval, publish, and .claude/shared/pipeline-pattern.md for inputs (resolve-mark-proceed) and eval (adversarial).

Print header card before opening and footer card after gh returns. Format: .claude/scripts/stage-card.md.

Prerequisites:

  • All previous gates passed (plan approved, dev approved, test approved).
  • Branch pushed to origin with current changes.

Before opening, write the phase start marker by running this script. Do NOT inline date/printf (command-substitution + redirect always trips the permission prompt):

.claude/scripts/marker.sh start .claude/runtime/outputs/sse/.markers/{feature_id}.pr-generate.start

Read:

  • .claude/agents/staff-software-engineer/guides/commit-style.md
  • latest plan and dev outputs (for body content)

Infer the ticket id from the branch name (e.g., feat/PROJ-123-foo -> PROJ-123), else from the PRP/plan/intake frontmatter or commit messages. If none yields one, mark NOT FOUND - NEEDS REVIEW: ticket id in the record and open the PR without it. Do NOT ask the user. Never call Jira API.

Compose:

  • Title: conventional commit prefix + short description (e.g., feat(PROJ-123): add timezone-aware deadline check)
  • Body: links to PRD/PRP, summary, test plan checklist
  • Draft: yes by default unless user passes --ready

Open via gh pr create --draft --title "..." --body "...".

Save .claude/runtime/outputs/sse/pr/{feature_id}.md with:

  • pr url
  • title
  • draft status
  • summary
  • test plan checklist
  • refs (plan + dev paths)

Graph, only when python3 .claude/scripts/hk-config.py get graph not off: python3 .claude/scripts/trace.py validate must exit 0 before gh pr create; commit trace/{feature_id}.yml; paste python3 .claude/scripts/trace.py summary {feature_id} into the body under a Traceability heading.

Document gates (run on saved record):

  • Sensor: .claude/agents/staff-software-engineer/sensors/pr-structure.md (auto-run by post-write hook)
  • Eval: .claude/agents/staff-software-engineer/evals/pr-quality.md (threshold 8.0)

Run the evals adversarially: dispatch a fresh evaluator via the Task tool (subagent_type: general-purpose) that did not author this PR record. Hand it only the artifact path and the one rubric path; it scores against the rubrics and reports weighted totals plus the low-scoring dimensions. Below threshold (8.0) retries per pipeline.md, regenerating only the flagged dimensions.

Append approval marker only when sensor passes and pr-quality eval is >= 8.0. Append with the Edit tool, not Bash: post-eval-sse.sh fires on Edit, and a Bash append skips token accounting and the score log. Keep score= in the shape, phase-log.py only parses markers that carry it:

<!-- approved: {YYYY-MM-DD} score={N} ready-for-handoff: true -->

Reply with this exact shape:

PR opened: {url}
  title:   {title}
  draft:   {yes|no}
  sensors: pr-structure ok
  eval:    pr-quality {N}/10
  guides:  commit-style.md
  refs:    plan/{feature_id}.md, dev/{feature_id}.md
  next:    request review (if draft, mark ready when checks pass)

After replying, auto-invoke /sse:pr-monitor so session watches PR for merge with backoff polling. Skip if user passed --no-monitor or PR already MERGED.

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. 11d ago Changed · +2 lines 463307e1825e
  2. 1mo ago First seen · 66 lines · 15 tokens per session scan A 24b2380cde4e

Subscribe to this mod's changes

pr is a command published in the GitHub repository Pierry/harness-kit (4 stars, last pushed 11d ago), licensed MIT. It adds 15 tokens to every session and 873 once invoked, about $0.0001 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-08-31.