Lays out a Boring UI app using AppShell with screen/workspace/chat layouts, nav items, ListDetail, headers, phone tab bar, and agent placement. Use before writing layout code or PiChat props.
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.
The app shell is a registry block (app-shell), installed with boring-ui-blocks (skill add-blocks) and never edited. The app shapes it through the props below. The feature map of what exists is features/README.md; the full prop reference is registry/README.md.
AppShell takes layout (registry/app-shell/app-shell.tsx):
layout | The screens are | Left pane starts | Pick it when |
|---|---|---|---|
screen | one page per nav item | open (wide sidebar) | a few independent screens |
workspace | a ListDetail (list pane, detail pane) | collapsed to the icon rail | records to browse and open: the default for a data app |
chat | the one nav item renders AgentWorkspace | icon rail | the page is the conversation (no agent prop: the shell throws) |
compactNav="sheet" drops the bar and opens the sidebar as a sheet from the header. Wide: the shadcn sidebar; rail="hover" keeps it at icon width and reveals labels on hover.NavItem { id, label, icon, render, badge?, sidebar? } (nav.tsx). The app's router owns the URL: pass route={{ id, onChange }}. Every screen stays mounted, so keep state out of unmount.useScreenHeader({ title, subtitle?, back?, actions?, leading?, dense? }) inside the screen (header.tsx).ListDetail { list, detail, onBack, collapsible?, collapsed?, railWidth?, title? } (list-detail.tsx): both panes wide; one at a time on a phone, the detail pushed as one history entry. Keep selection in the URL so a deep link opens the detail.account={{ name, email?, menu, signOut?, theme? }} (account.tsx); theme: { value, onChange } adds the dark-mode switch. locale (fr | en) sets the shell's own words.mcp={{ address: location.origin + "/mcp", appName, signIn? }}: every app with an MCP route gives it; the header then shows the plug that explains how to connect Claude or ChatGPT (mcp-setup). Do not portal your own MCP button into the header.useScreenActive() (true on the screen on show, and outside a shell; agent-context.ts). Never read location.hash for it: the first screen is on show when the address has no hash.useAgentContext({ name, params }) (agent-context.ts); it travels with each message as context.| Placement | Component | Pick it when |
|---|---|---|
| Shell layer (default) | AppShell agent={spec} | the app has screens and the agent helps from any of them. Phone: bottom drawer (peek, half, full); wide: a right panel, floatable and dockable |
| Full page | AppShell layout="chat" + AgentWorkspace (item pi-app) | the agent is the product |
| Embedded screen | AgentWorkspace layout="embedded" in a nav item | one screen is a conversation with files and a Library; its bar controls go into the screen header |
| Placed | PlacedAgentWorkspace (item placed-agent) | the same conversation lives in a tab and collapses beside the app |
| Ambient bar | FloatingComposer (item app-shell) | an existing website or console, no shell: a floating bar over it |
| Bare chat | PiChat (item pi-chat) | you lay the page out yourself |
AppShell improve={spec} adds a second agent (« Améliorer l'app ») to the account menu; omit it unless the host has such an agent. A launch link opens the layer: agentLink({ agent, open, input }) builds it, AppShell agentLink={false} turns reading it off.
AgentSpec { controller, label?, icon?, chatProps?, voice?, feedback?, headerActions? } (agent-layer.tsx). The controller comes from useRemoteChat({ conversationId, identity, endpoint, fetch }) (use-remote-chat.ts); the agent's server side is skill build-agent-app. Everything else is chatProps, the props of PiChat (pi-chat.tsx):
locale, labels, icons, avatar, headerActions, emptyState, suggestions, messageStyle. Every visual value is a theme token; a block never takes a literal.conversations: useConversations({ endpoint, fetch, activeId, onSelect }) shows History with New, rename, archive, fork.presentation="natural" hides tool steps and reasoning.toolRenderers (by tool name), renderTool, cards={{ question, approval, subagent }}, artifacts. Wire all plug-ins at once with withChatPlugins(props).slash, mentions, attachments, model, effort, voiceMessage. Prop table: registry/README.md.MentionsConfig (config.ts) is generic: search(query, signal) returns { path, kind?, label? }, and path can be any stable id token (meal-12, a member id). Install pi-chat-mentions, then give:
Picker: MentionPicker, listLabel and icon for the menu, renderOption(item, query) for each row;label(id) for the chip, renderSent(id) for the sent message (render is the older hook);generation to make an open picker search again when the catalog changes.The message carries the token as text (@id). createMentionResolver (@hachej/boring-agent/mentions) expands workspace files only; the host resolves any other id itself, in an agent tool that looks it up or a Pi extension. Model the client side on useSharedChat (registry/shared-chat/use-shared-chat.tsx), which does it for members.
useAgentLayer().preview({ title, content }) draws content under the pane's header (title, back, close). A content that has its own header (an editable file in the pi-app FileViewer, with its mode toggle and save state) must not sit under a second one: pass frame: false and wire the pane's close and back into it with usePaneFrame() (feature layer-pane-bare).
function Memoire({ path, provider }) {
const { close, back, backLabel } = usePaneFrame();
return <FileViewer path={path} locator={provider.locate(path)} onClose={close} onBack={back} backLabel={backLabel}
options={{ client: provider, identity: provider.identity, kinds: [markdownKind] }} />;
}
layer.preview({ title: 'Mémoire du dossier', frame: false, content: <Memoire path={path} provider={provider} /> });
back is undefined when there is nothing under the entry to go back to.
boring-ui-blocks only; configure through props and tokens.npm run app-shell:journey, app-shell:journey:workspace, app-shell:journey:placed (examples in examples/app-shell).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/add-blocksFind, install, update, check and theme Boring UI registry blocks (shadcn items such as pi-chat, app-shell, pi-workspace, pi-app, app-shell, viewers, file-tree, documents, feedback, windows) with the boring-ui-blocks command. Use when asked to "add a chat/agent block", "install pi-app", "upgrade/update the Boring blocks", "boring-ui-blocks check fails", "blocks edited", "restyle/rebrand the agent UI", "change the chat labels/icons/actions", "dark mode for the chat", or when tempted to edit a file under src/components/pi-*./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./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:app-layout-and-agentfrom 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