4.3k davidondrej

bb-cli Skill

当需要控制 bb 时使用。bb CLI 可检查和管理线程、环境、项目、机器、提供商、技能、插件、设置、终端及其他 BB 服务。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

BB CLI

Never inspect or message other threads unless the user explicitly requests that action.

Use bb for BB state and actions. Inspect the current context before you choose
IDs, machines, workspaces, providers, or models.

Start with context

bb status --json

Use JSON when command output controls later work. Use human output for quick
inspection.

Run bb --version for the CLI version. Use bb --help or bb help [command]
for help. Run bb guide for the system overview. Run bb guide for one
area. Use bb --help for current flags and defaults.

A standalone CLI targets http://127.0.0.1:38886. Use BB_SERVER_URL and
BB_HOST_DAEMON_PORT only for an intentional non-default target.

Read only the relevant reference

  • Read references/command-index.md to find the exact core command path. Use

live help for current flags and defaults.

  • Read references/configuration.md for settings, agent instructions, skills,

remote clients, and environment setup scripts.

  • Read references/thread-creation.md before you spawn or fork threads, create

projects, select machines, or create environments.

  • Read references/thread-operation.md for messages, queues, interactions,

panes, terminals, inspection, and long-running commands.

  • Read references/failure-recovery.md when a thread fails, stops, or needs plan

or goal recovery.

  • Read references/theme-commands.md for palette and favicon commands. Read

references/theming.md before you create or edit theme CSS.

  • Read references/plugins.md for plugin discovery, install, build, update,

configuration, runtime, and contributed commands.

  • Read references/app-settings.md for complete app setting keys and effects.

Command habits

  • Resolve names and IDs with a list or show command before mutation.
  • Pass an explicit project when a command can act across projects.
  • Pass an environment or machine selector when the default host is uncertain.
  • Query provider models on the machine that will run the thread.
  • Prefer non-interactive commands and machine-readable output for automation.
  • Pass --yes for a confirmed destructive command in a non-interactive shell.
  • Treat plugin commands as normal top-level commands after installation.
  • Inspect real status, logs, API results, or diffs instead of assumptions.
  • Keep file paths on the machine that owns the selected workspace.
  • BB rejects symlinks as project/environment roots (Root path ... must not be a symlink). Use real directories. Before a rename or rollback, check every affected environment and thread; changing only project sources is not enough.

Common checks

bb project list --json
bb machine list --json
bb provider list --environment "$BB_ENVIRONMENT_ID" --json
bb thread show "$BB_THREAD_ID" --json
bb environment status "$BB_ENVIRONMENT_ID" --json
bb plugin list --json
bb skill list --environment "$BB_ENVIRONMENT_ID" --json

Completion

Confirm the command result and any affected thread, environment, plugin, or
remote service. Report the stable ID or URL that the user needs next.

配合站内内容