workflow-runner
Skill18 starsChanged 7 months agoMITView on GitHub
Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Jacobinwwey/notemdprotheir own version, first seen Oct 5, 2026
- jnMetaCode/superpowers-zhtheir own version, first seen Sep 26, 2026
- rzx007/Vykortheir own version, first seen Sep 23, 2026
- gootf/software-agent-soptheir own version, first seen Aug 30, 2026
- shibit-net/xuanji-communitytheir own version, first seen Jun 2, 2026
Used with
Projects with it also use chinese-code-review, chinese-commit-conventions and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
shibit-netSkillchinese-code-review
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
shibit-netSkillchinese-commit-conventions
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。
Also in 3 projects that use this
OpenAISkillusing-superpowers
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
Also in 3 projects that use this
OpenAISkillwriting-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Also in 3 projects that use this
MicrosoftSkillmcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Also in 3 projects that use this
- +1 more from shibit-net
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- jnMetaCode/superpowers-zh★ 8.3ksame name
- shibit-net/xuanji-community★ 93same name
- gootf/software-agent-sop★ 2same name
- Jacobinwwey/notemdpro★ 2same name
- rzx007/Vykor★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- a11y-debuggingSkill
- agent-blueprint-architectSkill
- brainstormingSkill
- chart-visualizationSkill
- chinese-copywritingSkill
- chinese-git-workflowSkill
- chrome-devtoolsSkill
- creating-trae-rulesSkill
- debug-optimize-lcpSkill
- discovering-subagent-capabilitiesSkill
- dispatching-parallel-agentsSkill
- everything-searchSkill
- executing-plansSkill
- find-docsSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- gh-cliSkill
- git-commitSkill
- image-manipulation-python-magickSkill
- memory-kernelSkill
- memory-leak-debuggingSkill
- mineru-to-mdSkill
- model-config-lookupSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- self-improvementSkill
- skill-creatorSkill
- skill-language-policySkill
- skill-stability-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- troubleshootingSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- visual-brainstormingSkill
- writing-plansSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 20 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Run an agency-orchestrator style multi-role workflow within the current Trae conversation.
- Distinctive: line 48
Missing required inputs: Ask first; do not guess default values.
- Distinctive: line 59
Ask the user if still missing.
- Very specific: line 61
If the user provides both workflow_file and input values in the same message, extract the inputs first, then determine if follow-up …
- Distinctive: line 65
If an input name clearly indicates a document path, such as:
- Distinctive: line 73
Treat it as a "document input that must be read first" by default.
- Distinctive: line 76
Verify the path exists and is readable.
- Very specific: line 77
Use Read to read the document.
- Distinctive: line 79
Do not just inject the path string into the task template.
- Distinctive: line 80
If the document is too long, summarize it first, but state that execution is based on the summary.
- Distinctive: line 86
Obtain Workflow: Read the YAML file, or generate a minimal draft if none exists.
- Distinctive: line 90
Parallel Execution: Only execute same-layer steps in true parallel if there is an explicit subagent mapping.
- Very specific: line 95
YAML provided: Use Read to extract name, agents_dir, inputs, steps.
- Very specific: line 107
Use tools like LS, Glob, Read.
- Distinctive: line 117
Read document inputs before providing them as context.
- Distinctive: line 121
If a variable is undefined:
- Distinctive: line 122
If it is a required input, pause and ask.
- Very specific: line 123
If it should come from a previous step, check depends_on or output config.
- Distinctive: line 135
Default to sequential execution in the main session layer by layer.
- Distinctive: line 143
No dependencies between steps.
- Distinctive: line 144
No shared mutable file state.
- Distinctive: line 149
If any condition fails, fallback to "logical parallel layer, actual sequential execution in main session".
- Distinctive: line 153
After each step, record at least:
- Very specific: line 157
Write to variable context if output field exists.
- Distinctive: line 176
Unread Document Inputs: Do not treat the file path as consumed context.
- Distinctive: line 191
Use this fixed skeleton:
- Distinctive: line 211
If still in the "generate YAML draft for confirmation" phase, do not say "工作流执行已完成。".
- Very specific: line 223
Document input guidelines: resources/document-input-guidelines.md
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Workflow Runner
Overview
Run an agency-orchestrator style multi-role workflow within the current Trae conversation. Tasks:
- Reading or generating a YAML workflow.
- Maintaining DAG layers based on
depends_on. - Reading role files and switching roles for execution.
- Executing true parallel steps only when conditions are met.
Use This Skill
- The user provides a
.yamlor.ymlworkflow and requests to execute it. - The user explicitly asks for "multi-role collaboration" or "multiple roles analyzing/reviewing/creating together".
- The user wants to generate a multi-role workflow first, then confirm and execute it.
- The user wants to preserve role division, step dependencies, and execution layers, rather than just getting a plain summary.
Do Not Use
- The user just wants a normal answer without the appearance of role orchestration.
- The user wants to write an implementation plan or break down development tasks; use
writing-plansinstead. - The user already has an implementation plan and wants to execute it sequentially; use
executing-plansinstead. - The user has an implementation plan and the environment supports implementation subagents; use
subagent-driven-developmentinstead. - The user is only asking for a single code review, single debugging session, or single browser validation.
Input Contract
Required Inputs:
workflow_file: The path to the YAML file provided by the user; ORworkflow_intent: The multi-role collaboration goal described by the user, used to generate a workflow first.
Common Optional Inputs:
agents_dirpersist_outputsoutput_direxecution_mode_hint
Missing input handling:
- No YAML, but multi-role orchestration requested: Generate a minimal workflow draft first; do not execute immediately.
- Missing required inputs: Ask first; do not guess default values.
- Missing role directory or role files: Report the missing items and search locations; do not skip steps.
- Incomplete inputs but partial preview possible: Provide a pre-execution plan or YAML draft, but do not pretend it has been executed.
Input Extraction
Collect input values in this order:
- Explicit assignments in the user's current message (e.g.,
topic = "...",topic: ...). - Values with the same name explicitly given by the user earlier in the session.
- The
defaultvalue in the YAML. - Ask the user if still missing.
If the user provides both workflow_file and input values in the same message, extract the inputs first, then determine if follow-up questions are needed.
Document-Backed Inputs
If an input name clearly indicates a document path, such as:
prd_filespec_filedoc_filebrief_file*_file*_path
Treat it as a "document input that must be read first" by default.
Rules:
- Verify the path exists and is readable.
- Use
Readto read the document. - Include the key content of the document as part of the role context.
- Do not just inject the path string into the task template.
- If the document is too long, summarize it first, but state that execution is based on the summary.
Execution Protocol
Default execution path:
- Obtain Workflow: Read the YAML file, or generate a minimal draft if none exists.
- Locate Role Files: Find
agents_dirand read role files. - Collect Inputs: Extract inputs; read documents for document-backed inputs.
- Build Layered Plan: Group steps by
depends_onand execute sequentially by layer. - Parallel Execution: Only execute same-layer steps in true parallel if there is an explicit subagent mapping.
- Aggregate Results: Summarize the output; write to
.ao-output/only if persistence is requested.
1. Obtain Workflow
- YAML provided: Use
Readto extractname,agents_dir,inputs,steps. - Intent provided: Generate a minimal workflow draft and get confirmation before executing.
- The workflow must have at least one step; otherwise, stop and report.
2. Locate Role Files
Locate agents_dir in this order:
- Same directory as the YAML file.
- Current workspace.
- Parent of current workspace.
- Common dependency directories (e.g.,
node_modules/<agents_dir>).
Use tools like LS, Glob, Read; do not rely on Unix shell checks.
Each step's role maps to <agents_dir>/<role>.md by default. Before execution, read at least:
- Role name.
- Stable frontmatter.
- Role body after the second
---.
3. Collect Inputs and Interpolate Variables
- Handle normal inputs via extraction rules.
- Read document inputs before providing them as context.
{{input_name}}comes from input values.{{previous_output}}comes from previous step outputs.
If a variable is undefined:
- If it is a required input, pause and ask.
- If it should come from a previous step, check
depends_onoroutputconfig.
4. Build Layered Plan
Topologically sort by depends_on and organize steps into layers:
- Layer 1: Steps with no dependencies.
- Subsequent layers: Steps whose dependencies are met.
Provide a brief layered plan before execution, stating total steps, steps per layer, and whether parallelism is "logical only".
5. Execute Layer by Layer
Default to sequential execution in the main session layer by layer. Even if logically parallelizable, do not violate DAG dependencies.
For single-step layers:
- Explicitly switch roles.
- State the step name, role name, and task goal.
- The output must reflect the role's perspective, not a generic answer.
For multi-step layers, true parallel execution is only allowed if ALL conditions are met:
- No dependencies between steps.
- No shared mutable file state.
- Suitable subagent capabilities exist in the current environment.
- Each step can be written as a self-contained prompt.
- Explicit mapping exists between the role task and subagent type.
If any condition fails, fallback to "logical parallel layer, actual sequential execution in main session". Do not force parallel execution for generic text roles (content creation, analysis, review) without explicit mapping.
6. Record and Persist
After each step, record at least:
step_idrole- Output body
- Write to variable context if
outputfield exists.
Force persistence only when:
- User explicitly requests saving artifacts.
- The workflow is an artifact-generating task by nature.
Default output directory:
.ao-output/<workflow-name>-<YYYY-MM-DD>/
Common outputs include:
steps/<index>-<step-id>.mdsummary.mdmetadata.json
Failure Handling
- Missing/Invalid YAML: Explain the location of the error. If the user just expressed an intent, switch to draft generation mode.
- Missing Role Directory/Files: Report attempted locations and the specific missing
role. Do not skip the step and pretend to continue. - Undefined Variables: Distinguish between missing inputs and workflow config errors. Clarify first; do not guess replacements.
- Unread Document Inputs: Do not treat the file path as consumed context. Read the document first. If a step heavily depends on an unreadable document, stop and report.
- Step Failure: Mark the step as failed, skip downstream dependent steps, and continue with other independent steps. Clearly state success, failure, and skipped items in the final report.
- Environment Lacks True Parallelism: Explicitly state that "logical parallel layer, actual sequential execution" is being used. Do not pretend the environment has general multi-agent capabilities if it doesn't.
Output Contract
The final output must include:
- Workflow name
- Execution mode (YAML execution or draft generation)
- Number of layers and steps
- Status of each step
- Whether true parallelism was used
- Final deliverables
- Output directory (if persisted)
Use this fixed skeleton:
## 工作流运行总结
**名称:** <workflow-name>
**层级/步骤:** <层级数> / <步骤数>
**状态:** `成功` | `部分成功` | `失败`
**产出物:**
- [交付物摘要;如果较长可在下方展开说明]
- [若无产出物,请写 "- 无"]
**未解决的冲突/阻碍:**
- [若无冲突,请写 "- 无"]
**下一步建议:**
- [继续下一步计划 | 等待用户确认 | 退出]If still in the "generate YAML draft for confirmation" phase, do not say "工作流执行已完成。"; explicitly state "工作流草稿已生成,等待确认后执行。".
Resources
The main file only defines the execution contract; examples and test-run assets are in companion directories:
- evals:
evals/evals.json - examples:
examples/input.md,examples/output.md - Minimal test run:
resources/try-it.md - Sample YAML:
resources/sample-workflow.yaml - Document-driven sample:
resources/sample-prd-review-workflow.yaml - Sample document:
resources/sample-prd.md - Directory convention:
resources/role-directory-convention.md - Document input guidelines:
resources/document-input-guidelines.md
Integration
writing-plans: Downstream — after workflow-runner completes its multi-role analysis (e.g., PRD review, architect assessment), the conclusions can serve as input forwriting-plansto generate an implementation plan. The handoff output should include key decisions, open risks, and recommended next steps.executing-plans: Sequentially executes implementation plans, does not emphasize role-playing.subagent-driven-development: Subagent-driven development, not equivalent to role workflows.dispatching-parallel-agents: Can be referenced for parallel decisions, but does not replace the workflow semantics of this skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

