Skip to content
Back to skills

Bb Cli

ASecurity

Inspect or manage BB state with the bb CLI; use for BB commands and configuration.

  • 6,450 stars
  • 0 votes
  • 0 copies
  • 20 views
  • Added August 31, 2026
ai-agentsshell

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add get-bb/bb --skill bb-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bb Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bb Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/get-bb-bb-cli/badge)](https://www.skillsdirectory.com/skills/get-bb-bb-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bb-cli
description: "Inspect or manage BB state with the bb CLI; use for BB commands and configuration."
---

# BB CLI

Use bb for BB state and actions. `bb guide` is the reference manual; this skill
says where to look and how to use bb well.

## Start with context

```sh
bb status --json
```

- `bb guide` prints the concepts and the chapter index. `bb guide <chapter>`
  is the full reference for one area.
- `bb guide commands <group>` prints every command in a group with its options.
  `bb <command> --help` shows current flags and defaults.
- references/command-index.md lists every core command path and alias.

## Find the chapter

| Task                                                                      | Read                           |
| ------------------------------------------------------------------------- | ------------------------------ |
| Spawn, hand off, or fork threads; edit a sent message                     | `bb guide threads`             |
| List, inspect, wait on, or open threads                                   | `bb guide thread-inspection`   |
| Message threads, answer interactions, manage queues                       | `bb guide thread-messaging`    |
| Stop, clear, compact, retry, archive, or delete threads                   | `bb guide thread-lifecycle`    |
| Worktree setup hooks, environment inspection, commits, pull requests      | `bb guide environments`        |
| Enroll, create, update, suspend, or remove machines; move the server      | `bb guide machines`            |
| Sign other browsers, phones, or CLIs in; list or revoke signed-in devices | `bb guide machines`            |
| Projects, sources, attachments, project files                             | `bb guide projects`            |
| Providers, models, service tiers, custom models                           | `bb guide providers`           |
| Run a command on another machine; dev servers and long-running commands   | `bb guide terminals`           |
| Settings, keyboard shortcuts, sidebar preferences, themes, files, voice   | `bb guide customization`       |
| `AGENTS.md` and skills                                                    | `bb guide agent-configuration` |
| Plugins and marketplaces                                                  | `bb guide plugins`             |
| Scheduled work                                                            | the `automations` skill        |
| Built-in browser tabs                                                     | `bb guide browser`             |
| `--json` output shapes and the error envelope                             | `bb guide json`                |
| Writing theme CSS                                                         | references/theming.md          |

A plugin's commands and settings are documented in that plugin's own skill.
`bb plugin list` shows which commands each plugin contributes.

## Command habits

- Resolve names and IDs with a list or show command before mutation.
- Pass the project explicitly. Pass an environment or machine selector when the
  default host is uncertain, and query provider models on the machine that will
  run the thread.
- Keep file paths on the machine that owns the selected workspace.
- Use `--json` when output controls later work. Parse stdout only: a failure
  prints the error envelope on stdout and the message on stderr, so `2>&1`
  corrupts the JSON.
- Read the whole error before running `--help`; it names the missing flag with
  the current ID filled in.
- Pass long or multi-line text with `--message-file <path>` or
  `--prompt-file <path>` (`-` reads stdin). Inside double quotes the shell runs
  backticks and `$(...)` before bb sees the text.
- Prefer non-interactive commands. Pass `--yes` only for a destructive command
  the user confirmed.
- Inspect real status, logs, and diffs instead of assuming.
- Examples use POSIX shell syntax. In PowerShell, read an environment variable
  as `$env:NAME`, separate commands with `;`, and continue a line with a
  backtick.

## Working with threads

- Give each task one clear owner. Spawn independent tasks separately.
- Give spawned threads clear prompts: objective, constraints, expected
  deliverable, validation to perform, and what to report back.
- Let threads work. Do not poll with shell sleeps or repeated log and status
  reads; use `bb thread wait <thread-id>` when you must block.
- `bb thread tell` steers the active turn by default. Steer for a wrong
  direction, a hard stop, or a critical clarification; use `--mode queue` for
  non-urgent follow-ups. A send reported as `queued` is not a failure; do not
  resend it.
- For a review or fix pipeline, spawn the follow-up with
  `--environment <environment-id>` from `bb thread show <thread-id> --json` so
  it sees the same files.
- To check whether a thread ever received a message, search
  `bb thread log <thread-id> --all`, not the default page.
- `status` is the run state, so an archived thread can read `idle`. Check
  `thread.archivedAt` in `bb thread show <thread-id> --json` before treating a
  thread as live.
- Before retrying a failed thread, read `bb thread show <thread-id> --json` and
  `bb thread log <thread-id>`. Treat a thread the user stopped as intentionally
  stopped unless they ask you to continue.

## Safety

- Never move the server, abandon a move, or unlock an old copy without the
  user's explicit confirmation in this conversation. Run
  `bb server move --to <machine> --check`, show them the checklist, and run it
  without `--check` only after they confirm. Never pass `--yes` for them.
- Only the owner can change a machine's permission limit, in the app. Read it
  with `bb machine show <id-or-name> --json` and ask the user to change it.
- Keep secrets out of command arguments, logs, and transcripts.
  `bb machine env set` reads its value from stdin, and enrollment bundles travel
  through a private file or environment variable. Machine and environment inputs
  are persisted and readable, so they never carry credentials. Do not print
  `serverHeaders`.
- Install a registry skill or plugin by its ID. Never infer an install source
  from a display name.

## Common checks

```sh
bb project list --json
bb machine list --json
bb environment providers --json
bb provider list --environment "$BB_ENVIRONMENT_ID" --json
bb thread show "$BB_THREAD_ID" --json
bb thread context --self --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.

Files in this skill

  • SKILL.md2.9 KB
  • references/app-settings.md4.3 KB
  • references/command-index.md4.8 KB
  • references/configuration.md3.7 KB
  • references/failure-recovery.md1 KB
  • references/plugins.md12.9 KB
  • references/theme-commands.md3.4 KB
  • references/theming.md11.7 KB
  • references/thread-creation.md10.7 KB
  • references/thread-operation.md7.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.