跳到正文
cccskills
免费在 GitHub 公开

workflows

Author or run durable BB workflows when the user requests workflow execution or multi-agent orchestration.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(4)

  • SKILL.md3.7 KB
  • references/authoring.md7.3 KB
  • references/orchestration.md5.7 KB
  • references/runs.md6.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

BB workflows

Use a workflow when the user explicitly asks for multi-agent orchestration. Ordinary tasks do not authorize a workflow run.

A workflow puts deterministic control flow around normal BB worker threads. The script can fan out work, pipeline stages, verify results, and return structured data. Worker threads retain normal workspace tools and permissions.

The plugin is disabled on fresh installations; bb plugin enable workflows turns it on. bb workflows commands must run from a BB project thread.

Start safely

  1. Inspect the task and repository before you choose the work list.
  2. Confirm the provider, model, and reasoning tuple from the live catalog.
  3. Write the smallest workflow that gives the requested coverage.
  4. Validate the exact source before execution.
  5. Start the background run.
  6. Emit the returned workflow preview directive exactly once.
  7. Use compact status for progress and paged history for details.

Check an explicit model selection with:

bb provider list --environment "$BB_ENVIRONMENT_ID" --json
bb provider models <provider-id> --environment "$BB_ENVIRONMENT_ID" --json

Do not guess model identifiers or partial selection tuples.

Read only the required detail

  • Read references/authoring.md when you write or change workflow source, schemas, agent options, or nested workflows.
  • Read references/orchestration.md when you design pipelines, barriers, verification, panels, loops, or other quality controls.
  • Read references/runs.md when you validate, start, inspect, stop, or resume a workflow, or change the plugin's run limits.

Minimal source

Every script starts with a literal meta object:

export const meta = {
  name: "review-change",
  description: "Review a change and verify the findings",
  phases: [{ title: "Review" }, { title: "Verify" }],
};
const results = await pipeline(
  args.items,
  (item) => agent("Review " + item, { phase: "Review" }),
  (review, item) =>
    agent("Verify this review for " + item + ":\n" + review, {
      phase: "Verify",
    }),
);
return results;

Workflow source is JavaScript, not TypeScript. The script has no filesystem, shell, network, import, clock, or random access. Worker agents can use their normal tools.

Use pipeline for independent multi-stage items. Use a parallel barrier only when the next stage needs all prior results.

Use an agent schema when later stages need reliable structured data. A structured worker must return its value through the workflow result tool.

Execute

Validate and run with the same source selector:

bb workflows validate --file .bb/workflows/review-change.js
bb workflows run --file .bb/workflows/review-change.js --args '{"items":[]}'

The agent tool accepts script, scriptPath, or name. The CLI accepts --script, --file, or --name.

After a successful agent-tool call, copy its previewDirective into the assistant response as one standalone line. Do not edit or repeat it.

Use bb workflows status for compact progress. Redirect bounded history pages into BB_THREAD_STORAGE before inspection because history can contain full prompts and results.

Quality check

  • The user explicitly requested workflow orchestration.
  • The source passes bb workflows validate.
  • Every explicit provider tuple exists in the live catalog.
  • Each phase name matches its meta entry.
  • Independent items use pipeline without an unnecessary barrier.
  • Bounded coverage logs what it omits.
  • Structured consumers receive schema-validated results.
  • The final response uses status or inspected history, not assumptions.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Configure or diagnose Account Pooler accounts, authentication, quota routing, and failover through bb pool.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44732026年10月19日 更新

Configure or troubleshoot ACP agent discovery, custom models, skills, and compaction in BB.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44732026年10月19日 更新

Approve a GitHub contributor to open PRs in get-bb/bb, then land the allowlist change with SlopCop and CI skipped. Use for requests such as "add @username to be able to open PRs" or an explicit add-contributor invocation.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44732026年10月19日 更新

Create or edit element annotations in desktop Browser tabs, or update saved annotation comments through the plugin RPC.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44732026年10月19日 更新

Schedule or manage recurring and one-shot BB agent or script automations.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44732026年10月19日 更新

Sign this bb in to or out of its getbb.app account with bb account, and check which account remote access and hosted services use.

中文简介正在准备中。当前显示原文说明。

get-bb/bb44732026年10月19日 更新

查看 get-bb 的全部技能

报告此技能的问题