Borrowing it
Nothing to install: this file belongs to NaanyaBiz/haggle. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/NaanyaBiz/haggle/main/.claude/commands/pr.mdgit clone --depth 1 https://github.com/NaanyaBiz/haggleWrote 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.
[](https://agentmods.dev/commands/naanyabiz/haggle/pr)<a href="https://agentmods.dev/commands/naanyabiz/haggle/pr"><img src="https://agentmods.dev/badge/commands/naanyabiz/haggle/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.
<a href="https://agentmods.dev/commands/naanyabiz/haggle/pr"><img src="https://agentmods.dev/badge/commands/naanyabiz/haggle/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01398 |
| Opus 5.5 | $0.00000 | $0.00559 |
| Sonnet 5.5 | $0.00000 | $0.00280 |
| Haiku 4.5 | $0.00000 | $0.00140 |
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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/pr
Push the current feature branch and open a GitHub pull request, after running a full documentation audit.
Usage
/pr
/pr <optional PR title override>
Pre-conditions (check before proceeding)
- Working tree is clean (
git status --porcelainreturns empty). If dirty, stop and tell the user to commit or stash first. - Not on
main— never open a PR from main. If on main, stop and report the error. - Branch is rebased onto current
main. Rungit fetch origin, then checkgit rev-list HEAD..origin/main --count. If the count is > 0 (main has commits this branch doesn't have):- Run
git rebase origin/main. - If it succeeds (exit 0), continue — but note that history was rewritten,
so a
git push --force-with-lease origin <branch>will be needed in Step 3. - If it has conflicts, stop immediately: list the conflicting files from
git diff --name-only --diff-filter=U, tell the user to resolve them manually and re-run/prwhen done. If count is 0 (already up to date), continue with a regular push in Step 3.
- Run
Steps
1. Gather context
Run these in parallel:
git log main..HEAD --oneline— list commits on this branch.git diff main..HEAD --stat— files changed.- Read
CHANGELOG.md(current## [Unreleased]section). - Read
AGENTS.md(Repo Map + AGL API sections).
2. Documentation audit (REQUIRED — do not skip)
Work through the full checklist from AGENTS.md § Documentation Checklist.
All four artifact types must be addressed before the PR is opened.
CHANGELOG.md — add bullet(s) under the appropriate sub-heading
(### Added, ### Changed, ### Fixed) in ## [Unreleased].
One concise sentence per logical capability. Do not duplicate existing entries.
AGENTS.md — Repo Map — add any new files introduced by this branch; update descriptions if a file's role changed. Cross-check by running:
find custom_components/haggle tests -name "*.py" | sort
AGENTS.md — AGL API — if this branch corrected an API fact (endpoint, field name, token lifetime, header), update that bullet now.
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.
- 1mo ago First seen · 152 lines · 0 tokens per session scan A b20c93d7c9c2
pr is a command published in the GitHub repository NaanyaBiz/haggle (14 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,398 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-09-04.
Other commands, from other repositories
speckit.spex.submit
Push and create PR for team review, with optional watch mode for CI monitoring.
git
The pre-finish status: branch, hygiene findings, message checks, workflow lint, template state.
factory
Linha de montagem multi-agente (Software Factory) — spec-writer → builder em worktree isolado → 4 revisores paralelos (Security, Code, UI, UX) → approver com gate de risco e dashboard visual.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
release-tag
Create and push a version tag after a release PR has been merged.
advanced-code-review-context
Advanced Code Review Phase 2: Context Analysis - load previous reviews, PR history, declined items.