跳到正文
Skillpedia
智能体5.4k · #14959

workflows

它能做什么

这项技能创建并运行 DevSpace 工作流脚本,它们以分阶段、并行或流水线的方式组合多次子智能体调用。它适用于重复执行同一套多步骤智能体计划的团队。

适用场景

  • ✓当任务有可重复的计划,需要多个智能体分阶段协作时。
  • ✓当你希望计划循环执行,直到测试通过或审查获得批准时。
  • ✓当你需要对许多项目运行同一套多智能体审查时。

技能链接

https://github.com/Waishnav/devspace/blob/main/skills/workflows/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Waishnav/devspace/blob/main/skills/workflows/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能