open-dynamic-workflows

open-dynamic-workflows is a skill for Claude Code, Codex from xz1220/open-dynamic-workflows. It costs 154 tokens per session (2,124 once invoked), scanned A, original, MIT.

A way to write JavaScript workflows that send parts of a large task to separate coding-agent command-line programs and return only the final result. It supports multiple agents, stages, loops, and checks within one workflow.

In plain words
What is it for?
Running parallel drafts, multi-stage reviews, adversarial checks, and repeated research until no new findings appear, using Codex, Claude Code, Gemini, Qwen, Kimi, or another configured agent.
Why use it?
It keeps intermediate drafts and subtask results outside the main agent's conversation, which helps manage work that is too large or complex for one call.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Good fit Running parallel drafts, multi-stage reviews, adversarial checks, and repeated research until no new findings appear, using Codex, Claude Code, Gemini, Qwen, Kimi, or another configured agent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xz1220/open-dynamic-workflows/zh-cn
Install

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.

Any agent
npx skills add xz1220/open-dynamic-workflows --skill zh-cn
Clone the repo
git clone --depth 1 https://github.com/xz1220/open-dynamic-workflows

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for open-dynamic-workflows

README.md
[![agentmods](https://agentmods.dev/badge/skills/xz1220/open-dynamic-workflows/zh-cn/github.svg)](https://agentmods.dev/skills/xz1220/open-dynamic-workflows/zh-cn)
Your own site
<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.

agentmods 80×15 button for open-dynamic-workflows

Your own site · 80×15
<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>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,124 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured yesterday against content hash a8374e9deb80, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

skills/open-dynamic-workflows/zh-CN/SKILL.md · 136 lines

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.namemeta.description 必填;whenToUsephasesmodel 可选。
  • 脚本体运行在 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 方言。

agentopts{ adapter?, schema?, label?, phase?, model?, agentType?, isolation? }adapter 选择用哪个 CLI;schema 是一个原始 JSON Schema 对象(选项,不是全局); agentType 是注入进 prompt 的人设不是 adapter 名。

Read the full file on GitHub · 136 lines

Files

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.

Changes

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.

  1. yesterday Changed · +1 lines a8374e9deb80
  2. 9d ago First seen · 135 lines · 154 tokens per session scan A 36fd354f3c50

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories