Back to skills
SKILL.md
Openui
ASecurityRender native interactive UI inside Beep chat replies using fenced `openui` blocks (stats, status lists, tables, comparison bar charts, callouts, forms, and action buttons that reply to the session). Use when structured visual UI or clickable choices beat plain text.
- 13 stars
- 0 votes
- 0 copies
- 2 views
- Added December 3, 2026
Works with
Security analysis
100/100npx -y skills add flashmind-labs/beep --skill openui --agent claude-codeAre you the author of Openui?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/flashmind-labs-openui)---
name: openui
description: Render native interactive UI inside Beep chat replies using fenced `openui` blocks (stats, status lists, tables, comparison bar charts, callouts, forms, and action buttons that reply to the session). Use when structured visual UI or clickable choices beat plain text.
---
# OpenUI in Beep chat
Emit a fenced `openui` code block to render native React components in Beep's active Appearance skin. OpenUI Lang streams line by line; `root` is the entry statement and may reference identifiers defined on later lines.
## Syntax
- One assignment per line: `id = Component(arg1, arg2, ...)`
- Values: strings (`"..."`), numbers, booleans (`true`/`false`), `null`, arrays (`[...]`), references (`id`), nested calls, and actions (`@ToAssistant("prompt text")`).
- Button clicks and form submissions send a follow-up message directly to the active session.
## Components
| Component | Signature | Notes |
| --- | --- | --- |
| `Stack` | `Stack(children, direction?, gap?)` | `direction`: `"column"` (default) or `"row"`. `gap`: `"s"`, `"m"`, `"l"`. |
| `Grid` | `Grid(children, columns?)` | Responsive grid; `columns` optional (`1` to `4`). |
| `Card` | `Card(children)` | Surface card with lit top edge. |
| `Divider` | `Divider()` | Horizontal separator. |
| `Heading` | `Heading(title, subtitle?)` | Section title and optional mono subtitle (`CardHeader` alias). |
| `Text` | `Text(text, tone?)` | `tone`: `"neutral"`, `"muted"`, `"mono"`, `"ok"`, `"warn"`, `"err"`, `"accent"`. |
| `Badge` | `Badge(text, tone?)` | Compact status chip. |
| `Callout` | `Callout(tone, text, title?)` | Left-accented banner (`"info"`, `"ok"`, `"warn"`, `"err"`). |
| `Stat` | `Stat(label, value, detail?, tone?)` | Metric card (`StatCard` alias). |
| `List` | `List(items)` | Vertical list container. |
| `Row` | `Row(title, subtitle?, badge?, tone?)` | Single-line item with optional mono subtitle and trailing badge. |
| `KV` | `KV(label, value, tone?)` | Compact key-value row. |
| `Table` | `Table(columns, rows)` | `columns`: `string[]`, `rows`: `(string \| number)[][]`. |
| `BarChart` | `BarChart(title, [Bar(...)])` | `Bar(label, value, tone?)` or comparison `Bar(label, before, after, tone?)`. |
| `Actions` | `Actions([Button(...)])` | Row of action buttons (`Buttons` alias). |
| `Button` | `Button(label, @ToAssistant(prompt), variant?)` | `variant`: `"primary"`, `"secondary"`, `"quiet"`, `"danger"`. |
| `Form` | `Form(name, fields, submitLabel?)` | Submits all field values as `Form <name>:\n- field: value`. |
| `Input` | `Input(name, label, defaultValue?, placeholder?)` | Single-line text field. |
| `TextArea` | `TextArea(name, label, defaultValue?, placeholder?, rows?)` | Multi-line text field (`rows`: 2 to 10). |
| `Select` | `Select(name, label, options, defaultValue?)` | Beep dropdown menu (`options`: `string[]`). |
| `Toggle` | `Toggle(name, label, description?, defaultValue?)` | Switch control (`defaultValue`: boolean). |
## Example
```openui
root = Stack([head, metrics, checks, acts])
head = Heading("Release 0.14.2 readiness", "3 targets checked")
metrics = Grid([m1, m2])
m1 = Stat("Tests", "418 / 419", "1 flaky on android", "warn")
m2 = Stat("Mesh peers", "3 online", "0 protocol breaks", "ok")
checks = List([c1, c2])
c1 = Row("beep-desktop", "cargo test + playwright", "pass", "ok")
c2 = Row("beep-android", "sync_reconnect_test timed out", "flaky", "warn")
acts = Actions([a1, a2])
a1 = Button("Cut desktop release", @ToAssistant("Cut desktop 0.14.2 now."), "primary")
a2 = Button("Re-run android test", @ToAssistant("Re-run sync_reconnect_test."), "secondary")
```
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.