workflows
它能做什么
这项技能创建并运行 DevSpace 工作流脚本,它们以分阶段、并行或流水线的方式组合多次子智能体调用。它适用于重复执行同一套多步骤智能体计划的团队。
适用场景
- ✓当任务有可重复的计划,需要多个智能体分阶段协作时。
- ✓当你希望计划循环执行,直到测试通过或审查获得批准时。
- ✓当你需要对许多项目运行同一套多智能体审查时。
技能链接
https://github.com/Waishnav/devspace/blob/main/skills/workflows/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“能写一个 DevSpace 工作流吗?它先规划一项变更,再由评审智能体审查,并循环直到审查获得批准。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会使用允许的基本指令编写工作流脚本,然后运行它并等待结果。工作流默认只读,因此要修改项目,必须开启写入模式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
DevSpace workflows
Use a workflow when a task has a repeatable multi-agent plan. Keep one-off delegation on the subagents commands.
Named workflows live in the current project's .devspace/workflows/ directory.
Write a workflow
Before writing or editing a workflow script, read reference.md next to this file. It defines the only syntax and primitives the sandbox accepts (agent, phase, parallel, pipeline, workflow, log, args), the meta rules, agent options, structured output schemas, and limits. Do not guess the API.
Then read patterns.md for proven engineering loops to adapt: plan with a critic, implement-review-fix until approved, a QA gate that loops until tests pass, explore-then-synthesize, multi-lens review with verified findings, bake-offs between agents, mapping one change over many units, debugging with competing hypotheses, and composing them.
Run a workflow
Run a named workflow or a specific file:
devspace workflow run --name <name> [--args '<json>']
devspace workflow run --file <path> [--args-file <path>]
The command returns a compact <workflow id="..." status="..."/> receipt. Keep the ID. Workflow code is read-only by default; add --write-mode allowed only when the workflow must modify the project.
Wait up to 60 seconds at a time. Repeat wait if the returned status is still running; do not poll status in a loop.
devspace workflow wait <id> --timeout 60
Inspect current state, calls, or one full call when needed:
devspace workflow status <id>
devspace workflow calls <id>
devspace workflow call <id> <index>
devspace workflow events <id> --after <last-sequence>
devspace workflow ls
events returns at most 100 persisted log and phase entries. Keep the highest sequence and pass it with --after for the next page.
Cancel only when the parent task no longer needs the run:
devspace workflow cancel <id>
Resume an interrupted or failed run from its durable call history. Resume reuses the original arguments and write mode:
devspace workflow run --resume <id>
Use --json only for scripts that need structured output.
常见问题
工作流能修改我的项目吗?
只有在你允许的情况下才能。技能说明,工作流代码默认只读,需要写入模式标志才能修改项目。
工作流保存在哪里?
命名的工作流保存在项目的 workflows 文件夹中。
有可以参考的模式吗?
有。技能包含经过验证的模式,例如带评审员的规划,以及实施—审查—修复循环。
详情
作者的原始描述
Write, run, and inspect persisted multi-agent DevSpace workflows, JavaScript scripts that compose subagent calls with agent, phase, parallel, and pipeline.
repo: Waishnav/devspace
热度
- GitHub 星标
- 5.4k
- 排名
- #14959
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …