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.
npx skills add reopt-ai/reopt-skills --skill opt-ui-installgit clone --depth 1 https://github.com/reopt-ai/reopt-skillsWrote 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.
[](https://agentmods.dev/skills/reopt-ai/reopt-skills/opt-ui-install)<a href="https://agentmods.dev/skills/reopt-ai/reopt-skills/opt-ui-install"><img src="https://agentmods.dev/badge/skills/reopt-ai/reopt-skills/opt-ui-install/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/reopt-ai/reopt-skills/opt-ui-install"><img src="https://agentmods.dev/badge/skills/reopt-ai/reopt-skills/opt-ui-install.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00094 | $0.01706 |
| Opus 5 | $0.00047 | $0.00853 |
| Sonnet 5 | $0.00019 | $0.00341 |
| Haiku 4.5 | $0.00009 | $0.00171 |
Grade A, and why
opt-ui-install 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
opt-ui Install
This is NOT the opt-ui you know. Read
node_modules/@reopt-ai/opt-ui/dist/docs/before writing code.
When to apply
Consumer project depends on @reopt-ai/opt-ui. Triggers: "install", "init", "setup", "upgrade", "update", "surface", "add Surface". Never use packages/opt-ui/src/... paths in consumer code — monorepo-internal.
Invocation
/opt-ui-install # Auto-branch (missing → init, installed → upgrade)
/opt-ui-install block <name> # Add a page-template Block (Surface is a legacy alias)
/opt-ui-install --upgrade # Explicit upgrade
/opt-ui-install --check # Analyze only (no edits)
/opt-ui-install --dry-run # Analyze only
Step 1 — Pin agent rules into AGENTS.md / CLAUDE.md
Source: the module's own agent-rules file once it ships one (@reopt-ai/opt-ui does not, as of 1.12.5). Fallback: agent-rules.md bundled with this skill. Wrap content between:
<!-- BEGIN:reopt/opt-ui-agent-rules -->
…content from source…
<!-- END:reopt/opt-ui-agent-rules -->
Idempotent: replace only between markers. Never touch outside.
Step 2 — Consumer-side setup (this skill owns; docs cannot)
-
Public npm registry — no token or scoped
.npmrcentry is required. Inspect the project.npmrcandnpm config get @reopt-ai:registry; if the scope still resolves to GitHub Packages, remove only the legacy project entry@reopt-ai:registry=https://npm.pkg.github.com. Preserve unrelated registry/auth settings, and ask before changing user/global npm config. -
Prereqs — Node 20+, React 19+, Tailwind CSS v4. bun or npm.
-
App-shell wiring — properties of the consumer app:
- Tailwind CSS v4:
@import "tailwindcss";then@import "@reopt-ai/opt-ui/tailwind.css";in the root stylesheet (plus the@sourcedirective — see getting-started). - Optional app-frame base layer (1.6+):
@import "@reopt-ai/opt-ui/app.css";for focus-visible, cursor, reduced-motion, text-scale, shortcut-hint, and skip-link behavior. It is required when opt-shell policies should affect the whole document. <OptThemeProvider>at the app root (Next.js:app/layout.tsxoutermost).- Block CLI:
npx @reopt-ai/opt-cli block add <slug>vendors page-template Surfaces from the signed public registry.block diffbulk-checks drift (--json/--exit-codefor CI);block removesafely uninstalls.opt surface …is a deprecated alias. - Component lookup:
npx @reopt-ai/opt-cli component [name](opt-cli 1.2+) prints bundled opt-ui / opt-charts metadata, props, and example code. opt-cli 1.3.1 regenerated that catalog for the 1.10–1.12 opt-ui additions; an older opt-cli will not list them. - 1.7 → 1.12.5 are additive releases (detail primitives such as
DescriptionList/Identity/EventTimeline/Flyout, catalog-screen components such asCallout/SegmentedControl/CatalogFrame/InspectorLayout/QueryFilterBar, plusFieldToken/Facet/InlineEditand friends).05-migration/01-breaking-changes.mdhas no entry past 1.5, so an upgrade from 1.6+ is a version bump plus atscrun; do not invent breaking-change edits.
- Tailwind CSS v4:
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 5d ago Changed · +1 lines 833fc5213266
- 10d ago First seen · 100 lines · 94 tokens per session scan A 4f682bc0c227
opt-ui-install is a skill published in the GitHub repository reopt-ai/reopt-skills (1 stars, last pushed 6d ago), licensed MIT. It adds 94 tokens to every session and 1,706 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-31.
Other skills, from other repositories
frontend-ui-engineering
Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.
skillshare-ui-website-style
Skillshare frontend design system for the React dashboard (ui/) and Docusaurus website (website/). Use this skill whenever you: build or modify a dashboard page or component in ui/src/, style or layout website pages or custom CSS in website/, create new React components for the dashboard, add pages to the dashboard…
awesome-accessibility-audit
An accessibility audit for web interfaces and markup, based on WCAG rules for people using keyboards, screen readers, or other assistive technology. It reviews structure, labels, focus, contrast, motion, and dynamic content.
obsidian-theme-dev
CSS/SCSS development patterns for Obsidian themes. Load when working with theme.css, SCSS variables, or CSS selectors.
design-directions
A workflow for producing several deliberately different single-file HTML prototypes of a page or interface. Each prototype uses realistic sample data so a user can compare layouts and interactions before real implementation.
polish
Runs the last pass over a functionally complete feature — pixel alignment, interaction and loading states, empty and error states, copy consistency, transition smoothness, and micro-details measured against the design system. Requires the work to be finished first; it refines, it never restructures. Use when the user…