50 Suraj1235
odw Skill
为 Zed Agent 和 zcode 提供动态多智能体工作流。当用户说 "ultracode"、"workflow:"、"/deep-research",或需要跨多文件的规划、并行执行、验证或崩溃恢复等大规模工作时使用。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Open Dynamic Workflows for Zed Agent and zcode
Use this skill when the user invokes /odw, says ultracode, says workflow:, or asks for large coding work that benefits from explicit planning, parallel agents, verification, budgets, or crash-resumable execution.
The ODW context server should already be available from .zed/settings.json. The bridge scripts referenced below live next to this skill in scripts/.
Step 0: Check the daemon
Run:
node scripts/daemon-bridge.js --check
- Exit 0: use the daemon path.
- Exit 1 with auth guidance: tell the user to copy
~/.odw/daemon.tokenintoODW_DAEMON_TOKENor the host setting. - Exit 1 because the daemon is offline: tell the user to run
odw-daemon start, thenodw-daemon doctor zedorodw-daemon doctor zcode.
Daemon path
- Prefer MCP/context-server tools when available: call
odw_health, thenodw_runfor direct execution orodw_planfirst when the user wants to review the plan, the task is expensive, or mutation risk is high. - If tools are unavailable but the daemon is reachable, use the local bridge:
node scripts/daemon-bridge.js plan ""node scripts/daemon-bridge.js exec plan.jsonnode scripts/daemon-bridge.js statusnode scripts/daemon-bridge.js result
- Report the workflow id, topology, agent count, cost/time estimate, and final synthesized result. Do not redo the same work manually while ODW is running it.
Zed Agent and zcode-native fallback
If the daemon is unavailable, state that full ODW requires the daemon, then use the native planning and editing flow in Zed Agent or zcode:
- Decompose into discovery -> parallel work -> adversarial verification -> synthesis.
- Keep independent work items narrow and structured.
- Verify the result before summarizing.
- Ask before executing risky mutations.
Safety
- Never include secrets in prompts, plans, logs, or workflow artifacts.
- Respect user approval and project safety rules before mutation.
- If ODW is unavailable, name the missing piece exactly instead of pretending the full engine ran.