with one click
debugging-workflows
// Debug workflow execution issues including syntax errors, agent failures, variable problems, and execution errors. Use when workflows fail, produce unexpected results, or user asks for debugging help.
// Debug workflow execution issues including syntax errors, agent failures, variable problems, and execution errors. Use when workflows fail, produce unexpected results, or user asks for debugging help.
| name | debugging-workflows |
| description | Debug workflow execution issues including syntax errors, agent failures, variable problems, and execution errors. Use when workflows fail, produce unexpected results, or user asks for debugging help. |
I help diagnose and fix workflow execution issues using systematic debugging techniques.
I activate when you:
Problem: Workflow won't parse
Symptoms:
Solutions:
->, ||, ~> (not => or &&)[...]"instruction"Problem: Agent reference doesn't resolve
Symptoms:
Solutions:
temp-agents/agent-name.mdagents/registry.jsonProblem: Variables not passing correctly
Symptoms:
{variable} shows as literal textSolutions:
agent:"task":variable_name"Use {variable_name}"Problem: Parallel tasks failing or hanging
Symptoms:
Solutions:
[task1 || task2 || task3]Problem: Checkpoints not triggering
Symptoms:
Solutions:
@checkpoint-nameRun workflow with minimal changes to reproduce issue.
Simplify workflow to find problematic section:
# If this fails:
step1 -> step2 -> step3 -> step4
# Try:
step1 -> step2 # Works?
step3 -> step4 # Works?
Check execution logs for error details.
Apply targeted fix based on findings.
Run full workflow to ensure fix works.
| Error | Meaning | Fix |
|---|---|---|
| "Unexpected token" | Syntax error | Check syntax around error location |
| "Agent not found" | Missing agent | Verify agent exists and spelling |
| "Variable not found" | Variable undefined | Check variable was captured |
| "Condition failed" | Condition not met | Check condition logic |
| "Execution timeout" | Task took too long | Add timeout handling or simplify task |
ā DO:
ā DON'T:
# Check temp agents exist
ls temp-agents/
# Verify agent registry
cat agents/registry.json
# Check workflow syntax file
cat examples/workflow-name.flow
Workflow not working? Show me the error and I'll help debug!
Use when user says "create workflow", "create a workflow", "design workflow", "orchestrate", "automate multiple steps", "coordinate agents", "multi-agent workflow". Creates orchestration workflows from natural language using Socratic questioning to plan multi-agent workflows with visualization.
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.
Manages temporary and defined agents including creation, promotion, cleanup, and namespacing. Use when user creates custom agents, asks about agent lifecycle, temp agents, or agent management.
Use and customize workflow templates for common scenarios. Use when user wants to use a template, asks about available templates, or wants to customize existing workflows.
Design custom syntax elements with reuse-first approach for workflow orchestration. Use when user needs custom operators, checkpoints, or syntax patterns not available in core syntax.
Create and execute temporary scripts (Python, Node.js, shell) during workflow execution for API integrations, data processing, and custom tools. Use when user needs to interact with external APIs, process data with specific libraries, or create temporary executable code.