prepare-pr

prepare-pr is a skill for Claude Code, Codex from kirodotdev/KiroCrew. It costs 0 tokens per session (10,919 once invoked), scanned C, original, Apache-2.0.

A workflow for turning working-tree changes into a review-ready pull request and continuing to monitor its checks and automated reviews. A pull request is a proposed change submitted for review before it is merged.

In plain words
What is it for?
It helps commit and sync changes, squash them into one commit, open or update a pull request, monitor CI and review bots, and optionally prepare automatic merging.
Why use it?
It brings code, branch history, CI results, and review findings into one repeated process, including fixes for legitimate high-priority problems and failed builds.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/kirodotdev/kirocrew/prepare-pr
Any agent
npx skills add kirodotdev/KiroCrew --skill prepare-pr
Clone the repo
git clone --depth 1 https://github.com/kirodotdev/KiroCrew

Made for: Claude Code, Codex.

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 prepare-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/kirodotdev/kirocrew/prepare-pr.svg)](https://agentmods.dev/skills/kirodotdev/kirocrew/prepare-pr)
Your own site
<a href="https://agentmods.dev/skills/kirodotdev/kirocrew/prepare-pr"><img src="https://agentmods.dev/badge/skills/kirodotdev/kirocrew/prepare-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,919 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00000 $0.10919
Opus 5 $0.00000 $0.05459
Sonnet 5 $0.00000 $0.02184
Haiku 4.5 $0.00000 $0.01092

Measured yesterday against content hash af3b5cb42d33, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

prepare-pr scanned grade C with 1 finding 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 yesterday.

The scan reads SKILL.md. This mod also ships 11 executable files (scripts/_review_contract.py, scripts/diff_signals.py, scripts/enable_automerge.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

- **Never decline a reviewer's wider scope without a failing test proving the narrower scope is sufficient.**
src/kiro_crew/builtin_skills/kirocrew-dev/prepare-pr/SKILL.md · 519 lines

How it starts

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

Prepare PR

Drive the working tree to a review-ready PR, then keep driving until CI and the review bots are satisfied. Opening the PR is the midpoint, not the end.

This file carries only what the loop executes. The reasons behind the rules — incident evidence, script internals, design history — are in references/rationale.md; read it when you need to justify a deviation, not on every load.

Mode — decide once, at the start

Signal in the request Mode
Anything else, including ambiguity and a PR you opened incidentally Full loop (default)
An explicit stop: "update the PR", "push my changes", "sync my branch", "just update the body/description", "don't wait for CI" Prepare-only
An explicit ship: "ship this PR", "land it", "auto-merge it once green" Full loop + arm auto-merge at Phase 4

Precedence, when a request carries more than one signal: an explicit ship beats an explicit stop, and either beats the default. So "push this and make it green" is full loop — a stop signal only wins when it is the whole ask.

  • Full loop — Phase 0 once, then Phase 1 → 2 → 3 repeatedly until review-ready or escalation.
  • Prepare-only — Phase 0 once, then ONE pass of Phase 1 → 2 → push → a single pr_status.py snapshot → report → STOP. The Phase 2 gate still runs; a push always goes out locally-green. No server poll, no auto-merge.
  • Say in one line which mode you picked, so the user can redirect.

Never merge a PR yourself. Auto-merge (Phase 4) hands the merge to GitHub, which lands it only once the repo's own required reviews and checks pass. Generic remediation ("fix CI", "make it green") is not a ship request.

Review-ready — the definition

All four, together:

  1. pr_status.py exits 0PR Readiness status and readiness: passed label green.
  2. Mergeable: no conflicts, not draft, not CHANGES_REQUESTED.
  3. One clean commit on a feature branch (when the profile sets single_commit).
  4. Every raised concern answered on the PR — see "Dispositions" below.

Read the full file on GitHub · 519 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. yesterday Changed · +8 lines af3b5cb42d33
  2. 4d ago First seen · 511 lines · 0 tokens per session scan C 5893954d6021

Subscribe to this mod's changes

prepare-pr is a skill published in the GitHub repository kirodotdev/KiroCrew (3,532 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 10,919 tokens. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.