Borrowing it
Nothing to install: this file belongs to gke-labs/kube-agents. 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/gke-labs/kube-agents/main/.claude/commands/pr-preflight.mdgit clone --depth 1 https://github.com/gke-labs/kube-agentsWrote 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/gke-labs/kube-agents/pr-preflight)<a href="https://agentmods.dev/commands/gke-labs/kube-agents/pr-preflight"><img src="https://agentmods.dev/badge/commands/gke-labs/kube-agents/pr-preflight/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/gke-labs/kube-agents/pr-preflight"><img src="https://agentmods.dev/badge/commands/gke-labs/kube-agents/pr-preflight.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.00022 | $0.00379 |
| Opus 5 | $0.00011 | $0.00189 |
| Sonnet 5 | $0.00004 | $0.00076 |
| Haiku 4.5 | $0.00002 | $0.00038 |
Grade A, and why
pr-preflight 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.
What it actually says
Run the pre-PR review passes over this branch, against base: $ARGUMENTS (empty means main).
Follow .agents/skills/review-preflight/SKILL.md. It is the procedure; this file only supplies the
base ref and the fact that you were asked.
You were asked. Invoking this command is the request to delegate, so spawn the subagents without asking me again — one per applicable pass, all in a single message so they run concurrently. Review nothing yourself: your job is the range, the mechanical gate, the fan-out, and the relay. A pass you run in this context is the one configuration the passes exist to avoid, and I have just removed the only reason to do it.
Resolve the base before anything else, with the recipe in review-preflight §1 — it finds the
remote, fetches it, and stops rather than falling back to a base it could not refresh. Substitute
the base I named above for its BASE_BRANCH, if I named one, reduced to a branch name as §1 says.
Fetch it even if I handed you one that already resolves: I may have typed a branch that has not been
refreshed in a week, and §1 says why that is the failure it exists to stop.
Report before you act: the merged disposition list, which passes ran and which you skipped, and
anything the passes said they could not cover. Then fix what the passes confirmed, per
review-preflight §6 — the reading order is the point, not a freeze. Leave the PR body until after
I have read the list.
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.
- 9d ago First seen · 27 lines · 22 tokens per session scan A 50b53cd17203
pr-preflight is a command published in the GitHub repository gke-labs/kube-agents (53 stars, last pushed today), licensed Apache-2.0. It adds 22 tokens to every session and 379 once invoked, about $0.0001 per session on Opus 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-30.
Other commands, from other repositories
sdd-init
Initialize SDD context — detects project stack and bootstraps persistence backend.
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
init
Install the formatters this repository needs, with every command visible before it runs.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
argos
A command for checking whether an implementation matches its design deliverables. Its Korean description compares the work to the design as part of a completion inspection.
security-review
AI-powered security review of the current git diff (or specified paths). Dispatches the security-reviewer agent and prints findings grouped by severity.