From 9ddb458cf0635df268f98aac8ecf29ef76fb1a11 Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 12 Aug 2025 19:44:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/.claude/commands/stream-chain/run.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/1755027874.json | 1 + .claude/checkpoints/1755027876.json | 1 + .claude/commands/stream-chain/run.md | 70 ++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 .claude/checkpoints/1755027874.json create mode 100644 .claude/checkpoints/1755027876.json create mode 100644 .claude/commands/stream-chain/run.md diff --git a/.claude/checkpoints/1755027874.json b/.claude/checkpoints/1755027874.json new file mode 100644 index 0000000000..2df1a8e766 --- /dev/null +++ b/.claude/checkpoints/1755027874.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250812-194434", "file": "/workspaces/claude-code-flow/.claude/commands/stream-chain/README.md", "timestamp": "2025-08-12T19:44:34Z", "type": "pre-edit", "original_branch": "alpha-89"} diff --git a/.claude/checkpoints/1755027876.json b/.claude/checkpoints/1755027876.json new file mode 100644 index 0000000000..fafd84e655 --- /dev/null +++ b/.claude/checkpoints/1755027876.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250812-194436", "file": "/workspaces/claude-code-flow/.claude/commands/stream-chain/README.md", "timestamp": "2025-08-12T19:44:36Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 8078 ++++-------------------------- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1755027820.json | 1 + .claude/checkpoints/1755027822.json | 1 + .claude/commands/stream-chain/README.md | 290 ++ claude-flow-wiki | 0 7 files changed, 1137 insertions(+), 7241 deletions(-) "} diff --git a/.claude/commands/stream-chain/run.md b/.claude/commands/stream-chain/run.md new file mode 100644 index 0000000000..9316054112 --- /dev/null +++ b/.claude/commands/stream-chain/run.md @@ -0,0 +1,70 @@ +# stream-chain run + +Execute a custom stream chain with your own prompts. + +## Usage + +```bash +claude-flow stream-chain run [...] [options] +``` + +Minimum 2 prompts required for chaining. + +## Options + +- `--verbose` - Show detailed execution information +- `--timeout ` - 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 +3. **Appropriate Timeouts**: Increase for complex tasks +4. **Verification**: Add verification steps in chain \ No newline at end of file