Execute predefined agent workflows from .claude/pipeline.yaml. Use when: the developer says /workflow <name>, "run workflow", "execute pipeline", or when starting a feature, hotfix, or refactor that has a defined pipeline. DO NOT USE when: the developer wants to run a single agent directly.
Execute multi-agent workflows defined in .claude/pipeline.yaml.
Triggered by:
/workflow <name> (e.g., /workflow feature, /workflow hotfix)/workflow (lists available workflows)# Read the pipeline file
cat .claude/pipeline.yaml
If .claude/pipeline.yaml doesn't exist, inform the user:
No pipeline.yaml found. Create one with workflow definitions, or use
make init-projectto generate defaults.
Display available workflows with descriptions:
Available workflows:
feature — Full feature implementation with TDD and review
hotfix — Quick fix with minimal review
refactor — Code improvement without behavior changes
For the selected workflow, execute steps in order:
Sequential steps — run one after another, passing context forward.
Parallel steps — use parallel_with to run simultaneously (launch subagents in parallel).
Audit steps — run ops/audit-task.sh for automated checks.
Memory steps — trigger memory consolidation via memory-consolidator agent.
For each step:
"▶ Step N: {agent} — {description}".claude/memory/ with what was donecontinue_on_failure: true)If the workflow has audit: true steps:
bash ops/audit-task.sh . "workflow: {workflow_name}"
Report results. If audit FAILS:
After all steps complete:
── Workflow Complete: {name} ──
Steps executed: N/N
Duration: ~Xm
Audit: PASS/FAIL
Memory: Updated