staged-pipeline

staged-pipeline is a command for Claude Code from juanmhidalgo/claude-plugins. It costs 44 tokens per session (2,211 once invoked), scanned A, original, MIT.

A command that reviews and fixes staged Git changes in one session before a commit. Staged changes are the edits already selected for the next commit.

In plain words
What is it for?
Use it when staged files need a review covering security, performance, bugs, code quality, or missing tests.
Why use it?
It combines review with corrections, helping address code risks before the changes are committed.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the ExitPlanMode tool.

Part of the code-review plugin — 5 skills, 14 commands, 13 agents shipped together

Good fit Use it when staged files need a review covering security, performance, bugs, code quality, or missing tests.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/juanmhidalgo/claude-plugins/staged-pipeline
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.

Clone the repo
git clone --depth 1 https://github.com/juanmhidalgo/claude-plugins

Made for: Claude Code.

Or install code-review, the plugin that ships this one along with the rest of its 5 skills, 14 commands, 13 agents.

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 staged-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/staged-pipeline/github.svg)](https://agentmods.dev/commands/juanmhidalgo/claude-plugins/staged-pipeline)
Your own site
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/staged-pipeline"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/staged-pipeline/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 staged-pipeline

Your own site · 80×15
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/staged-pipeline"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/staged-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,211 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.00044 $0.02211
Opus 5 $0.00022 $0.01105
Sonnet 5 $0.00009 $0.00442
Haiku 4.5 $0.00004 $0.00221

Measured today against content hash 8991787c1484, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

staged-pipeline 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 today.

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.

code-review/commands/staged-pipeline.md · 254 lines

How it starts

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

Context

  • Current branch: !git branch --show-current
  • Staged files: !git diff --cached --name-only
  • Focus area: $ARGUMENTS

Phase 0: Validate

  1. Check staged changes exist: git diff --cached --name-only must return files. If empty, STOP and tell user to stage changes first.
  2. Note the staged file list for later phases.

Phase 1: Review (dispatched)

<iron_law priority="blocking">

The reviewer runs in a subagent, and so does the verifier in Phase 2. Neither runs in this conversation.

</iron_law>

This pipeline runs in the session that wrote the staged code. That session holds every reason the code looks correct — which is the framing both the review and the verification must start without.

Use the Agent tool with subagent_type="code-review:branch-reviewer".

Pass scope, not content. Do not summarize the change, explain its intent, or paste excerpts — each transmits the framing the fresh context exists to exclude:

SCOPE: staged changes (git diff --cached)
EFFORT: <low|medium|high|max, default medium>
FOCUS: <the focus area from $ARGUMENTS, if one was given>
OUTPUT_PATH: <scratchpad dir>/staged-pipeline-review.md

The finding format, severity/confidence rubric, labels, and the mandatory failure-scenario field come from the branch-review skill. Do not restate the rubric in the agent prompt — the skill is the single source of truth, and a second copy here is a copy that drifts.

Read OUTPUT_PATH first — it is the primary channel. Use anything returned inline only to fill in a missing or empty file. If the agent finished and left neither, the review did not run: say so and re-run it. Never treat a missing report as a clean one.

Phase 2: Verify (dispatched)

Every finding is verified by an agent that did not produce it. Follow references/verification.md in the branch-review skill for the dispatch shape, verdict handling, the empty-refutation rule and the silent-verifier rule.

Read the full file on GitHub · 254 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. today Changed · +22 lines 8991787c1484
  2. 9d ago First seen · 232 lines · 44 tokens per session scan A 9447df75e3d2

Subscribe to this mod's changes

staged-pipeline is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 2,211 once invoked, about $0.0002 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-31.