stream-chain

Coordinate streaming multi-step workflows with sequential context propagation.

67.5k|8.1k|Updated Jun 2, 2025
One-click install
npx skills add https://github.com/ruvnet/claude-flow --skill stream-chain-ruvnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stream-chain
Source: https://github.com/ruvnet/claude-flow/tree/main/.claude/skills/stream-chain
Command: npx skills add https://github.com/ruvnet/claude-flow --skill stream-chain-ruvnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires claude-flow.

What problem does it solve?

This Skill streamlines the orchestration of complex, multi-step AI agent workflows where the output of one agent seamlessly feeds into the next. It eliminates manual hand-offs and ensures a smooth, automated data flow for sophisticated tasks, saving significant time and reducing errors.

Core Features & Use Cases

  • Custom Chains: Define and execute custom sequences of prompts for maximum flexibility in unique workflows.
  • Predefined Pipelines: Utilize battle-tested workflows optimized for common development tasks (e.g., analysis, refactor, test, optimize).
  • Context Preservation: Ensures the complete output from previous steps flows as rich context to the next, maintaining continuity.
  • Use Case: You need to refactor a legacy codebase. Use the refactor pipeline to automatically identify code smells, create a refactoring plan, apply changes to high-priority items, and verify behavior, all in a single, automated sequence.

Quick Start

Run a Custom Chain

claude-flow stream-chain run
"Analyze codebase structure"
"Identify improvement areas"
"Generate action plan"

Execute a Predefined Pipeline

claude-flow stream-chain pipeline analysis

Frequently Asked Questions about stream-chain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate multi-step workflows where each step feeds into the next?

Multi-step workflow automation links sequential agent outputs as inputs to downstream steps. stream-chain coordinates this through two modes: custom chains (define your own prompt sequence) and predefined pipelines (use optimized workflows for analysis, refactoring, testing). Context from each step flows automatically to the next, eliminating manual hand-offs.

Can I use stream-chain for data transformation and code analysis tasks?

Yes. stream-chain orchestrates multi-agent workflows for data transformation, code analysis, security auditing, and other sequential processing tasks. It enforces streaming data flow with context propagation across steps, making it suitable for complex analysis pipelines where intermediate results guide downstream decisions.

What's the best way to refactor legacy code automatically?

Use stream-chain's predefined `refactor` pipeline to chain multiple analysis and transformation steps: identify code smells, generate a refactoring plan, apply changes to high-priority items, and verify behavior—all in one automated sequence without manual intervention between steps.

How does stream-chain handle context between sequential steps?

Context preservation ensures complete output from each step flows as rich context to the next step, maintaining continuity across the workflow. This eliminates information loss and lets downstream steps leverage full prior results for better decision-making.

Does stream-chain support custom chains and predefined workflows?

Yes. Custom chains let you define unique prompt sequences for flexible workflows; predefined pipelines provide battle-tested sequences optimized for common development tasks like analysis and refactoring, reducing setup time.

What monitoring and debugging options are available during workflow execution?

stream-chain provides configurable CLI options including --verbose for detailed output, --timeout for execution limits, and --debug for troubleshooting, plus per-step progress tracking, timing metrics, and summaries to monitor workflow health.