brsbl/bb-plugins/desktop-apps

Claude Code and agent skill by brsbl/bb-plugins

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Make a bb plugin open in the Desktop plugin's Windows XP windows, Start menu, and Quick Launch. Use when a plugin author wants their panel, tool, or controls to be a Desktop app, or asks to make a plugin compatible with Desktop.

Install

npx vskill@latest install brsbl/bb-plugins/desktop-apps

SKILL.md

The same SKILL.md was published earlier as brsbl/bb-plugins/desktop-apps.

Desktop apps

The Desktop plugin turns bb's new-thread page into Windows XP. Any plugin can opt in so its UI opens as an XP window on that desktop:

  • The app appears under Apps in the Start menu and can be pinned to Quick Launch.
  • Opening it creates a draggable, resizable, minimizable XP window with a taskbar button.
  • The plugin renders its own React UI inside the window. Its SDK hooks (useRpc, useSettings, sidebar threads, and so on) keep working, because the UI is portaled from one of the plugin's own slots.

Opting in is optional and safe: when Desktop is not installed, turned off, or on a phone-sized screen, nothing renders and the plugin behaves as before.

Steps

  1. Copy desktop-app.tsx into the plugin (for example desktop-app.tsx next to app.tsx). It has no dependencies beyond React.
  2. Render DesktopApp from an experimental_appOverlay slot. The host draws no chrome around an overlay and mounts it once per bb window, so nothing shows when Desktop is absent. If your plugin already registers an overlay, render DesktopApp inside it instead.
tsx
import { definePluginApp } from "@get-bb/plugin-sdk/app";
import { DesktopApp } from "./desktop-app";
import { MyPanel } from "./my-panel";
export default definePluginApp((app) => {
app.slots.experimental_appOverlay({
id: "desktop-app",
component: () => (
<DesktopApp
app={{
pluginId: "my-plugin",
id: "main",
title: "My plugin",
description: "One line for the Start menu",
icon: "/api/v1/plugins/my-plugin/assets/icon.svg",
width: 420,
height: 520,
}}
>
{() => <MyPanel />}
</DesktopApp>
),
});
});
  1. Build the plugin and install it in bb, for example bb plugin install "path:$PWD" --yes from the plugin's directory, then reload it after each change. The app appears in Start › Apps once the plugin is loaded.
  1. Optional: open the window from elsewhere in your plugin, falling back to your normal UI when Desktop is not active.
tsx
import { openInDesktop } from "./desktop-app";
if (!openInDesktop("my-plugin", "main")) {
openMyUsualPanel();
}

Fields

FieldRequiredMeaning
pluginIdYesYour plugin's id (letters, digits, -, _). Use the same value every time; it keys saved windows and Quick Launch pins.
idYesThe app's id within your plugin. Register several apps with different ids if you have several tools.
titleYesWindow title, taskbar button, Start menu, and Quick Launch label (80 characters max).
descriptionNoOne line, shown as the app's tooltip in the Start menu's Apps list.
iconNoAn image URL: a same-origin path such as your plugin's asset route, an https: URL, or a data:image/ URI. Without one, Desktop shows a generic app icon.
width, heightNoThe window's first size in CSS pixels (240 to 2000).

children is a function that receives the window's id and returns the UI to render in that window. It renders once per open window of the app (Desktop opens at most one window per app).

Design

Your UI sits inside an XP window body. Keep bb's own components and tokens for the content; Desktop supplies the window chrome. For icons, follow the icon rules in Desktop's docs/DESIGN.md if you want the app to feel native: an angled object lit from the upper left, a colored outline, and room for a soft drop shadow.

Sidebar footer panels need nothing

If your plugin already has a sidebar footer panel (experimental_sidebarFooter with kind: "disclosure"), Desktop shows that panel as an XP window when the sidebar is collapsed, with no changes on your side. Use a Desktop app when you want a real window with a taskbar button and a Start menu entry.

Contract

  • Desktop publishes window.bbDesktopApps with version: 1 and dispatches a bb-desktop-apps:ready event when it loads, reloads, or turns off (when it turns off, window.bbDesktopApps is gone). The helper re-reads the registry on that event, so load order does not matter and a plugin lets go when Desktop turns off.
  • registerApp returns an unregister function; the helper calls it on unmount. Registering the same pluginId/id again replaces the earlier registration.
  • Invalid registrations are ignored with a console warning.
  • The registry lives in the browser tab. There is no CLI for it, because the apps exist only while their plugins are loaded in a bb window.
  • window.bbDesktopApps stays version 1 for as long as Desktop exists, so copied helpers keep working. A breaking change would be published alongside it under a new name rather than by changing version on this object.
  • Plugins that followed an earlier version of this skill and render DesktopApp from a homepage section keep working: Desktop hides that section.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/brsbl/bb-plugins/desktop-apps/badge)](https://verified-skill.com/skills/brsbl/bb-plugins/desktop-apps)

Something wrong with this skill or its page? Tell us.