/bb-plugin-authoring
Create or change BB plugins and Plugin SDK extensions, including CLI commands, agent tools, providers, and UI surfaces.
Claude Code
$ npx -y skills add get-bb/bb --skill bb-plugin-authoring --agent claude-code
Codex
$ npx skills add get-bb/bb --skill bb-plugin-authoring -a codex -y
Cursor
$ npx skills add get-bb/bb --skill bb-plugin-authoring -a cursor -y
Gemini CLI
$ npx skills add get-bb/bb --skill bb-plugin-authoring -a gemini-cli -y
GitHub Copilot
$ npx skills add get-bb/bb --skill bb-plugin-authoring -a github-copilot -y
OpenCode
$ npx skills add get-bb/bb --skill bb-plugin-authoring -a opencode -y
Windsurf
$ npx skills add get-bb/bb --skill bb-plugin-authoring -a windsurf -y
SKILL.md
bb-plugin-authoring.SKILL.mdname: bb-plugin-authoring
description: "Create or change BB plugins and Plugin SDK extensions, including CLI commands, agent tools, providers, and UI surfaces."
Author BB plugins
A BB plugin is a TypeScript package that can add server behavior, agent capabilities, host-rendered UI, or a frontend bundle.
Use the current SDK types and repository source as the contract. This skill routes to detailed references, but the installed BB version decides the exact API.
Implement and verify
Inspect the affected package and current SDK declarations to select backend, frontend, or both. Build the plugin and verify the affected contracts and user workflow. Install or reload when a live check is needed for the requested work.
To find where a plugin can extend the app, open the Plugin Guide in bb or at https://getbb.app/plugin-guide.
Use bb plugin new <name> for a new plugin. The scaffold includes frontend files. Remove `bb.app` and those files when the plugin is headless.
Every new public Plugin SDK surface starts with an experimental\_ prefix and an entry in docs/api_to_audit.md. Add its Plugin Guide card and API inventory in the same change.
Read only the relevant reference
Start, package, and release
- Read references/quickstart.md for the first plugin, manifest fields,
branding, plugin ids, builds, installs, and dependencies.
- Read references/distribution.md for exact API lookup, updates, Git or npm
release, multi-plugin repositories, custom marketplaces, and store text.
Backend
- Read references/backend-foundation.md for the factory (and which reference
covers each `bb.*` member), logging, settings, storage, server information, and host entries.
- Read references/backend-sdk.md for the `bb.sdk` area map, threads, plugin
metadata, files, terminals, attachments, and calls to another plugin's RPC.
- Read references/backend-api-index.md to check every public backend, host,
AI-service, and test export.
- Read references/backend-events.md for lifecycle events, the dispatch hook,
environment providers, HTTP, RPC, realtime, background services, and schedules.
- Read references/backend-machines.md for machine providers, core project source
setup, enrollment/bootstrap helpers, and server access.
- Read references/backend-cli-agents.md for CLI commands, input forms, agent
tools, agent configuration, and helper AI services.
- Read references/providers.md only when the plugin registers an agent
provider or contributes provider environment variables. Its contract lives in docs/provider-plugin-api.md and docs/provider-bridge-protocol.md in the bb repository.
- Read references/provider-bridge-api-index.md to check every public provider
bridge, bridge-test, and ACP export.
- Read references/backend-ui-lifecycle.md for host-rendered UI, status, cleanup,
and reload behavior.
Frontend
- Read references/frontend-registration.md for definePluginApp, thread header
and Browser toolbar controls, and sidebar replacement.
- Read references/frontend-thread-header-row.md to add a full-width row under
the thread header (`experimental_threadHeaderRow`), such as a tab strip, or to replace the thread title in the header (`experimental_threadHeaderTitle`).
- Read references/frontend-sidebar-navigation.md for navigation providers
(rail or list placement) and controls beside the sidebar toggle.
- Read references/frontend-thread-row-metadata.md to add a badge to every thread
row (`experimental_threadRowMetadata`) or draw those badges on your own rows.
- Read references/frontend-panel-tabs.md to list the side panel's open tabs,
bb's included, and select or close them.
- Read references/frontend-thread-context-card.md to add a row or section to
the thread context card beside each thread's transcript.
- Read references/frontend-collapsible-stack-card.md to show a collapsible
card above a thread's composer (`experimental_CollapsibleStackCard`) from your provider's extension state.
- Read references/frontend-pull-requests.md to show bb's pull request badge
(`experimental_ThreadRowMetadata`) or a thread's GitHub pull request on a row, or to migrate off `experimental_useSidebarThreadPullRequest`.
- Read references/git-reads.md to read an environment's git status, changed
files or diffs, or to migrate off the retired `environments.status` and `diff*` SDK methods.
- Read references/frontend-api-index.md to check every public frontend
runtime value and type export.
- Read references/frontend-core-slots.md for trusted content scripts, homepage,
settings, navigation, thread panels, environment and machine provider inputs, interactions, sidebar actions, file openers, the provider directory, and tab API migration.
- Read references/frontend-renderer-slots.md for source, diff, message,
timeline, palette, and provider-icon renderers or actions.
- Read references/frontend-components.md for ThreadChat, provider controls,
source and diff viewers, links, panels, the new-thread composer, and shared icons.
- Read references/frontend-hooks-and-ui.md for hooks, composer customization,
vendored components, runtime shims, crash isolation, and styling.
Testing
- Read references/frontend-testing-api-index.md to check every frontend test
runtime value and type export.
- Read references/testing.md before you add tests or run a live plugin loop,
and for reference plugins to copy from.
Contract rules
- Parse freeform input at the boundary and pass typed values internally.
- Declare only manifest fields and settings that the plugin implements.
- Keep secret settings on the server.
- Treat frontend parameters and persisted values as untrusted input.
- Return bounded CLI and agent-tool output.
- Document plugin commands, settings, and operating constraints in the plugin's
own `skills/` directory. The core CLI skill owns generic plugin management, not individual plugin behavior.
- Dispose every service, schedule, listener, content scrip
Read more
name: bb-plugin-authoring description: "Create or change BB plugins and Plugin SDK extensions, including CLI commands, agent tools, providers, and UI surfaces."
Author BB plugins
A BB plugin is a TypeScript package that can add server behavior, agent capabilities, host-rendered UI, or a frontend bundle.
Use the current SDK types and repository source as the contract. This skill routes to detailed references, but the installed BB version decides the exact API.
Implement and verify
Inspect the affected package and current SDK declarations to select backend, frontend, or both. Build the plugin and verify the affected contracts and user workflow. Install or reload when a live check is needed for the requested work.
To find where a plugin can extend the app, open the Plugin Guide in bb or at https://getbb.app/plugin-guide.
Use bb plugin new <name> for a new plugin. The scaffold includes frontend files. Remove `bb.app` and those files when the plugin is headless.
Every new public Plugin SDK surface starts with an experimental\_ prefix and an entry in docs/api_to_audit.md. Add its Plugin Guide card and API inventory in the same change.
Read only the relevant reference
Start, package, and release
- Read references/quickstart.md for the first plugin, manifest fields,
branding, plugin ids, builds, installs, and dependencies.
- Read references/distribution.md for exact API lookup, updates, Git or npm
release, multi-plugin repositories, custom marketplaces, and store text.
Backend
- Read references/backend-foundation.md for the factory (and which reference
covers each `bb.*` member), logging, settings, storage, server information, and host entries.
- Read references/backend-sdk.md for the `bb.sdk` area map, threads, plugin
metadata, files, terminals, attachments, and calls to another plugin's RPC.
- Read references/backend-api-index.md to check every public backend, host,
AI-service, and test export.
- Read references/backend-events.md for lifecycle events, the dispatch hook,
environment providers, HTTP, RPC, realtime, background services, and schedules.
- Read references/backend-machines.md for machine providers, core project source
setup, enrollment/bootstrap helpers, and server access.
- Read references/backend-cli-agents.md for CLI commands, input forms, agent
tools, agent configuration, and helper AI services.
- Read references/providers.md only when the plugin registers an agent
provider or contributes provider environment variables. Its contract lives in docs/provider-plugin-api.md and docs/provider-bridge-protocol.md in the bb repository.
- Read references/provider-bridge-api-index.md to check every public provider
bridge, bridge-test, and ACP export.
- Read references/backend-ui-lifecycle.md for host-rendered UI, status, cleanup,
and reload behavior.
Frontend
- Read references/frontend-registration.md for definePluginApp, thread header
and Browser toolbar controls, and sidebar replacement.
- Read references/frontend-thread-header-row.md to add a full-width row under
the thread header (`experimental_threadHeaderRow`), such as a tab strip, or to replace the thread title in the header (`experimental_threadHeaderTitle`).
- Read references/frontend-sidebar-navigation.md for navigation providers
(rail or list placement) and controls beside the sidebar toggle.
- Read references/frontend-thread-row-metadata.md to add a badge to every thread
row (`experimental_threadRowMetadata`) or draw those badges on your own rows.
- Read references/frontend-panel-tabs.md to list the side panel's open tabs,
bb's included, and select or close them.
- Read references/frontend-thread-context-card.md to add a row or section to
the thread context card beside each thread's transcript.
- Read references/frontend-collapsible-stack-card.md to show a collapsible
card above a thread's composer (`experimental_CollapsibleStackCard`) from your provider's extension state.
- Read references/frontend-pull-requests.md to show bb's pull request badge
(`experimental_ThreadRowMetadata`) or a thread's GitHub pull request on a row, or to migrate off `experimental_useSidebarThreadPullRequest`.
- Read references/git-reads.md to read an environment's git status, changed
files or diffs, or to migrate off the retired `environments.status` and `diff*` SDK methods.
- Read references/frontend-api-index.md to check every public frontend
runtime value and type export.
- Read references/frontend-core-slots.md for trusted content scripts, homepage,
settings, navigation, thread panels, environment and machine provider inputs, interactions, sidebar actions, file openers, the provider directory, and tab API migration.
- Read references/frontend-renderer-slots.md for source, diff, message,
timeline, palette, and provider-icon renderers or actions.
- Read references/frontend-components.md for ThreadChat, provider controls,
source and diff viewers, links, panels, the new-thread composer, and shared icons.
- Read references/frontend-hooks-and-ui.md for hooks, composer customization,
vendored components, runtime shims, crash isolation, and styling.
Testing
- Read references/frontend-testing-api-index.md to check every frontend test
runtime value and type export.
- Read references/testing.md before you add tests or run a live plugin loop,
and for reference plugins to copy from.
Contract rules
- Parse freeform input at the boundary and pass typed values internally.
- Declare only manifest fields and settings that the plugin implements.
- Keep secret settings on the server.
- Treat frontend parameters and persisted values as untrusted input.
- Return bounded CLI and agent-tool output.
- Document plugin commands, settings, and operating constraints in the plugin's
own `skills/` directory. The core CLI skill owns generic plugin management, not individual plugin behavior.
- Dispose every service, schedule, listener, content scrip
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.
Other skills on bb.
More skills from other plugins.
agentmail
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
adr-create
Create a new Architecture Decision Record with sequential numbering and AgentDB registration
Questions about bb-plugin-authoring.
- Which coding agents can use bb-plugin-authoring?
- bb-plugin-authoring installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

