Agent skill
ao-workflow-runner
多角色 YAML 工作流执行引擎——解析 workflow YAML,加载 agency-agents-zh 角色,按 DAG 顺序执行
Install this agent skill to your Project
npx add-skill https://github.com/jnMetaCode/agency-orchestrator/tree/main/integrations/deerflow
SKILL.md
Multi-Role Workflow Runner
When the user asks to run a workflow (YAML file) or a multi-role collaboration task, follow these steps:
1. Parse Workflow
Read the specified YAML file. Extract name, inputs, steps, depends_on, conditions, and loops.
2. Collect Inputs
required: trueinputs must be provided by the user- Optional inputs with
defaultuse the default value - Optional inputs without default are set to empty string
3. Build Execution Order
Topological sort by depends_on. Steps without dependencies belong to the same level and can run in parallel.
4. Execute Steps
For each step:
- Read
agency-agents-zh/{role}.md(search order: YAML's agents_dir → ./agency-agents-zh/ → ../agency-agents-zh/ → node_modules/agency-agents-zh/) - Extract all markdown content after the frontmatter (
---) as the role personality - Replace
{{variables}}in the task with context values (from inputs or previous step outputs) - Evaluate conditions: if
conditionis set, evaluate it. Skip the step if the condition is not met. Operators:contains,equals,not_contains,not_equals - Fully embody the role — use that role's expertise, frameworks, and communication style. Output should be substantive.
- Store the step's output text into the context variable (if step has an
outputfield) - Check loops: if
loopis set and exit_condition is not met, jump back toloop.back_tostep (max:loop.max_iterationsrounds)
Label each step: ### Step N/Total: step_id (Role Name)
5. Save Results
Save all outputs to files:
ao-output/{workflow-name}-{date}/
├── steps/
│ ├── 1-{step_id}.md
│ └── ...
├── summary.md # Final step's full output
└── metadata.json # Step states, timing, token counts
6. Suggest Iteration
After completion, always tell the user:
To improve a specific step, ask me to re-run from that step. I'll reuse all upstream outputs. For CLI:
ao run <workflow> --resume last --from <step-id>
Important Rules
- Each step must genuinely embody the assigned role — no generic responses
- Never skip or merge steps; execute strictly in topological order
- If a role file is missing, tell the user to install agency-agents-zh
- If a condition is not met, mark the step as "skipped" and continue
- For
depends_on_mode: "any_completed", proceed when ANY upstream step completes (not all)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
brainstorming
在任何创造性工作之前必须使用此技能——创建功能、构建组件、添加功能或修改行为。在实现之前先探索用户意图、需求和设计。
test-driven-development
在实现任何功能或修复 bug 时使用,在编写实现代码之前
using-superpowers
在开始任何对话时使用——确立如何查找和使用技能,要求在任何响应(包括澄清性问题)之前调用 Skill 工具
requesting-code-review
完成任务、实现重要功能或合并前使用,用于验证工作成果是否符合要求
workflow-runner
在 Claude Code / OpenClaw / Cursor 中直接运行 agency-orchestrator YAML 工作流——无需 API key,使用当前会话的 LLM 作为执行引擎。当用户提供 .yaml 工作流文件或要求多角色协作完成任务时触发。
mcp-builder
MCP 服务器构建方法论 — 系统化构建生产级 MCP 工具,让 AI 助手连接外部能力
Didn't find tool you were looking for?