[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CKA2VFS2GETCK9QF4QV42X":3,"skill-same:01M6CKA2VFS2GETCK9QF4QV42X":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M6CKA2VFS2GETCK9QF4QV42X","stream-chain",null,"Stream-JSON chaining for multi-agent pipelines, data transformation, and sequential workflows","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fadolago\u002Fstream-chain\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32],"stream chain","workflow","workflows","streaming","data","pipeline","json","multi-agent","chaining","pipelines","2026-11-10 10:12:30",false,"---\nname: stream-chain\ndescription: Stream-JSON chaining for multi-agent pipelines, data transformation, and sequential workflows\nversion: 1.0.0\ncategory: workflow\ntags: [streaming, pipeline, chaining, multi-agent, workflow]\n---\n\n# Stream-Chain Skill\n\nExecute sophisticated multi-step workflows where each agent's output flows into the next, enabling complex data transformations and sequential processing pipelines.\n\n## Overview\n\nStream-Chain provides two powerful modes for orchestrating multi-agent workflows:\n\n1. **Custom Chains** (`run`): Execute custom prompt sequences with full control\n2. **Predefined Pipelines** (`pipeline`): Use battle-tested workflows for common tasks\n\nEach step in a chain receives the complete output from the previous step, enabling sophisticated multi-agent coordination through streaming data flow.\n\n---\n\n## Quick Start\n\n### Run a Custom Chain\n\n```bash\nclaude-flow stream-chain run \\\n  \"Analyze codebase structure\" \\\n  \"Identify improvement areas\" \\\n  \"Generate action plan\"\n```\n\n### Execute a Pipeline\n\n```bash\nclaude-flow stream-chain pipeline analysis\n```\n\n---\n\n## Custom Chains (`run`)\n\nExecute custom stream chains with your own prompts for maximum flexibility.\n\n### Syntax\n\n```bash\nclaude-flow stream-chain run \u003Cprompt1> \u003Cprompt2> [...] [options]\n```\n\n**Requirements:**\n- Minimum 2 prompts required\n- Each prompt becomes a step in the chain\n- Output flows sequentially through all steps\n\n### Options\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `--verbose` | Show detailed execution information | `false` |\n| `--timeout \u003Cseconds>` | Timeout per step | `30` |\n| `--debug` | Enable debug mode with full logging | `false` |\n\n### How Context Flows\n\nEach step receives the previous output as context:\n\n```\nStep 1: \"Write a sorting function\"\nOutput: [function implementation]\n\nStep 2 receives:\n  \"Previous step output:\n  [function implementation]\n\n  Next task: Add comprehensive tests\"\n\nStep 3 receives:\n  \"Previous steps output:\n  [function + tests]\n\n  Next task: Optimize performance\"\n```\n\n### Examples\n\n#### Basic Development Chain\n\n```bash\nclaude-flow stream-chain run \\\n  \"Write a user authentication function\" \\\n  \"Add input validation and error handling\" \\\n  \"Create unit tests with edge cases\"\n```\n\n#### Security Audit Workflow\n\n```bash\nclaude-flow stream-chain run \\\n  \"Analyze authentication system for vulnerabilities\" \\\n  \"Identify and categorize security issues by severity\" \\\n  \"Propose fixes with implementation priority\" \\\n  \"Generate security test cases\" \\\n  --timeout 45 \\\n  --verbose\n```\n\n#### Code Refactoring Chain\n\n```bash\nclaude-flow stream-chain run \\\n  \"Identify code smells in src\u002F directory\" \\\n  \"Create refactoring plan with specific changes\" \\\n  \"Apply refactoring to top 3 priority items\" \\\n  \"Verify refactored code maintains behavior\" \\\n  --debug\n```\n\n#### Data Processing Pipeline\n\n```bash\nclaude-flow stream-chain run \\\n  \"Extract data from API responses\" \\\n  \"Transform data into normalized format\" \\\n  \"Validate data against schema\" \\\n  \"Generate data quality report\"\n```\n\n---\n\n## Predefined Pipelines (`pipeline`)\n\nExecute battle-tested workflows optimized for common development tasks.\n\n### Syntax\n\n```bash\nclaude-flow stream-chain pipeline \u003Ctype> [options]\n```\n\n### Available Pipelines\n\n#### 1. Analysis Pipeline\n\nComprehensive codebase analysis and improvement identification.\n\n```bash\nclaude-flow stream-chain pipeline analysis\n```\n\n**Workflow Steps:**\n1. **Structure Analysis**: Map directory structure and identify components\n2. **Issue Detection**: Find potential improvements and problems\n3. **Recommendations**: Generate actionable improvement report\n\n**Use Cases:**\n- New codebase onboarding\n- Technical debt assessment\n- Architecture review\n- Code quality audits\n\n#### 2. Refactor Pipeline\n\nSystematic code refactoring with prioritization.\n\n```bash\nclaude-flow stream-chain pipeline refactor\n```\n\n**Workflow Steps:**\n1. **Candidate Identification**: Find code needing refactoring\n2. **Prioritization**: Create ranked refactoring plan\n3. **Implementation**: Provide refactored code for top priorities\n\n**Use Cases:**\n- Technical debt reduction\n- Code quality improvement\n- Legacy code modernization\n- Design pattern implementation\n\n#### 3. Test Pipeline\n\nComprehensive test generation with coverage analysis.\n\n```bash\nclaude-flow stream-chain pipeline test\n```\n\n**Workflow Steps:**\n1. **Coverage Analysis**: Identify areas lacking tests\n2. **Test Design**: Create test cases for critical functions\n3. **Implementation**: Generate unit tests with assertions\n\n**Use Cases:**\n- Increasing test coverage\n- TDD workflow support\n- Regression test creation\n- Quality assurance\n\n#### 4. Optimize Pipeline\n\nPerformance optimization with profiling and implementation.\n\n```bash\nclaude-flow stream-chain pipeline optimize\n```\n\n**Workflow Steps:**\n1. **Profiling**: Identify performance bottlenecks\n2. **Strategy**: Analyze and suggest optimization approaches\n3. **Implementation**: Provide optimized code\n\n**Use Cases:**\n- Performance improvement\n- Resource optimization\n- Scalability enhancement\n- Latency reduction\n\n### Pipeline Options\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `--verbose` | Show detailed execution | `false` |\n| `--timeout \u003Cseconds>` | Timeout per step | `30` |\n| `--debug` | Enable debug mode | `false` |\n\n### Pipeline Examples\n\n#### Quick Analysis\n\n```bash\nclaude-flow stream-chain pipeline analysis\n```\n\n#### Extended Refactoring\n\n```bash\nclaude-flow stream-chain pipeline refactor --timeout 60 --verbose\n```\n\n#### Debug Test Generation\n\n```bash\nclaude-flow stream-chain pipeline test --debug\n```\n\n#### Comprehensive Optimization\n\n```bash\nclaude-flow stream-chain pipeline optimize --timeout 90 --verbose\n```\n\n### Pipeline Output\n\nEach pipeline execution provides:\n\n- **Progress**: Step-by-step execution status\n- **Results**: Success\u002Ffailure per step\n- **Timing**: Total and per-step execution time\n- **Summary**: Consolidated results and recommendations\n\n---\n\n## Custom Pipeline Definitions\n\nDefine reusable pipelines in `.claude-flow\u002Fconfig.json`:\n\n### Configuration Format\n\n```json\n{\n  \"streamChain\": {\n    \"pipelines\": {\n      \"security\": {\n        \"name\": \"Security Audit Pipeline\",\n        \"description\": \"Comprehensive security analysis\",\n        \"prompts\": [\n          \"Scan codebase for security vulnerabilities\",\n          \"Categorize issues by severity (critical\u002Fhigh\u002Fmedium\u002Flow)\",\n          \"Generate fixes with priority and implementation steps\",\n          \"Create security test suite\"\n        ],\n        \"timeout\": 45\n      },\n      \"documentation\": {\n        \"name\": \"Documentation Generation Pipeline\",\n        \"prompts\": [\n          \"Analyze code structure and identify undocumented areas\",\n          \"Generate API documentation with examples\",\n          \"Create usage guides and tutorials\",\n          \"Build architecture diagrams and flow charts\"\n        ]\n      }\n    }\n  }\n}\n```\n\n### Execute Custom Pipeline\n\n```bash\nclaude-flow stream-chain pipeline security\nclaude-flow stream-chain pipeline documentation\n```\n\n---\n\n## Advanced Use Cases\n\n### Multi-Agent Coordination\n\nChain different agent types for complex workflows:\n\n```bash\nclaude-flow stream-chain run \\\n  \"Research best practices for API design\" \\\n  \"Design REST API with discovered patterns\" \\\n  \"Implement API endpoints with validation\" \\\n  \"Generate OpenAPI specification\" \\\n  \"Create integration tests\" \\\n  \"Write deployment documentation\"\n```\n\n### Data Transformation Pipeline\n\nProcess and transform data through multiple stages:\n\n```bash\nclaude-flow stream-chain run \\\n  \"Extract user data from CSV files\" \\\n  \"Normalize and validate data format\" \\\n  \"Enrich data with external API calls\" \\\n  \"Generate analytics report\" \\\n  \"Create visualization code\"\n```\n\n### Code Migration Workflow\n\nSystematic code migration with validation:\n\n```bash\nclaude-flow stream-chain run \\\n  \"Analyze legacy codebase dependencies\" \\\n  \"Create migration plan with risk assessment\" \\\n  \"Generate modernized code for high-priority modules\" \\\n  \"Create migration tests\" \\\n  \"Document migration steps and rollback procedures\"\n```\n\n### Quality Assurance Chain\n\nComprehensive code quality workflow:\n\n```bash\nclaude-flow stream-chain pipeline analysis\nclaude-flow stream-chain pipeline refactor\nclaude-flow stream-chain pipeline test\nclaude-flow stream-chain pipeline optimize\n```\n\n---\n\n## Best Practices\n\n### 1. Clear and Specific Prompts\n\n**Good:**\n```bash\n\"Analyze authentication.js for SQL injection vulnerabilities\"\n```\n\n**Avoid:**\n```bash\n\"Check security\"\n```\n\n### 2. Logical Progression\n\nOrder prompts to build on previous outputs:\n```bash\n1. \"Identify the problem\"\n2. \"Analyze root causes\"\n3. \"Design solution\"\n4. \"Implement solution\"\n5. \"Verify implementation\"\n```\n\n### 3. Appropriate Timeouts\n\n- Simple tasks: 30 seconds (default)\n- Analysis tasks: 45-60 seconds\n- Implementation tasks: 60-90 seconds\n- Complex workflows: 90-120 seconds\n\n### 4. Verification Steps\n\nInclude validation in your chains:\n```bash\nclaude-flow stream-chain run \\\n  \"Implement feature X\" \\\n  \"Write tests for feature X\" \\\n  \"Verify tests pass and cover edge cases\"\n```\n\n### 5. Iterative Refinement\n\nUse chains for iterative improvement:\n```bash\nclaude-flow stream-chain run \\\n  \"Generate initial implementation\" \\\n  \"Review and identify issues\" \\\n  \"Refine based on issues found\" \\\n  \"Final quality check\"\n```\n\n---\n\n## Integration with Claude Flow\n\n### Combine with Swarm Coordination\n\n```bash\n# Initialize swarm for coordination\nclaude-flow swarm init --topology mesh\n\n# Execute stream chain with swarm agents\nclaude-flow stream-chain run \\\n  \"Agent 1: Research task\" \\\n  \"Agent 2: Implement solution\" \\\n  \"Agent 3: Test implementation\" \\\n  \"Agent 4: Review and refine\"\n```\n\n### Memory Integration\n\nStream chains automatically store context in memory for cross-session persistence:\n\n```bash\n# Execute chain with memory\nclaude-flow stream-chain run \\\n  \"Analyze requirements\" \\\n  \"Design architecture\" \\\n  --verbose\n\n# Results stored in .claude-flow\u002Fmemory\u002Fstream-chain\u002F\n```\n\n### Neural Pattern Training\n\nSuccessful chains train neural patterns for improved performance:\n\n```bash\n# Enable neural training\nclaude-flow stream-chain pipeline optimize --debug\n\n# Patterns learned and stored for future optimizations\n```\n\n---\n\n## Troubleshooting\n\n### Chain Timeout\n\nIf steps timeout, increase timeout value:\n\n```bash\nclaude-flow stream-chain run \"complex task\" --timeout 120\n```\n\n### Context Loss\n\nIf context not flowing properly, use `--debug`:\n\n```bash\nclaude-flow stream-chain run \"step 1\" \"step 2\" --debug\n```\n\n### Pipeline Not Found\n\nVerify pipeline name and custom definitions:\n\n```bash\n# Check available pipelines\ncat .claude-flow\u002Fconfig.json | grep -A 10 \"streamChain\"\n```\n\n---\n\n## Performance Characteristics\n\n- **Throughput**: 2-5 steps per minute (varies by complexity)\n- **Context Size**: Up to 100K tokens per step\n- **Memory Usage**: ~50MB per active chain\n- **Concurrency**: Supports parallel chain execution\n\n---\n\n## Related Skills\n\n- **SPARC Methodology**: Systematic development workflow\n- **Swarm Coordination**: Multi-agent orchestration\n- **Memory Management**: Persistent context storage\n- **Neural Patterns**: Adaptive learning\n\n---\n\n## Examples Repository\n\n### Complete Development Workflow\n\n```bash\n# Full feature development chain\nclaude-flow stream-chain run \\\n  \"Analyze requirements for user profile feature\" \\\n  \"Design database schema and API endpoints\" \\\n  \"Implement backend with validation\" \\\n  \"Create frontend components\" \\\n  \"Write comprehensive tests\" \\\n  \"Generate API documentation\" \\\n  --timeout 60 \\\n  --verbose\n```\n\n### Code Review Pipeline\n\n```bash\n# Automated code review workflow\nclaude-flow stream-chain run \\\n  \"Analyze recent git changes\" \\\n  \"Identify code quality issues\" \\\n  \"Check for security vulnerabilities\" \\\n  \"Verify test coverage\" \\\n  \"Generate code review report with recommendations\"\n```\n\n### Migration Assistant\n\n```bash\n# Framework migration helper\nclaude-flow stream-chain run \\\n  \"Analyze current Vue 2 codebase\" \\\n  \"Identify Vue 3 breaking changes\" \\\n  \"Create migration checklist\" \\\n  \"Generate migration scripts\" \\\n  \"Provide updated code examples\"\n```\n\n---\n\n## Conclusion\n\nStream-Chain enables sophisticated multi-step workflows by:\n\n- **Sequential Processing**: Each step builds on previous results\n- **Context Preservation**: Full output history flows through chain\n- **Flexible Orchestration**: Custom chains or predefined pipelines\n- **Agent Coordination**: Natural multi-agent collaboration pattern\n- **Data Transformation**: Complex processing through simple steps\n\nUse `run` for custom workflows and `pipeline` for battle-tested solutions.\n","# Stream-Chain Skill\n\nExecute sophisticated multi-step workflows where each agent's output flows into the next, enabling complex data transformations and sequential processing pipelines.\n\n## Overview\n\nStream-Chain provides two powerful modes for orchestrating multi-agent workflows:\n\n1. **Custom Chains** (`run`): Execute custom prompt sequences with full control\n2. **Predefined Pipelines** (`pipeline`): Use battle-tested workflows for common tasks\n\nEach step in a chain receives the complete output from the previous step, enabling sophisticated multi-agent coordination through streaming data flow.\n\n---\n\n## Quick Start\n\n### Run a Custom Chain\n\n```bash\nclaude-flow stream-chain run \\\n  \"Analyze codebase structure\" \\\n  \"Identify improvement areas\" \\\n  \"Generate action plan\"\n```\n\n### Execute a Pipeline\n\n```bash\nclaude-flow stream-chain pipeline analysis\n```\n\n---\n\n## Custom Chains (`run`)\n\nExecute custom stream chains with your own prompts for maximum flexibility.\n\n### Syntax\n\n```bash\nclaude-flow stream-chain run \u003Cprompt1> \u003Cprompt2> [...] [options]\n```\n\n**Requirements:**\n- Minimum 2 prompts required\n- Each prompt becomes a step in the chain\n- Output flows sequentially through all steps\n\n### Options\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `--verbose` | Show detailed execution information | `false` |\n| `--timeout \u003Cseconds>` | Timeout per step | `30` |\n| `--debug` | Enable debug mode with full logging | `false` |\n\n### How Context Flows\n\nEach step receives the previous output as context:\n\n```\nStep 1: \"Write a sorting function\"\nOutput: [function implementation]\n\nStep 2 receives:\n  \"Previous step output:\n  [function implementation]\n\n  Next task: Add comprehensive tests\"\n\nStep 3 receives:\n  \"Previous steps output:\n  [function + tests]\n\n  Next task: Optimize performance\"\n```\n\n### Examples\n\n#### Basic Development Chain\n\n```bash\nclaude-flow stream-chain run \\\n  \"Write a user authentication function\" \\\n  \"Add input validation and error handling\" \\\n  \"Create unit tests with edge cases\"\n```\n\n#### Security Audit Workflow\n\n```bash\nclaude-flow stream-chain run \\\n  \"Analyze authentication system for vulnerabilities\" \\\n  \"Identify and categorize security issues by severity\" \\\n  \"Propose fixes with implementation priority\" \\\n  \"Generate security test cases\" \\\n  --timeout 45 \\\n  --verbose\n```\n\n#### Code Refactoring Chain\n\n```bash\nclaude-flow stream-chain run \\\n  \"Identify code smells in src\u002F directory\" \\\n  \"Create refactoring plan with specific changes\" \\\n  \"Apply refactoring to top 3 priority items\" \\\n  \"Verify refactored code maintains behavior\" \\\n  --debug\n```\n\n#### Data Processing Pipeline\n\n```bash\nclaude-flow stream-chain run \\\n  \"Extract data from API responses\" \\\n  \"Transform data into normalized format\" \\\n  \"Validate data against schema\" \\\n  \"Generate data quality report\"\n```\n\n---\n\n## Predefined Pipelines (`pipeline`)\n\nExecute battle-tested workflows optimized for common development tasks.\n\n### Syntax\n\n```bash\nclaude-flow stream-chain pipeline \u003Ctype> [options]\n```\n\n### Available Pipelines\n\n#### 1. Analysis Pipeline\n\nComprehensive codebase analysis and improvement identification.\n\n```bash\nclaude-flow stream-chain pipeline analysis\n```\n\n**Workflow Steps:**\n1. **Structure Analysis**: Map directory structure and identify components\n2. **Issue Detection**: Find potential improvements and problems\n3. **Recommendations**: Generate actionable improvement report\n\n**Use Cases:**\n- New codebase onboarding\n- Technical debt assessment\n- Architecture review\n- Code quality audits\n\n#### 2. Refactor Pipeline\n\nSystematic code refactoring with prioritization.\n\n```bash\nclaude-flow stream-chain pipeline refactor\n```\n\n**Workflow Steps:**\n1. **Candidate Identification**: Find code needing refactoring\n2. **Prioritization**: Create ranked refactoring plan\n3. **Implementation**: Provide refactored code for top priorities\n\n**Use Cases:**\n- Technical debt reduction\n- Code quality improvement\n- Legacy code modernization\n- Design pattern implementation\n\n#### 3. Test Pipeline\n\nComprehensive test generation with coverage analysis.\n\n```bash\nclaude-flow stream-chain pipeline test\n```\n\n**Workflow Steps:**\n1. **Coverage Analysis**: Identify areas lacking tests\n2. **Test Design**: Create test cases for critical functions\n3. **Implementation**: Generate unit tests with assertions\n\n**Use Cases:**\n- Increasing test coverage\n- TDD workflow support\n- Regression test creation\n- Quality assurance\n\n#### 4. Optimize Pipeline\n\nPerformance optimization with profiling and implementation.\n\n```bash\nclaude-flow stream-chain pipeline optimize\n```\n\n**Workflow Steps:**\n1. **Profiling**: Identify performance bottlenecks\n2. **Strategy**: Analyze and suggest optimization approaches\n3. **Implementation**: Provide optimized code\n\n**Use Cases:**\n- Performance improvement\n- Resource optimization\n- Scalability enhancement\n- Latency reduction\n\n### Pipeline Options\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `--verbose` | Show detailed execution | `false` |\n| `--timeout \u003Cseconds>` | Timeout per step | `30` |\n| `--debug` | Enable debug mode | `false` |\n\n### Pipeline Examples\n\n#### Quick Analysis\n\n```bash\nclaude-flow stream-chain pipeline analysis\n```\n\n#### Extended Refactoring\n\n```bash\nclaude-flow stream-chain pipeline refactor --timeout 60 --verbose\n```\n\n#### Debug Test Generation\n\n```bash\nclaude-flow stream-chain pipeline test --debug\n```\n\n#### Comprehensive Optimization\n\n```bash\nclaude-flow stream-chain pipeline optimize --timeout 90 --verbose\n```\n\n### Pipeline Output\n\nEach pipeline execution provides:\n\n- **Progress**: Step-by-step execution status\n- **Results**: Success\u002Ffailure per step\n- **Timing**: Total and per-step execution time\n- **Summary**: Consolidated results and recommendations\n\n---\n\n## Custom Pipeline Definitions\n\nDefine reusable pipelines in `.claude-flow\u002Fconfig.json`:\n\n### Configuration Format\n\n```json\n{\n  \"streamChain\": {\n    \"pipelines\": {\n      \"security\": {\n        \"name\": \"Security Audit Pipeline\",\n        \"description\": \"Comprehensive security analysis\",\n        \"prompts\": [\n          \"Scan codebase for security vulnerabilities\",\n          \"Categorize issues by severity (critical\u002Fhigh\u002Fmedium\u002Flow)\",\n          \"Generate fixes with priority and implementation steps\",\n          \"Create security test suite\"\n        ],\n        \"timeout\": 45\n      },\n      \"documentation\": {\n        \"name\": \"Documentation Generation Pipeline\",\n        \"prompts\": [\n          \"Analyze code structure and identify undocumented areas\",\n          \"Generate API documentation with examples\",\n          \"Create usage guides and tutorials\",\n          \"Build architecture diagrams and flow charts\"\n        ]\n      }\n    }\n  }\n}\n```\n\n### Execute Custom Pipeline\n\n```bash\nclaude-flow stream-chain pipeline security\nclaude-flow stream-chain pipeline documentation\n```\n\n---\n\n## Advanced Use Cases\n\n### Multi-Agent Coordination\n\nChain different agent types for complex workflows:\n\n```bash\nclaude-flow stream-chain run \\\n  \"Research best practices for API design\" \\\n  \"Design REST API with discovered patterns\" \\\n  \"Implement API endpoints with validation\" \\\n  \"Generate OpenAPI specification\" \\\n  \"Create integration tests\" \\\n  \"Write deployment documentation\"\n```\n\n### Data Transformation Pipeline\n\nProcess and transform data through multiple stages:\n\n```bash\nclaude-flow stream-chain run \\\n  \"Extract user data from CSV files\" \\\n  \"Normalize and validate data format\" \\\n  \"Enrich data with external API calls\" \\\n  \"Generate analytics report\" \\\n  \"Create visualization code\"\n```\n\n### Code Migration Workflow\n\nSystematic code migration with validation:\n\n```bash\nclaude-flow stream-chain run \\\n  \"Analyze legacy codebase dependencies\" \\\n  \"Create migration plan with risk assessment\" \\\n  \"Generate modernized code for high-priority modules\" \\\n  \"Create migration tests\" \\\n  \"Document migration steps and rollback procedures\"\n```\n\n### Quality Assurance Chain\n\nComprehensive code quality workflow:\n\n```bash\nclaude-flow stream-chain pipeline analysis\nclaude-flow stream-chain pipeline refactor\nclaude-flow stream-chain pipeline test\nclaude-flow stream-chain pipeline optimize\n```\n\n---\n\n## Best Practices\n\n### 1. Clear and Specific Prompts\n\n**Good:**\n```bash\n\"Analyze authentication.js for SQL injection vulnerabilities\"\n```\n\n**Avoid:**\n```bash\n\"Check security\"\n```\n\n### 2. Logical Progression\n\nOrder prompts to build on previous outputs:\n```bash\n1. \"Identify the problem\"\n2. \"Analyze root causes\"\n3. \"Design solution\"\n4. \"Implement solution\"\n5. \"Verify implementation\"\n```\n\n### 3. Appropriate Timeouts\n\n- Simple tasks: 30 seconds (default)\n- Analysis tasks: 45-60 seconds\n- Implementation tasks: 60-90 seconds\n- Complex workflows: 90-120 seconds\n\n### 4. Verification Steps\n\nInclude validation in your chains:\n```bash\nclaude-flow stream-chain run \\\n  \"Implement feature X\" \\\n  \"Write tests for feature X\" \\\n  \"Verify tests pass and cover edge cases\"\n```\n\n### 5. Iterative Refinement\n\nUse chains for iterative improvement:\n```bash\nclaude-flow stream-chain run \\\n  \"Generate initial implementation\" \\\n  \"Review and identify issues\" \\\n  \"Refine based on issues found\" \\\n  \"Final quality check\"\n```\n\n---\n\n## Integration with Claude Flow\n\n### Combine with Swarm Coordination\n\n```bash\n# Initialize swarm for coordination\nclaude-flow swarm init --topology mesh\n\n# Execute stream chain with swarm agents\nclaude-flow stream-chain run \\\n  \"Agent 1: Research task\" \\\n  \"Agent 2: Implement solution\" \\\n  \"Agent 3: Test implementation\" \\\n  \"Agent 4: Review and refine\"\n```\n\n### Memory Integration\n\nStream chains automatically store context in memory for cross-session persistence:\n\n```bash\n# Execute chain with memory\nclaude-flow stream-chain run \\\n  \"Analyze requirements\" \\\n  \"Design architecture\" \\\n  --verbose\n\n# Results stored in .claude-flow\u002Fmemory\u002Fstream-chain\u002F\n```\n\n### Neural Pattern Training\n\nSuccessful chains train neural patterns for improved performance:\n\n```bash\n# Enable neural training\nclaude-flow stream-chain pipeline optimize --debug\n\n# Patterns learned and stored for future optimizations\n```\n\n---\n\n## Troubleshooting\n\n### Chain Timeout\n\nIf steps timeout, increase timeout value:\n\n```bash\nclaude-flow stream-chain run \"complex task\" --timeout 120\n```\n\n### Context Loss\n\nIf context not flowing properly, use `--debug`:\n\n```bash\nclaude-flow stream-chain run \"step 1\" \"step 2\" --debug\n```\n\n### Pipeline Not Found\n\nVerify pipeline name and custom definitions:\n\n```bash\n# Check available pipelines\ncat .claude-flow\u002Fconfig.json | grep -A 10 \"streamChain\"\n```\n\n---\n\n## Performance Characteristics\n\n- **Throughput**: 2-5 steps per minute (varies by complexity)\n- **Context Size**: Up to 100K tokens per step\n- **Memory Usage**: ~50MB per active chain\n- **Concurrency**: Supports parallel chain execution\n\n---\n\n## Related Skills\n\n- **SPARC Methodology**: Systematic development workflow\n- **Swarm Coordination**: Multi-agent orchestration\n- **Memory Management**: Persistent context storage\n- **Neural Patterns**: Adaptive learning\n\n---\n\n## Examples Repository\n\n### Complete Development Workflow\n\n```bash\n# Full feature development chain\nclaude-flow stream-chain run \\\n  \"Analyze requirements for user profile feature\" \\\n  \"Design database schema and API endpoints\" \\\n  \"Implement backend with validation\" \\\n  \"Create frontend components\" \\\n  \"Write comprehensive tests\" \\\n  \"Generate API documentation\" \\\n  --timeout 60 \\\n  --verbose\n```\n\n### Code Review Pipeline\n\n```bash\n# Automated code review workflow\nclaude-flow stream-chain run \\\n  \"Analyze recent git changes\" \\\n  \"Identify code quality issues\" \\\n  \"Check for security vulnerabilities\" \\\n  \"Verify test coverage\" \\\n  \"Generate code review report with recommendations\"\n```\n\n### Migration Assistant\n\n```bash\n# Framework migration helper\nclaude-flow stream-chain run \\\n  \"Analyze current Vue 2 codebase\" \\\n  \"Identify Vue 3 breaking changes\" \\\n  \"Create migration checklist\" \\\n  \"Generate migration scripts\" \\\n  \"Provide updated code examples\"\n```\n\n---\n\n## Conclusion\n\nStream-Chain enables sophisticated multi-step workflows by:\n\n- **Sequential Processing**: Each step builds on previous results\n- **Context Preservation**: Full output history flows through chain\n- **Flexible Orchestration**: Custom chains or predefined pipelines\n- **Agent Coordination**: Natural multi-agent collaboration pattern\n- **Data Transformation**: Complex processing through simple steps\n\nUse `run` for custom workflows and `pipeline` for battle-tested solutions.\n",{"name":5,"tags":38,"version":39,"category":24,"description":7},[26,28,31,30,24],"1.0.0","main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fadolago\u002Fstream-chain",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add kbarbel640-del\u002Fskills --skill stream-chain",{"tool":53,"command":54},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill stream-chain",{"tool":56,"command":57},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill stream-chain","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fadolago\u002Fstream-chain\u002FSKILL.md",true,[61],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"_meta.json","REFERENCE","参考文档",277,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fadolago\u002Fstream-chain\u002F_meta.json",[68,99,124,145,151,171],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":79,"publishedAt":33},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[74],{"categoryNo":75,"categoryName":76,"taxonomyType":77,"taxonomyTypeDesc":78},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":106,"publishedAt":33},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[105],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},[107,82,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,87,123],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":133,"publishedAt":33},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[130],{"categoryNo":131,"categoryName":132,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000021","资料检索与研究",[134,135,136,137,138,139,140,83,141,121,123,142,82,143,144],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":146,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":150,"publishedAt":33},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[149],{"categoryNo":131,"categoryName":132,"taxonomyType":20,"taxonomyTypeDesc":21},[137,136,135,134,144,139,140,83,138,121,123,141,142,82,143],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":33},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[158,159,160,161,162,163,164,165,166,167,168,169,170],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":181,"publishedAt":33},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[177,178],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":179,"categoryName":180,"taxonomyType":77,"taxonomyTypeDesc":78},"01JBSEEDCAT000000000000037","律师与法务",[182,183,184,185,83,186,187,40,188,142,189,190,191,192,193,96,194,195,196],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]