run
From ruvnet
Execute a custom stream chain with your own prompts.
Install
/runFacts
- Repository
- ruvnet/ruflo
- Status
- Actively maintained
- Last commit
- Source file
- .claude/commands/stream-chain/run.md
Source preview
The instructions Claude Code reads when this command runs.
# stream-chain run
Execute a custom stream chain with your own prompts.
## Usage
```bash
claude-flow stream-chain run <prompt1> <prompt2> [...] [options]
```
Minimum 2 prompts required for chaining.
## Options
- `--verbose` - Show detailed execution information
- `--timeout <seconds>` - Timeout per step (default: 30)
- `--debug` - Enable debug mode
## How It Works
Each prompt in the chain receives the complete output from the previous step as context, enabling complex multi-step workflows.
## Examples
### Basic Chain
```bash
claude-flow stream-chain run \
"Write a function" \
"Add tests for it"
```
### Complex Workflow
```bash
claude-flow stream-chain run \
"Analyze the authentication system" \
"Identify security vulnerabilities" \
"Propose fixes with priority levels" \
"Implement the critical fixes" \
"Generate tests for the fixes"
```
### With Options
```bash
claude-flow stream-chain run \
"Complex analysis task" \
"Detailed implementation" \
--timeout 60 \
--verbose
```
## Context Preservation
The output from each step is injected into the next prompt:
```
Step 1: "Write a sorting function"
Output: [function code]
Step 2 receives: "Previous step output:
[function code]
Next step: Optimize for performance"
```
## Best Practices
1. **Clear Instructions**: Make each prompt specific
2. **Logical Flow**: Order prompts in logical sequence
3View full source on GitHub →Other slash commands
feature-development
★ 229,918Workflow command scaffold for feature-development in everything-claude-code.
affaan-mupdated 15d agoMITdatabase-migration
★ 229,918Workflow command scaffold for database-migration in everything-claude-code.
affaan-mupdated 15d agoMITadd-language-rules
★ 229,918Workflow command scaffold for add-language-rules in everything-claude-code.
affaan-mupdated 15d agoMITcommit-push-pr
★ 137,934Commit, push, and open a PR
anthropicsupdated 14d agodedupe
★ 137,934Find duplicate GitHub issues
anthropicsupdated 14d agotriage-issue
★ 137,934Triage GitHub issues by analyzing and applying labels
anthropicsupdated 14d ago