UI behavior guides for your coding agent

Each guide spells out how a piece of UI should behave, down to the details a short prompt misses. Your agent builds it into your project with your own components and styling.

Behaviors the guides specify

Stopping a streamed AI response keeps the text that already arrived. AI Response Rendering

Available Potions

Each potion is a detailed specification that AI agents can adapt into layouts, components, features, patterns, or tooling for an existing project.

patterns, ai, agent, approval, review, permissions, undo, audit-log, a11y
A framework-agnostic pattern for reviewing AI-proposed actions before they run: plan preview, risk labels, scoped permissions, approve, reject, and edit controls, undo, progress, and an audit trail.
patterns, ai, streaming, markdown, tool-calls, reasoning, citations, artifacts, a11y
How to render an AI assistant's reply as it streams: Markdown, code, tool-call cards, citations, artifacts, and optional reasoning, with a Stop that keeps partial text, errors shown in place, and model output treated as untrusted. Companion to the AI Agent Chat Layout.
layouts, ecommerce, product-page, product-detail-page, pdp, conversion, reviews, responsive, merchandising
A product page whose gallery and buy box share the first screen: options that say when they're sold out, an Add to cart that is never disabled and points to the missing choice, and a cart request the server prices.
components, sidebar, navigation, collapsible, multi-level, responsive, drawer, a11y
An app's side navigation: groups and nested lists, a collapsible icon rail that still names every link, a saved collapsed state that never jumps, and the same nav as a drawer on small screens.
layouts, documentation, sidebar, table-of-contents, responsive, search, scroll-spy, a11y
A documentation site's layout: a sidebar that's a sticky column from 1024 px and a drawer below, the article with code that Copy copies, and a table of contents that marks the section being read without touching the URL.
components, command-palette, command-menu, omnibox, keyboard-shortcuts, search, combobox, a11y, aria
A search box for commands in a modal dialog: Cmd or Ctrl+K opens it, the first result is highlighted so Enter runs it, the arrows move a highlight while focus stays in the input, and Escape always closes it.

How to Use

Copy prompt

Build it into your project

Open a potion, copy its prompt, and paste it into your coding agent, such as Claude Code, Codex, or Cursor. The agent builds the behavior with your components and styling.

Check prompt

Check what you already have

Use a potion's check prompt to compare your existing UI with the guide. The agent lists the gaps by severity and changes nothing until you ask.