mbruhler/claude-orchestration/executing-workflows
Claude Code and agent skill by mbruhler/claude-orchestration
- community
Checking that the SKILL.md file is still in the repository.
Use when user provides workflow syntax with arrows (-> || ~>), says "run workflow", "execute workflow", "run this", mentions step1 -> step2 patterns. Executes orchestration workflows with real-time visualization, steering, and error recovery.
Install
npx vskill@latest install mbruhler/claude-orchestration/executing-workflowsSKILL.md
Executing Orchestration Workflows
I execute workflows with real-time visualization, progress tracking, and interactive steering at checkpoints.
When I Activate
I automatically activate when you:
- Provide workflow syntax to execute
- Ask to "run a workflow"
- Mention workflow execution
- Want to execute a template
- Ask "how do I run this workflow?"
Quick Start
Just provide workflow syntax and I'll handle the rest:
I automatically:
- Parse and validate syntax
- Show execution graph visualization
- Execute agents with progress updates
- Handle checkpoints and steering
- Manage errors gracefully
- Clean up temporary files (with user confirmation)
Execution Process
Phase 1: Parse & Validate
I analyze your workflow:
- Validate syntax correctness
- Check agent references
- Verify variable bindings
- Identify checkpoints
- Map execution graph
Phase 2: Visualize
I show you the execution plan using ASCII art:
Phase 3: Execute & Save State (Snapshots)
I run agents sequentially or in parallel. Crucially, I maintain a local execution state file to ensure reliability and enable "Time-Travel" recovery.
- Before starting, I create/update
.orchestration/state.jsonin the current working directory. - After EVERY successful node execution, I update the
state.jsonwith captured variables and the node'scompletedstatus. - If the workflow is interrupted, crashes, or fails, I retain this state file.
Sequential (->):
⏪ Time-Travel Recovery (Resuming)
If you ask me to "resume" a workflow:
- I read
./.orchestration/state.json. - I inject all previously captured variables back into the context.
- I skip all nodes marked as
completedand instantly start executing from the exact node where it left off.
Parallel (||):
Phase 4: Steering
At checkpoints (@review), you control flow:
Phase 5: Error Recovery
If agent fails, I offer options:
Phase 6: Cleanup (CONDITIONAL)
IMPORTANT: After workflow execution, check for temporary files and ask user before deleting.
Step 1: Detect Temporary Files
Check for existence of temporary files in the current working directory:
Step 2: If Files Exist, Ask User
Only if `TOTAL > 0`, use AskUserQuestion:
Step 3: Execute Cleanup if Confirmed
If user chose "Yes, delete all":
Report what was deleted:
If user chose "Show me first":
- List all files with paths
- Ask again: "Delete these files?" with Yes/No options
Step 4: Skip if No Files
If TOTAL == 0, skip cleanup silently (don't bother user).
Note for Scheduled/Headless runs: If the workflow is running automatically via @schedule, the interactive cleanup prompt is suppressed. Temporary files will be left intact so they can be reused on the next run, saving computation time.
Syntax Reference
See syntax-reference.md for complete syntax documentation.
Quick reference:
| Syntax | Meaning | Example | |||||
|---|---|---|---|---|---|---|---|
-> | Sequential | a -> b | |||||
| ` | ` | Parallel | `[a \ | \ | b]` | ||
~> | Conditional | (if passed)~> next | |||||
@ | Checkpoint | @review | |||||
:var | Output capture | task:output | |||||
{var} | Variable interpolation | "Use {output}" | |||||
$agent | Temp agent | $scanner:"Scan" |
Agent Types
Built-in Claude Code agents (no prefix):
Explore- Fast codebase exploration and searchPlan- Planning and breaking down tasksgeneral-purpose- Versatile agent for complex multi-step tasks
Plugin agents (orchestration: prefix):
orchestration:workflow-socratic-designer- Workflow creation via Socratic methodorchestration:workflow-syntax-designer- Custom syntax design
External agents (registered via /orchestration:init):
- Agents from
~/.claude/agents/can be registered and used directly - Example:
expert-code-implementer,code-optimizer(if registered)
Temp agents ($name):
- Created during workflow execution in
./temp-agents/ - Automatically cleaned up after workflow (with user confirmation)
- Can be promoted to permanent agents if useful
Variable Passing
See variables.md for advanced variable usage.
Capture output:
Conditional on variables:
Error Handling
Common error patterns:
Retry on failure:
Fallback path:
Stop on critical error:
Checkpoints
See checkpoints.md for checkpoint details.
Basic checkpoint:
Labeled checkpoint:
Conditional checkpoint:
Parallel Execution
See parallel.md for parallel execution patterns.
Basic parallel:
Parallel with individual variables:
Conditional parallel:
Examples
See examples/ for categorized workflow examples:
- sequential.md - Sequential workflows
- parallel.md - Parallel execution
- conditional.md - Conditional logic
- error-handling.md - Error recovery
- checkpoints.md - Manual gates
Execution Modes
Normal mode (default):
- Full execution with all phases
- Interactive checkpoints
- Error recovery prompts
Dry-Run Unit Tests (.flow.test / Mock Mode):
- Parse and validate only.
- If you run a file with
.flow.testextension or explicitly ask for a "dry-run with mocks":
- I will look for a
mocks:section in the YAML frontmatter of the workflow (where you define fake outputs for variables). - I will traverse the execution graph without invoking any actual agents.
- Whenever a variable is needed for a conditional (
~>) or a semantic router (route() =>), I will use your provided mocked data to decide the path. - I will output the exact execution path taken based on the mocks, allowing you to unit-test complex logic before running on production code.
Auto mode / Headless:
- Skip checkpoint prompts
- Automatic error retry (up to 3 times)
- Minimal user interaction
Progress Tracking
During execution, I show:
Workflow Metadata
Track execution metadata:
Tips for Successful Execution
- Start simple - Test with small workflows first
- Use checkpoints - Add review points for critical steps
- Capture outputs - Use variables to pass data between agents
- Handle errors - Add fallback paths for critical operations
- Monitor progress - Watch execution visualization
Common Issues
Agent not found:
- Check agent name spelling
- Verify temp agent exists in
./temp-agents/ - Ensure namespace prefix for plugin agents
Variable not found:
- Verify variable was captured with
:varname - Check variable name spelling in
{varname} - Ensure variable set before use
Checkpoint skipped:
- Checkpoints only work in normal mode
- Check checkpoint syntax:
@checkpoint-name
Parallel execution failed:
- Ensure parallel tasks are independent
- Check bracket syntax:
[a || b] - Verify no shared state between parallel tasks
Related Skills
- creating-workflows: Design and create workflows
- managing-agents: Create and manage custom agents
- debugging-workflows: Debug workflow issues
- using-templates: Execute workflow templates
Commands
/orchestration:run- Execute workflow from file or inline/orchestration:template- Execute saved template/orchestration:explain- Explain workflow execution plan
Ready to execute? Provide your workflow syntax or template name!
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/executing-workflows/SKILL.md
Popularity
- Repository stars
- 216
- Repository forks
- 6
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mbruhler/claude-orchestration/executing-workflows)