Borrowing it
Nothing to install: this file belongs to robconery/kolea. 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/robconery/kolea/main/.claude/commands/git-pr.mdgit clone --depth 1 https://github.com/robconery/koleaWrote 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/robconery/kolea/git-pr)<a href="https://agentmods.dev/commands/robconery/kolea/git-pr"><img src="https://agentmods.dev/badge/commands/robconery/kolea/git-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/robconery/kolea/git-pr"><img src="https://agentmods.dev/badge/commands/robconery/kolea/git-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.00028 | $0.00556 |
| Opus 5.5 | $0.00011 | $0.00222 |
| Sonnet 5.5 | $0.00006 | $0.00111 |
| Haiku 4.5 | $0.00003 | $0.00056 |
Grade A, and why
git-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.
What it actually says
pr
Open a GitHub pull request for the current branch using the github
skill's PR template.
Behavior
- Preflight.
gh auth statusto confirm CLI is logged in.- Refuse if the current branch is
main— make a branch first (git switch -c <type>/<slug>). - Refuse if the working tree is dirty — commit or stash first
(suggest
/git-commit).
- Gather context in parallel:
git statusgit log <base>..HEAD --oneline(default base = the repo's default branch;mainunless--basearg says otherwise)git diff <base>...HEADto understand the full set of changes
- Push the branch if not already tracking a remote:
git push -u origin HEAD. - Draft per the
githubskill PR template:- Title — Conventional Commit style, ≤70 chars.
- Summary — 2–4 bullets covering all the commits, not just the latest. The headline change first.
- Why — one paragraph; link the story id / issue.
- How to verify — concrete checklist (commands, URLs, manual steps). Reviewer should be able to run these in order.
- Risk / rollback — one or two lines; be honest if it's low risk.
Closes #Nfooter if it resolves an issue.
- Show the draft to the user before creating. Confirm
--draftif work is still in progress. - Create with a HEREDOC body:
Usegh pr create --title "<title>" --body "$(cat <<'EOF' ... EOF )"--base <branch>only when not targeting the default.
Rules
- Title must reflect all the commits on the branch, not just HEAD.
- Don't push to
main; don't force-push to a branch with an open PR without saying so. - Don't include local-only paths, secrets, or
.envreferences in the body.
Hand off
Return the PR URL gh prints.
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.
- 2mo ago First seen · 57 lines · 28 tokens per session scan A 620a1dbc17ec
git-pr is a command published in the GitHub repository robconery/kolea (11 stars, last pushed 28d ago), licensed MIT. It adds 28 tokens to every session and 556 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.
Other commands, from other repositories
customer-changelog-check
Audit whether user-visible changes in the current session have matching CHANGELOG.md entries; report MISSING with suggested lines; --fix auto-appends.
retro
Generate a timestamped arc retrospective from the past 7 days of git history in /.agentskills.
update-agentskills
Apply a reusable lesson to /.agentskills (rules/skills/templates/commands), backup + commit + push.
rollback
Restore the previous Cloudflare deployment and verify recovery. Fires when a deploy broke prod and you need the last-good version back.
sync-claude
Update the vendored control plane + core commands in this repo to the latest heymegabyte/claude-bootstrap. Fires when the shared brain has moved on.
worktree-create
Create a git worktree for parallel development on a separate branch without stashing.