pipeline

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

An automated workflow for handling all feedback on an open GitHub pull request, which is a proposed code change awaiting review.

In plain words
What is it for?
Use it to validate pull-request feedback, dismiss incorrect comments, apply fixes, run checks, and stop when the configured validation cannot pass.
Why use it?
It removes the need to inspect, fix, test, and track every review comment manually in one pass.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Good fit Use it to validate pull-request feedback, dismiss incorrect comments, apply fixes, run…

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add juanmhidalgo/claude-plugins
Claude Code
/plugin install code-review

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 pipeline

README.md
[![agentmods](https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/pipeline.svg)](https://agentmods.dev/commands/juanmhidalgo/claude-plugins/pipeline)
Your own site
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/pipeline"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/pipeline.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 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,154 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.00033 $0.01154
Opus 5 $0.00016 $0.00577
Sonnet 5 $0.00007 $0.00231
Haiku 4.5 $0.00003 $0.00115

Measured 6d ago against content hash 893abe9e32c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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 6d 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.

code-review/commands/pipeline.md · 120 lines

How it starts

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

Context

  • Repository: !git remote get-url origin
  • Current branch: !git branch --show-current
  • PR Number: $ARGUMENTS
  • Date: !date +%Y-%m-%d
  • Working tree clean: !git status --short

Phase 0: Validate

  1. PR number was provided (from $ARGUMENTS)
  2. Working tree is clean. If dirty, STOP and ask user to commit or stash.
  3. PR is open: gh pr view $ARGUMENTS --json state -q '.state' must be OPEN. If draft/closed/merged, STOP.

Autonomous mode

This pipeline runs without asking for input. For the full decision-rules table covering simple fixes, ambiguous cases, test failures, coverage misses, and scope leaks from auto-formatters, see @pipeline.references/phase-details.md (Autonomous mode rules section).

NEVER ask for input. Only stop if tests fail after 2 retry attempts or if validation fails.

Phase 1: Triage

Fetch all PR comments and verify each in parallel using the comment-verifier agent. Collect VALID BUG / FALSE POSITIVE verdicts with ref_id preserved.

For the exact script invocation and verifier-prompt format, see @pipeline.references/phase-details.md (Phase 1 detail).

Phase 2: Dismiss false positives

For each FALSE POSITIVE, run pr-resolve-comment.sh ... dismiss "REASON". For canonical reason phrases, see @pipeline.references/phase-details.md (Phase 2 detail).

Phase 3: Plan fixes

For each VALID BUG:

  1. Read affected code
  2. Determine the minimal fix
  3. Note which files are affected

Group fixes by file. Fixes touching different files can run in parallel; fixes touching the same file run sequentially.

Phase 4: Implement fixes

  • Parallel (different files) — spawn fix-implementer agents in parallel.
  • Sequential (same file) — run fix-implementer one at a time to avoid conflicts.
  • After all fixes — read each modified file to verify no syntax errors.
  • Scope check — discard auto-formatter-induced changes to files NOT in the fix plan via git checkout -- <file>; log the count.

Read the full file on GitHub · 120 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. 6d ago First seen · 120 lines · 33 tokens per session scan A 893abe9e32c4

Subscribe to this mod's changes

pipeline is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 12d ago), licensed MIT. It adds 33 tokens to every session and 1,154 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.