Skip to content
Agent Orchestration
Skill

/prompt-library

Search prompt history and manage starred reusable prompts in BB.

BOOST
From plugin
bb
4.2k26 skills
Install
$ npx -y skills add get-bb/bb --skill prompt-library --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/prompt-library

Context preview

The summary Claude sees to decide when to auto-load this skill.

Search prompt history and manage starred reusable prompts in BB.

SKILL.md

prompt-library.SKILL.md
name: prompt-library
description: Search prompt history and manage starred reusable prompts in BB.

Prompt library

Open **+ → Prompts…** or press **Ctrl+R** in a composer. Search fuzzy-matches starred prompts and recent history. Select **Thread**, **Project**, or **All**; the scope is remembered per composer kind on this device. The new-thread composer offers Project and All. Arrow keys select, Tab switches scope, Enter inserts, and Escape closes. Desktop shows a full Markdown preview beside the list; narrow layouts open the preview when a row is tapped, with Back and Insert.

Click the star or press Cmd/Ctrl+S to star or unstar the selected prompt. **Star current draft** saves the draft. Starred prompts keep text and mentions, deduplicate by text, persist across reloads, and sort by most recent use. History attachments are retained when restoring into an empty composer. Starred prompts omit attachments. A nonempty composer receives text and mentions at the kept cursor. Inserting never sends a message.

The plugin loads the newest 1000 prompts, fetches only newer prompts on later searches, and loads older pages only when a search finds fewer than 30 matches. It fuzzy-matches the loaded prompts in scope, returning up to 20 starred and 30 recent results. Without a query, starred prompts come first, then recent ones. A query returns one ranked list: prompts that start with the query, then fuzzy-match score, with starred and then newer prompts breaking ties. A starred prompt appears once, as its starred row. History contains user prompts; core records them without agent-only input. Prompts stay searchable until the server restarts, even if their thread is deleted.

CLI and SDK

  • `bb prompts search [query...] [--project ID | --thread ID] [--json]`
  • `bb prompts list [--json]`
  • `bb prompts star <text...> [--json]`
  • `bb prompts unstar <id> [--json]`

Use `bb.sdk.plugins.callRpc({ pluginId: "bb--prompt-library", method, input })`: `search` takes `{ query, scope: "thread" | "project" | "global", projectId, threadId }` with nullable IDs and returns `{ prompts }`, each row with `kind: "starred" | "recent"`; `star` takes `{ prompt: { text, mentions } }`; `unstar` and `markUsed` take `{ id }`.

The bundled plugin is disabled by default. Enable it in Settings → Plugins or with `bb plugin enable bb--prompt-library`. Its Search prompts shortcut is rebindable in Keyboard Settings. Plugins can page through the same core history with `bb.sdk.experimental_promptHistory.list({ cursor, limit })`.

Read more
Ships withbb

bb is an agentic IDE that builds itself. It can control, customize, and automate itself, laying the groundwork for your own software factory. Every surface — the desktop app, web app, CLI, and HTTP API — is a first-class way to drive bb.

Get the whole plugin
Stats
4,174
Stars
608
Forks
Active
Maintenance
TypeScript
Language
MIT
License
5m ago
Last commit
7mo ago
Created
23h ago
Added

Repo: get-bb/bb

Other skills on bb.