openui-app

openui-app is a skill for Claude Code, Codex from thesysdev/openclaw-os. It costs 92 tokens per session (19,794 once invoked), scanned A, original, MIT.

A toolkit for building persistent apps in openui-lang, a small language for dashboards, trackers, briefings, and command centers.

In plain words
What is it for?
Use it to create or edit durable workspace apps with reactive state, database-backed mutations, scheduled refreshes, and direct tool calls.
Why use it?
It provides a defined way to display data, run shell commands, read files, query SQLite, and update stored data. Apps continue running after creation and can refresh on a schedule.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/thesysdev/openclaw-os/openui-app
Any agent
npx skills add thesysdev/openclaw-os --skill openui-app
Clone the repo
git clone --depth 1 https://github.com/thesysdev/openclaw-os

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openui-app

README.md
[![agentmods](https://agentmods.dev/badge/skills/thesysdev/openclaw-os/openui-app.svg)](https://agentmods.dev/skills/thesysdev/openclaw-os/openui-app)
Your own site
<a href="https://agentmods.dev/skills/thesysdev/openclaw-os/openui-app"><img src="https://agentmods.dev/badge/skills/thesysdev/openclaw-os/openui-app.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 19,794 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00092 $0.19794
Opus 5 $0.00046 $0.09897
Sonnet 5 $0.00018 $0.03959
Haiku 4.5 $0.00009 $0.01979

Measured 4d ago against content hash 8cc48ebbb34c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

openui-app scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/claw-plugin/skills/openui-app/SKILL.md · 1,102 lines

How it starts

The opening of the file, as written. The whole thing — 1,102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are about to create or edit a durable app using openui-lang — a small DSL specific to this product. Apps persist via app_create / app_update and run independently after creation; the runtime calls tools directly on every refresh with NO LLM in the loop.

DSL SHAPE — every program is identifier-equals-component-call assignments:

identifier = Component(arg1, arg2) root = Stack([child1, child2])

NOT JSX (<Section>). NOT object literals (Section { ... }). NOT MDX. Your training data does not contain openui-lang.

app_create and app_update take RAW openui-lang in the code / patch argument — no fences. Wrap in fences (tagged openui-lang) only when previewing inline.

CRITICAL — Query first arg is ONE of these four strings, no exceptions:

  • "exec" — shell. Args: {command: "..."}
  • "read" — file read. Args: {file_path: "..."}
  • "db_query" — read SQLite. Args: {sql: "SELECT ...", params?: {...}, namespace?: "default"}
  • "db_execute" — write SQLite (only inside Mutation). Args: {sql: "INSERT ...", params?: {...}, namespace?: "default"}

There is NO "fetch", NO "http", NO "github_pull_requests", NO MCP-qualified tool name. To call an external API, write a Node script that calls the API and shells out via Query("exec", {command: "node ~/.openclaw/workspace/scripts/your-script.js"}).

@Run / @Set / @Reset take a REFERENCE to a top-level statement, never an inline call. Per-row mutations: route the row id through a $state, then sequence @Set@Run(mutationRef)@Run(refreshQueryRef).

Tables are COLUMN-oriented. Table([Col("Label", dataArray), Col("Count", countArray, "number")]) — the third Col arg is a TYPE hint, not a label.

CALL app_create IMMEDIATELY when the code is ready. Do not wait for your final paragraph. After the tool returns, keep streaming explanation/follow-ups.

If app_create or app_update returns validationErrors, the code IS saved — but lint flagged issues. ALWAYS fix via a TINY follow-up app_update (1–10 statements) with ONLY the corrected statements. The runtime merges by statement name; untouched lines stay put. NEVER re-emit the whole program — that's the failure mode we're avoiding (slower, costs tokens, risks introducing new errors).

LAYOUT — preventing pathologies the renderer can't shrink out of:

  • Max 3 KPI Cards per row, NO wrap. For 4–6 KPIs, use TWO Stack(..., "row", "m", "stretch") rows. wrap=true on a row of Cards triggers a known interaction with the Card width style that collapses tile text to single characters.
  • Do NOT nest Stack directly inside another Stack as a flex child. If you need a header with a left block + right block, wrap the inner block in Card([...], "clear") so it gets proper flex sizing. (Stack itself doesn't set min-width: 0, so as a flex child it can't shrink and will overflow.)

KPI STRIP RECIPE — use this exactly. There is no KPI / Metric / StatCard component:

kpiRow = Stack([k1, k2, k3], "row", "m", "stretch") k1 = Card([TextContent("Open PRs", "small"), TextContent("" + @Count(prs), "large-heavy"), Tag("17 overdue", null, "sm", "warning")], "sunk") k2 = Card([TextContent("MRR", "small"), TextContent("$" + @Round(stripe.mrr, 0), "large-heavy")], "sunk") k3 = Card([TextContent("Runway", "small"), TextContent("" + stripe.runway + " mo", "large-heavy")], "sunk")

For 6 KPIs, two rows: kpiGrid = Stack([row1, row2], "column", "m", "stretch") then two row Stacks of 3 each.

SQL — verify columns BEFORE SELECT. Either run db_query with PRAGMA table_info(<table>) first, or write SELECT * and project columns in the UI. NEVER extrapolate column names from a pattern (churn_count_30d existing does not mean churn_count_60d exists). The runtime fails with no such column and your app shows an error.

Multi-line statements are OK inside brackets and ternaries — newlines are ignored by the parser.

NAME ALIASES (you typed X — write Y. These will lint-fail or render wrong):

Read the full file on GitHub · 1,102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 1,102 lines · 92 tokens per session scan A 8cc48ebbb34c

Subscribe to this mod's changes

openui-app is a skill published in the GitHub repository thesysdev/openclaw-os (322 stars, last pushed 3mo ago), licensed MIT. It adds 92 tokens to every session and 19,794 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens