stream-chain:pipeline

stream-chain:pipeline is a command for Claude Code from monoes/monomind. It costs 33 tokens per session (652 once invoked), scanned A, original, Apache-2.0.

A command for running predefined multi-step code workflows, where each step passes its full result to the next. Its workflows cover codebase analysis, refactoring, test generation, and optimization.

In plain words
What is it for?
Use it to assess a codebase, find and plan refactoring work, generate tests with coverage analysis, or optimize code.
Why use it?
It avoids repeating a sequence of prompts and keeps earlier findings available to later steps. This helps structure common maintenance tasks.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

Good fit Use it to assess a codebase, find and plan refactoring work, generate tests with coverage analysis, or optimize code.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/monoes/monomind/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/monoes/monomind

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 stream-chain:pipeline

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/monoes/monomind/pipeline"><img src="https://agentmods.dev/badge/commands/monoes/monomind/pipeline.svg" alt="Reviewed on agentmods" width="80" 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 652 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.00652
Opus 5.5 $0.00013 $0.00261
Sonnet 5.5 $0.00007 $0.00130
Haiku 4.5 $0.00003 $0.00065

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

Security

Grade A, and why

stream-chain: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 yesterday.

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/stream-chain/pipeline.md · 117 lines

How it starts

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

Stream-Chain Pipeline Mode

Execute predefined multi-step workflows where each step's output flows into the next as context.

How to Invoke

In Claude Code, activate pipeline mode:

Skill("stream-chain:pipeline")

Then tell Claude which pipeline to run and on what target:

"Run the analysis pipeline on the src/auth/ directory." "Run the refactor pipeline on UserService.ts."


Available Pipelines

analysis

Comprehensive codebase analysis and improvement identification.

Steps:

  1. Map directory structure and identify main components
  2. Identify potential improvements and issues
  3. Generate actionable improvement report with priorities

When to use: New codebase onboarding, technical debt assessment, architecture review, code quality audits.


refactor

Systematic code refactoring with prioritization.

Steps:

  1. Find code that would benefit from refactoring
  2. Create prioritized refactoring plan with specific changes
  3. Provide refactored code for top 3 priorities

When to use: Technical debt reduction, code quality improvement, design pattern implementation.


test

Comprehensive test generation with coverage analysis.

Steps:

  1. Identify areas lacking test coverage
  2. Design test cases for critical functions
  3. Generate unit test implementations with assertions

When to use: Increasing test coverage, TDD workflow support, regression test creation.


optimize

Performance optimization with profiling and implementation.

Steps:

  1. Profile codebase and identify performance bottlenecks
  2. Analyze bottlenecks and suggest optimization strategies
  3. Provide optimized implementations for main issues

When to use: Performance improvement, resource optimization, latency reduction.


Running Pipelines

After invoking the skill, direct Claude conversationally:

"Run the test pipeline on all files in src/services/." "Run the optimization pipeline, focus on database query patterns." "Run the analysis pipeline, then the refactor pipeline on the findings."

Read the full file on GitHub · 117 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 First seen · 117 lines · 33 tokens per session scan A f1116881ed19

Subscribe to this mod's changes

stream-chain:pipeline is a command published in the GitHub repository monoes/monomind (23 stars, last pushed yesterday), licensed Apache-2.0. It adds 33 tokens to every session and 652 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-10-26.