Skip to content

Replace multi-file global skill syncing with dynamic CLI-served skills #2985

Description

@smsunarto

The workflow

  1. A user updates the bb CLI or connects an agent running on another machine.
  2. The agent reads bb usage guidelines from its installed global skills.
  3. The agent needs accurate, up-to-date CLI commands, flags, and workflows for the currently installed bb version.

What happens today

Today, bb copies static skill trees directly to local directories:

  • bb skill install-cli-skills copies directories into ~/.agents/skills and ~/.claude/skills on each machine (code permalink).
  • The server tracks skill tree directory hashes and flags machines as missing, installed, or outdated (code permalink).
  • The host daemon extracts and synchronizes full file trees across hosts (code permalink).

When the bb CLI updates without re-running bb skill install-cli-skills, the files on disk drift out of sync. Agents read stale references, invoke deprecated flags, and fail tasks.

What you would expect

Adopt the pattern used by agent-browser:

  1. A single static entrypoint skill stub:
    Install only one discovery stub into agent skill directories (e.g., ~/.agents/skills/bb/SKILL.md). This file never needs updates between releases.

  2. Dynamic CLI-served skills:
    The stub instructs the agent to fetch documentation dynamically from the CLI:

    bb skills list             # list available skill topics
    bb skills get core         # load core workflow and conventions
    bb skills get threads      # load thread management instructions
    bb skills get plugins      # load plugin development workflows
  3. Guaranteed version alignment:
    The bb binary embeds and prints the exact skill definitions for its current version. Updating the CLI automatically updates all instructions without touching agent skill directories.

  4. Lower context footprint:
    Agents load only the specific sub-skill topics they need on demand.

Context and alternatives

  • Current workaround: Users must remember to run bb skill install-cli-skills across every enrolled machine after each update.
  • Precedent: bb guide [chapter] already renders compiled templates directly from the CLI binary (code permalink). Aligning bb skill with this architecture removes cross-machine sync machinery and prevents version drift entirely.
  • Reference: See agent-browser/skills/agent-browser/SKILL.md.
  • Origin thread: thr_yacwqkyeer

AGENT GENERATED

Activity

  1. added
    cli
    host
    on Sep 3, 2026
  2. bb-slop-cop commented on Sep 3, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: Feature · Priority: Medium · Effort: High

    Labels: cli, host

    No pull request: the issue requests new behavior, so this rule skips report and fix work.

  3. adamkrawczyk commented on Sep 22, 2026

    @adamkrawczyk

    Saw your note on bb's skill install flow copying static trees into ~/.agents/skills and ~/.claude/skills per machine. Noticed bb also carries both CLAUDE.md and AGENTS.md — could be a candidate for one cross-agent config source instead of maintaining both by hand.

    I work on LoopSkill (app.loopskill.io), a federated skill/agent-config registry — versioned pulls instead of copy-on-install, so an agent always resolves the current bb version's skill tree rather than a stale local copy. Not pitching a migration, just curious whether that install-time staleness problem (point 3 in your workflow) is something you've hit in practice. Happy to send a quick diff sketch if useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clihost

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions