Manages Boring UI registry blocks (shadcn items like pi-chat, app-shell, pi-workspace, pi-app) via the boring-ui-blocks command. Handles finding, installing, updating, checking, and theming blocks. Use when adding agent UI components, upgrading blocks, or restyling chat interfaces.
Ships in boring-ui-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Blocks are shadcn registry items: React source the shadcn CLI copies into the app. They are generated copies. The app installs them, configures them through props and theme tokens, and updates them with one command. It never edits them.
Prerequisites: React 19, Tailwind v4, a components.json with a Base UI style (only base-nova is supported), and @hachej/boring-ui-kit installed (the boring-ui-blocks command is its bin). A new app starts with npx [email protected] init -t vite -b base -p nova -n app -y --no-monorepo.
Blocks import the app's shadcn components through its ui alias (components.json) and use its tokens; no block lists them. Install them once, before any block (what the app needs):
npx boring-ui-blocks add alert attachment avatar badge bubble button card checkbox collapsible dialog drawer dropdown-menu empty input input-group item label message message-scroller native-select popover progress scroll-area separator sidebar spinner switch table textarea toggle toggle-group tooltip trace
Run every command in the directory that holds components.json, or pass --cwd <dir>.
The registry for version <v> is https://cdn.jsdelivr.net/npm/@hachej/boring-ui-kit@<v>/r/. The installed kit ships the same items in node_modules/@hachej/boring-ui-kit/r/. List them with their descriptions:
node -e "const r=JSON.parse(require('fs').readFileSync('node_modules/@hachej/boring-ui-kit/r/registry.json','utf8'));for(const i of r.items)console.log(i.name.padEnd(18),(i.description??'').slice(0,90))"
Pick by placement (full table):
| Need | Block |
|---|---|
| The conversation only, in your own layout | pi-chat |
| A floating bar over an existing site | app-shell (FloatingComposer) |
| Chat plus a resizable artifact panel | pi-workspace (brings pi-chat) |
| A whole agent page: sessions, chat, viewers | pi-app (brings pi-chat, pi-workspace, viewers) |
| One agent above any app, drawer on phones | app-shell (brings pi-chat, feedback, sidebar, avatar, drawer, dropdown-menu) |
| Chat and files in resizable docks | dock |
| The Library and file history alone | file-tree, documents, version-history |
| Viewers for agent artifacts | viewers, markdown-editor, html-viewer, mockup-viewer, diagram-viewer, maquette-viewer, record-viewer, board-viewer, task-list-viewer |
| User feedback (point, dictate, send) | feedback, feedback-preview |
| A "choose a file" Button, or a dashed drop strip, with type and size refusals | file-pick |
| Model and key picker | provider-setup |
| The header icon on how to connect a person's assistant (Claude, ChatGPT) to the app over MCP | AppShell mcp={{ address, appName }} (app-shell brings mcp-setup); without AppShell, mcp-setup |
| Floating utility windows | windows |
npx boring-ui-blocks add https://cdn.jsdelivr.net/npm/@hachej/boring-ui-kit@<v>/r/pi-app.json https://cdn.jsdelivr.net/npm/@hachej/boring-ui-kit@<v>/r/pi-app-kinds.json
pi-app draws only the kinds passed in artifactKinds; pi-app-kinds installs the viewers and defaultKinds({ locale }), the default list to pass.
Use the same <v> as the installed @hachej/boring-ui-kit (npm ls @hachej/boring-ui-kit).
add runs npx -y [email protected] add <args> --overwrite --yes with stdin closed (it never prompts), keeps and lists every existing file whose content differs (exit 1) unless you pass --overwrite, then records every file under components/ui in SHADCN-GENERATED.json. Use it for plain shadcn components too (npx boring-ui-blocks add dialog).
No block installs tokens. If the app has no shadcn tokens yet, add .../r/theme.json once. The theme keeps tokens the app already defines.
The app setup installs tooltip: wrap the app in TooltipProvider from @/components/ui/tooltip.
After a plain npx shadcn add, run npx boring-ui-blocks manifest to record the files.
Files land in src/components/<item>/ (one folder per item) and src/components/ui/.
Change a block only through these extension points (source):
| To change | Use |
|---|---|
| Colours, radius, fonts, dark mode | The theme tokens in the app's CSS. --shell and --overlay are the kit's own tokens |
| Any word, or French | labels (partial) and locale="fr" |
| Icons, header, panel, message or row actions | icons, headerActions, panelActions, messageActions, conversations.rowActions |
| Your own artifact type and renderer | artifacts.kinds on PiChat, artifactKinds on AgentWorkspace ([myKind, ...defaultKinds()] keeps the default viewers) |
| A viewer for a file kind | viewers on AgentWorkspace |
| Something under or inside the composer | belowComposer, tools |
| How a tool result renders | renderTool, renderEntry, groupTool, replyFooter |
Example: rebrand words and add a header action.
<AgentWorkspace
{...props}
labels={{ sessionsTitle: 'Notes' }}
chat={{ labels: { title: 'Notes assistant', placeholder: 'Ask about your notes' },
headerActions: [{ id: 'help', label: 'Help', icon: LifeBuoyIcon, onSelect: openHelp }] }}
/>
Theme rules (BORING-UI-1):
--background, --foreground, --primary, --muted, --border, --ring, --radius, …) in :root and .dark of the app's CSS.--boring-editor-* or --boring-html-*, or edit copied shadcn components.bg-primary, rounded-md, text-sm), never literals (#hex, bg-red-500, rounded-[7px]) or dark: variants.A change no extension point covers is a feature request for this repository, not a local edit.
Check first, because update overwrites edited copies:
npx boring-ui-blocks check --design src
npm i @hachej/boring-ui-kit@<new> @hachej/boring-agent@<new> @hachej/boring-files@<new>
npx boring-ui-blocks update --dry-run # prints the shadcn command
npx boring-ui-blocks update
update reinstalls every installed block from the installed kit's version (--version <v> or --registry <url> to choose), runs the CLI with --overwrite --yes, rewrites the manifest and keeps your package.json version specifiers. Read the top of MIGRATING.md for the target version before upgrading.
Each violation is one line <check> <rule> <file>[:line:col] <detail>. Exit 1 means violations, 2 a usage or configuration error.
| Line starts with | Meaning | Fix |
|---|---|---|
blocks edited | A block file differs from the installed kit | Move the change to an extension point, then npx boring-ui-blocks update |
design color, design arbitrary-value, design border-width, design font, design literal-value, design dark | App code uses a literal | Use a token utility or set the token in the theme |
ui edited, ui unrecorded, ui missing | A file under components/ui changed outside the CLI | Re-add it with npx boring-ui-blocks add <name>, or run manifest after a deliberate npx shadcn add |
Never add an allowlist or change the rule; fix the app.
npx boring-ui-blocks check --design src prints ok @hachej/boring-ui-kit@<v>: ... and exits 0.npx tsc -p tsconfig.app.json --noEmit and the app build pass.git diff src/components after an update shows only kit changes, never local edits.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
boring-ui, shadcn-blocks, agent-ui, component-registry, ui-theming
6 skills in this plugin
/agent-capabilitiesGive a Boring UI in-app agent capabilities and gate them safely - custom tools, workspace file access (file guard, present), Approve/Deny approvals, ask_user questions, sub-agents (delegate), schedules, sandboxes and self-evolving tools. Use when asked to "add a tool to the agent", "let the agent edit files", "require approval before X", "ask the user a question", "add a sub-agent/delegate", "schedule a follow-up/reminder", "dry-run/sandbox the agent", "let the agent write its own tools", or when choosing which tools to gate with requireApproval or createApprovalExtension./app-layout-and-agentLay out a Boring UI app and place its agent. Use for AppShell (layouts screen, workspace, chat), nav items, ListDetail, screen headers, the phone tab bar or sheet, the collapsed left pane, where the agent lives (shell layer, full page, embedded screen, ambient bar, placed), and for customising the chat from the app side (AgentSpec, chatProps, labels, conversations, mentions beyond files, tool cards, natural presentation). Pick this before writing any layout code or any PiChat prop./boring-design-systemHow every Boring app gets its look: theme tokens plus the app's own components built from kit parts, checked by one command. Use for any UI work in a Boring app (a new screen or component, restyling, rebranding, dark mode, phone layout, "make it look like X") and whenever `boring-ui-blocks design` reports a design-* or kit rule. Takes precedence over generic design skills on fonts, colours, icons and libraries./boring-ui-kit:add-blocksfrom boring-ui-kit
boring-ui-kit@boring-stack is listed by hachej/boring-stack — review the source before installing
npx claudepluginhub hachej/boring-stack --plugin boring-ui-kitOther plugins' skills for the same job