Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add xz1220/open-dynamic-workflows --skill zh-cngit clone --depth 1 https://github.com/xz1220/open-dynamic-workflowsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xz1220/open-dynamic-workflows/zh-cn)<a href="https://agentmods.dev/skills/xz1220/open-dynamic-workflows/zh-cn"><img src="https://agentmods.dev/badge/skills/xz1220/open-dynamic-workflows/zh-cn/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/xz1220/open-dynamic-workflows/zh-cn"><img src="https://agentmods.dev/badge/skills/xz1220/open-dynamic-workflows/zh-cn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00154 | $0.02124 |
| Opus 5 | $0.00077 | $0.01062 |
| Sonnet 5 | $0.00031 | $0.00425 |
| Haiku 4.5 | $0.00015 | $0.00212 |
Grade A, and why
open-dynamic-workflows scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Open Dynamic Workflows
一个 dynamic workflow 就是一段简短的 JavaScript 脚本:编排计划写成普通代码,由
odw 在独立的后台进程里执行,把每个子任务派发给一个真实的 coding-agent CLI 进程。
中间产物不进入你的上下文,回到你手里的只有脚本 return 的最终值。
使用流程固定三步:写脚本 → odw run → 检视结果再行动。任务一次调用就能完成时
不要用——直接做。
写 workflow 脚本
- 文件最顶部放
export const meta = {…},必须是纯字面量(不含变量、函数调用、 模板插值)。meta.name与meta.description必填;whenToUse、phases、model可选。 - 脚本体运行在 async 上下文里:直接用顶层
await;顶层return的值就是整个 workflow 的结果。 - 原语全部是注入的全局——不要 import。除
export const meta外,文件里出现任何 其他顶层import/export都会被加载器拒绝。 - 循环、
if、去重等普通控制流直接写在脚本里。原语只负责派发并等待,拿结果做 什么由脚本决定。
// fan-out-reduce.js
export const meta = {
name: 'fan-out-reduce',
description: 'Draft in parallel, then synthesize.',
phases: [{ title: 'Draft' }, { title: 'Synthesize' }],
}
const question = (args && args.question) || 'Design a cache.'
phase('Draft')
const drafts = await parallel(
[1, 2, 3].map((i) => () => agent(`Draft #${i}: ${question}`, { phase: 'Draft' })),
)
phase('Synthesize')
return await agent(
'Synthesize the best answer from:\n' + drafts.filter(Boolean).join('\n---\n'),
{ phase: 'Synthesize' },
)
用 --args 传入的输入会注入为全局 args(解析后的 JSON,或一段原始字符串——
看起来像 JSON 但解析失败的输入会被直接拒绝,不会悄悄按字符串传入)。
原语速查
| 原语 | 作用 |
|---|---|
agent(prompt, opts?) |
让一个 coding agent 跑一个子任务;返回它的回复文本,设了 opts.schema 则返回校验过的对象。唯一真正干活的动词。 |
parallel(thunks) |
并发执行一组零参 thunk,并等全部完成(屏障)。顺序保留;失败的槽位是 null。 |
pipeline(items, ...stages) |
让每个条目独立地流过各 stage(无屏障)。每个 stage 收到 (prev, item, index)。 |
phase(title) / log(msg) |
给后续工作打上进度标签 / 发一行进度消息。 |
args |
workflow 的输入(注入)。 |
budget |
{ total, spent(), remaining() }——按 token 目标扩缩深度。 |
workflow(ref, args?) |
内联调用另一个 workflow(仅一层)。ref 是受管目录中的名字或 { scriptPath };子 workflow 共享本次运行的并发上限、agent 计数和预算。 |
validate(source) |
解析并编译检查可信源码,不运行工作流正文;元数据会被求值。返回 { ok, meta?, errors, warnings }。ODW 扩展——不属于 Claude Code 方言。 |
agent 的 opts:{ adapter?, schema?, label?, phase?, model?, agentType?, isolation? }。
adapter 选择用哪个 CLI;schema 是一个原始 JSON Schema 对象(选项,不是全局);
agentType 是注入进 prompt 的人设,不是 adapter 名。
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed · +1 lines a8374e9deb80
- 9d ago First seen · 135 lines · 154 tokens per session scan A 36fd354f3c50
open-dynamic-workflows is a skill published in the GitHub repository xz1220/open-dynamic-workflows (101 stars, last pushed yesterday), licensed MIT. It adds 154 tokens to every session and 2,124 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
create-plugin
Use when authoring a new octomux plugin package — package layout, the apply(ctx) export, choosing a registrar, shipping kind presets, testing locally, and confirming with octomux doctor.
review-deep
Drive the deep-review phase of an automated PR review. Consumes the walkthrough, runs the deterministic deep-review workflow (parallel lenses → adversarial validation → code-enforced threshold/caps), drafts the surviving findings, and completes the review run.
add-plugin
Use when installing, disabling, enabling, or troubleshooting a third-party octomux plugin — the manifest row shape, octomux plugins list/disable/enable, reading octomux doctor output, and recovering a broken boot with --safe-mode.
create-task
Use when creating an octomux task to dispatch autonomous Claude Code agents for building features, fixing bugs, or any code changes.
review-orchestrator
Drive an automated PR review. Produces a structured walkthrough plus inline draft comments via the octomux review CLI. NEVER posts to GitHub directly — publishing is human-gated.
plan
Deep planning for a specific Jira ticket — codebase deep-dive, interview on ambiguous points, update ticket with detailed approach. Use before implementing large or unclear tickets. Usage - /plan IN-XXX.