maestro: Command for Claude Code

.claude/commands/pr.md

pr is a command for Claude Code from emdgroup/maestro. It costs 15 tokens per session (1,224 once invoked), scanned A, original, Apache-2.0.

A command that prepares the current work for a pull request, a proposed change submitted for review. It checks Git state, commits and pushes the relevant changes, opens or resumes a pull request, watches CI checks, and fixes failures.

In plain words
What is it for?
Use it to create a safe feature branch, make a focused commit, run relevant checks, open a pull request, and follow its CI results.
Why use it?
It removes the repeated work of checking branches, committing, opening a pull request, and waiting for automated checks.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions AGENTS.md.

This is emdgroup/maestro's own configuration. It tells Claude Code how to work on maestro itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything maestro configures →

Reuse

Borrowing it

Nothing to install: this file belongs to emdgroup/maestro. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/emdgroup/maestro/main/.claude/commands/pr.md
Clone the repo
git clone --depth 1 https://github.com/emdgroup/maestro

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/emdgroup/maestro/pr/github.svg)](https://agentmods.dev/commands/emdgroup/maestro/pr)
Your own site
<a href="https://agentmods.dev/commands/emdgroup/maestro/pr"><img src="https://agentmods.dev/badge/commands/emdgroup/maestro/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/emdgroup/maestro/pr"><img src="https://agentmods.dev/badge/commands/emdgroup/maestro/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 1,224 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.01224
Opus 5.5 $0.00006 $0.00490
Sonnet 5.5 $0.00003 $0.00245
Haiku 4.5 $0.00002 $0.00122

Measured 9d ago against content hash dbef4163af01, 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 9d 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/pr.md · 102 lines

How it starts

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

Ship the current work as a pull request and stay with it until CI is green.

Target branch: $ARGUMENTS if given, otherwise the repo default branch (gh repo view --json defaultBranchRef -q .defaultBranchRef.name).

1. Get the work onto a branch

  • git status --short and git log --oneline @{u}.. 2>/dev/null — figure out whether there is anything uncommitted, anything unpushed, or an existing PR (gh pr view --json number,url,headRefName).
  • If HEAD is the target branch, create a branch first — never push work straight to it. Name it after what the change does (fix-review-tab-diff, not patch-1).
  • Commit only what belongs to this change. Read the diff before writing the message; a message derived from filenames instead of the actual hunks is worse than no message. Follow the repo's existing commit style (check git log --oneline -15).
  • If everything is already committed and pushed and a PR exists, skip to step 3 — this command is also how you resume babysitting a PR.

2. Run CI locally before pushing

A failed CI run costs minutes of waiting; the same check locally costs seconds. Run the checks that match what the change touched — frontend edits do not need a cargo clippy run, and vice versa. Read .github/workflows/ci.yml for the authoritative list.

For this repo that is roughly:

Touched Run
src/, config bun run lint · bun run format · bun run build · bun run test --run
Rust crates cargo clippy --workspace --all-targets -- -D warnings · cargo test for the crate

Fix what fails, then push (git push -u origin HEAD).

One trap worth knowing: any cargo test -p maestro --lib run rewrites src/types/bindings.ts unformatted, so it will show up dirty afterwards. Run bun run format:fix and check whether the exported names actually changed before assuming the bindings were stale.

Read the full file on GitHub · 102 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. 9d ago First seen · 102 lines · 15 tokens per session scan A dbef4163af01

Subscribe to this mod's changes

pr is a command published in the GitHub repository emdgroup/maestro (11 stars, last pushed 4d ago), licensed Apache-2.0. It adds 15 tokens to every session and 1,224 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-11-21.

Related

pr compared with commands from other repositories

pr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
premdgroup/maestroCommand114d agoApache-2.0A15Claude Code
issue-to-mr-setupOpenHands/extensionsCommand189todayMITA54Claude Code
validate-pr-descriptionrjmurillo/ai-agentsCommand50todayApache-2.0A22Claude Code
commitjuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA6Claude Code, OpenCode
check-fixjuliusz-cwiakalski/agentic-delivery-osCommand47todayMITA23OpenCode
project-initathola/claude-night-marketCommand358yesterdayMITC28Claude Code
commit-allHuskyauto/VisionClaw-Agent-Public-ReleaseCommand262d agoMITA26Claude Code