跳到正文
Skillpedia
通用编程5.7k · #14745

workflow-local

它能做什么

这项技能教智能体如何从头到尾运行 TeamAI 团队工作流,无需有人回答问题。它适用于自动化任务,也适用于在这台电脑上继续运行中的任务。

适用场景

  • ✓当 CI 任务或云端智能体需要在无人值守的情况下运行团队工作流的时候。
  • ✓当某次工作流运行中断,需要在这台机器上继续的时候。
  • ✓当工作流启动的回复说明运行必须使用本地驱动程序的时候。

技能链接

https://github.com/Tencent/teamai-cli/blob/main/skill-data/workflow-local/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请为夜间任务无人值守地运行我们的团队工作流,完成后告诉我结果。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会使用本地驱动程序启动工作流,并把输入作为一个 JSON 对象传入。运行结束时,命令会报告成功或失败,并指出失败的步骤及其重试命令。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Run a team workflow unattended

The local driver runs a whole run in one process on this machine: each command step as a process, each prompt step through a headless tool. Nobody is asked anything while it runs, so every answer the run needs is decided before it starts.

When

  • A CI job or a cloud agent runs the workflow.
  • teamai workflow start --describe <name> --driver skill answered ask.kind: local: a coding session cannot run some step, and ask.reason says which.
  • A run continues on this machine without a coding session: after a retry, an answer, a stopped driver, or a session that handed it over.

Run it

  1. Run teamai workflow start <name> --describe and read the inputs it lists.
  2. Start the run: teamai workflow start <name> --driver local, with the inputs as one JSON object in --inputs. teamai workflow start --help lists the other options, such as answering optional approvals and picking the prompt tool.
  3. To continue a run that stopped, run teamai workflow resume <run>.

The command exits when the run ends: 0 when it succeeded, 1 when it failed or was cancelled. A failed run names each failed step, its message and its teamai workflow retry command on stderr. Done when it has exited and the outcome, the failing step's message and the pull requests the run opened are reported where the person reads them: the job log, or your reply.

Approvals

Without a terminal, nobody answers a gate during the run:

  • A required approval fails its step hitl_required, and so does the run.
  • With --auto-approve, or the member's workflows.auto_approve, an optional approval is answered yes and a choice takes its default.
  • Without either, an optional approval is skipped, and a choice fails hitl_required.

From an agent session

A coding agent's session may start or continue only a workflow whose invoke allows it, with start or resume. invoke: allow goes on. invoke: ask goes on once the person agreed, with --confirmed, and never in an unattended run (CI or a cloud agent), where it answers unattended_denied. invoke: deny, the default, answers invoke_denied. Tell the person the message, which names the command for their own terminal.

Inside a workflow step, every teamai workflow command that changes a run answers nested_workflow. Do the step's own work there instead.

Env and secrets

A step gets the team env keys its requires.env lists, and no other team key. A key with no value on this machine fails the step missing_env before it runs, and the message names the fix: teamai env set KEY for a key the team declares; for one it does not, the environment, or teamai env add KEY --secret followed by teamai env set KEY. The person runs env set in their own terminal. A CI job exports each secret under its key name instead. TeamAI masks the value of every key in env/secrets.yaml in run files and output.

CI

When you set up a CI job that starts a run, or one that takes the runs members offer, read references/ci.md.

常见问题

运行过程中会向我提问吗?

不会。这项技能说明,运行期间不会询问任何问题,所有答案都在开始前设定好。

如何继续已中断的运行?

使用 teamai workflow resume 命令,并附上运行名称。

如果某个步骤失败了怎么办?

运行会列出每个失败的步骤、其错误信息以及重试命令。

详情

作者的原始描述

Run a team workflow unattended with the local driver. Use in CI or a cloud agent, when a describe reply routed the run to the local driver, or to continue a run on this machine without a coding session.

repo: Tencent/teamai-cli

热度

GitHub 星标
5.7k
排名
#14745
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能