跳到正文
cccskills
免费在 GitHub 公开

b0

Delegate tasks to AI agents via Box0. Use when the user asks to review code, check security, run tests, compare tools, get multiple perspectives, research a topic, analyze data, write docs, or any task that could benefit from specialized or parallel execution. Also use when the user mentions agent names or says "ask", "delegate", "get opinions from", or "have someone".

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

查看安装方法

包含的文件(50)

  • SKILL.md5.4 KB
  • .github/box0-logo-dark.svg1.5 KB
  • .github/box0-logo-light.svg1.5 KB
  • .github/workflows/ci.yml664 B
  • .github/workflows/release.yml2.7 KB
  • .gitignore104 B
  • Cargo.lock59.6 KB
  • Cargo.toml1.0 KB
  • CLAUDE.md6.4 KB
  • docs/architecture.md7.4 KB
  • docs/cli.md3.3 KB
  • docs/cron.md1.4 KB
  • docs/hero.svg5.7 KB
  • docs/multi-machine.md124 B
  • docs/README.md472 B
  • docs/skills.md2.4 KB
  • docs/slack.md2.0 KB
  • docs/teams.md1.3 KB
  • docs/workflows.md12.6 KB
  • frontend/.gitignore253 B
  • frontend/index.html364 B
  • frontend/package.json442 B
  • frontend/pnpm-lock.yaml24.8 KB
  • frontend/public/favicon.svg9.3 KB
  • frontend/public/icons.svg4.9 KB
  • frontend/src/api.ts3.2 KB
  • frontend/src/App.vue2.2 KB
  • frontend/src/components/AgentDetail.vue8.1 KB
  • frontend/src/components/AgentList.vue1.9 KB
  • frontend/src/main.ts111 B
  • frontend/src/style.css3.2 KB
  • frontend/tsconfig.app.json454 B
  • frontend/tsconfig.json119 B
  • frontend/tsconfig.node.json653 B
  • frontend/vite.config.ts495 B
  • LICENSE1.0 KB
  • npm/bin/b0.js718 B
  • npm/install.js2.5 KB
  • npm/package.json359 B
  • README.md7.9 KB
  • src/client.rs12.0 KB
  • src/config.rs7.1 KB
  • src/daemon.rs20.2 KB
  • src/db.rs89.7 KB
  • src/lib.rs95 B
  • src/main.rs23.8 KB
  • src/scheduler.rs4.0 KB
  • src/server.rs75.7 KB
  • tests/api.rs14.3 KB
  • tests/e2e.sh3.3 KB

SKILL.md(原文)

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

Box0 (b0) Multi-Agent Platform

Run AI agents in parallel. Create agents with roles, trigger them on demand or on a schedule, and collect results.

Setup

Step 1: Check if Box0 is installed

b0 --version

If this succeeds, skip to Step 3.

Step 2: Install

npm install -g @box0/cli@latest

If npm is not available, build from source:

git clone https://github.com/risingwavelabs/box0.git
cd box0 && cargo build --release
export PATH="$PWD/target/release:$PATH"

Step 3: Check if server is running

b0 server status

If this shows "Server is running", skip to Step 5.

Step 4: Start the server

b0 server

On first start, Box0 creates an admin account and auto-configures ~/.b0/config.toml.

Step 5: Install the skill

npx skills add risingwavelabs/skills --skill b0

Step 6: Verify

b0 ls

This should run without errors. Setup is complete.

Tell the user: "Box0 is installed and ready. You can now delegate tasks to agents."


When to use

When the user's request could benefit from specialized agents or parallel execution, delegate.

Choosing an agent

Always use b0 run with an existing agent or create one with b0 add. Use b0 ls to see what is available.

Use b0 add when:

  • No existing agent matches the task
  • The user wants a named agent for future reuse

Use b0 run <name> when:

  • b0 ls shows an existing agent that matches the task
  • The user mentions an agent by name ("ask the reviewer")

Commands

b0 ls                                                  # list available agents
b0 add <name> --instructions "..."                     # create a named agent
b0 add <name> --instructions "..." --every 1h --task "..." # create scheduled agent
b0 add <name> --instructions "..." --webhook           # create agent with trigger URL
b0 add <name> --instructions "..." --webhook-secret s  # create agent with HMAC secret
b0 rm <name>                                           # delete an agent
b0 run <agent> "<detailed task prompt>"                # trigger agent and wait for result
b0 run <agent> "<task>" --timeout 600                  # trigger with custom timeout
b0 info <name>                                         # show agent info including trigger URL
b0 logs <name>                                         # show recent agent logs
b0 update <name> --instructions "..."                  # update agent instructions

How to write task prompts

This is critical. Do NOT forward the user's words. Compose a complete, actionable prompt.

Bad:

b0 run reviewer "review this PR"

Good:

b0 run reviewer "Review the changes on branch feature-timeout in this repo.
The PR adds timeout handling to src/handler.rs.
Focus on correctness, edge cases, and error handling.
Cite line numbers for any issues found."

Steps:

  1. Gather context first - read relevant files, run git diff, check the branch
  2. Include specifics - file paths, line numbers, branch names, what changed and why
  3. State the deliverable - what the agent should produce (a list of issues, a summary, a fix)

For large content (diffs, file contents), pipe via stdin:

git diff main..HEAD | b0 run reviewer "Review the following diff. Focus on correctness."

Concurrent tasks

Run multiple agents in parallel:

b0 run reviewer "Review the changes on branch feature-timeout..." &
b0 run security "Check src/handler.rs for OWASP top 10 vulnerabilities..." &
b0 run doc-writer "Update README to reflect the new timeout config option..." &
wait

Each b0 run call blocks until its agent completes. Run them in the background with & to parallelize.

Scheduled agents

Create an agent that runs automatically on a schedule:

b0 add monitor --instructions "Check logs for errors." --every 1h --task "scan logs"

Intervals: 30s, 5m, 1h, 6h, 1d.

Webhook triggers

Every agent with --webhook has a trigger URL. Any HTTP POST to that URL runs the agent.

b0 add notifier --instructions "Process incoming alerts." --webhook

This prints the trigger URL: <server>/trigger/<workspace>/<agent-name>.

To see the trigger URL for an existing agent:

b0 info notifier

To add HMAC signature verification:

b0 add notifier --instructions "Process alerts." --webhook --webhook-secret mysecret

Then sign requests with X-Hub-Signature-256: sha256=<hmac-sha256-of-body>.

Error handling

If an agent fails, b0 run reports the error. Decide whether to:

  • Retry with a clearer prompt
  • Try a different agent
  • Handle the task yourself
  • Report the failure to the user

Troubleshooting

SymptomFix
b0: command not foundRun npm install -g @box0/cli@latest
b0 server status shows not runningRun b0 server
b0 run times outIncrease timeout with --timeout 600
Agent returns empty resultCheck agent instructions with b0 info <name>

评价

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

评论

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

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

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

0 / 1000 字

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

报告此技能的问题