opt-ui-install

opt-ui-install is a skill for Claude Code, Codex from reopt-ai/reopt-skills. It costs 108 tokens per session (2,613 once invoked), scanned A, original, MIT.

A skill for installing or upgrading the @reopt-ai/opt-ui package and adding its page templates. It can also connect the package’s app.css stylesheet to the application.

In plain words
What is it for?
Use it to install or update opt-ui, add Block or Surface page templates, connect app.css, or inspect changes without editing.
Why use it?
It handles the differences between setting up the package, updating it, and adding UI templates, while avoiding paths meant only for the package’s own monorepo.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to install or update opt-ui, add Block or Surface page templates, connect app.css, or inspect changes without editing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/reopt-ai/reopt-skills/opt-ui-install
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.

Any agent
npx skills add reopt-ai/reopt-skills --skill opt-ui-install
Clone the repo
git clone --depth 1 https://github.com/reopt-ai/reopt-skills

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 opt-ui-install

README.md
[![agentmods](https://agentmods.dev/badge/skills/reopt-ai/reopt-skills/opt-ui-install/github.svg)](https://agentmods.dev/skills/reopt-ai/reopt-skills/opt-ui-install)
Your own site
<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.

agentmods 80×15 button for opt-ui-install

Your own site · 80×15
<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>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00108 $0.02613
Opus 5.5 $0.00043 $0.01045
Sonnet 5.5 $0.00022 $0.00523
Haiku 4.5 $0.00011 $0.00261

Measured 28d ago against content hash 0723fd6ca4e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 28d 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.

skills/opt-ui-install/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 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. 1.16.0 is deprecated — it was published without that directory. A 1.x project upgrades to 3.0.0 (two import moves — Step 2, item 4).

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 3.0.0). 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)

  1. Public npm registry — no token or scoped .npmrc entry is required. Inspect the project .npmrc and npm 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.

  2. Prereqs — Node 20+ (opt-cli ≥ 1.3.4 needs Node 22.12+), React 19+, Tailwind CSS v4. bun or npm. From 3.0 optional peers sit behind their own entries: next (>=16.0.0) only for @reopt-ai/opt-ui/next (SidebarNav, RouteFocusManager), and the six @codemirror/* packages (commands ^6.11.1 supplies undo/redo and line numbers) only for @reopt-ai/opt-ui/sql-editor. The root, ./core, ./shells, ./visuals and ./query resolve with neither installed, and since 2.0 the types no longer reference CodeMirror, so skipLibCheck: false works. On 1.x the root and ./shells import next/* and import() CodeMirror, which webpack / Turbopack resolve at build time — upgrade rather than work around it.

Read the full file on GitHub · 103 lines

Files

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.

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. 28d ago Changed · +1 lines 0723fd6ca4e2
  2. 2mo ago Changed · +1 lines · +14 tokens per session 37e6e80212c5
  3. 3mo ago Changed · +1 lines 833fc5213266
  4. 3mo ago First seen · 100 lines · 94 tokens per session scan A 4f682bc0c227

Subscribe to this mod's changes

opt-ui-install is a skill published in the GitHub repository reopt-ai/reopt-skills (1 stars, last pushed 28d ago), licensed MIT. It adds 108 tokens to every session and 2,613 once invoked, about $0.0004 per session on Opus 5.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.

Related

opt-ui-install compared with skills from other repositories

opt-ui-install next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opt-ui-installreopt-ai/reopt-skillsSkill128d agoMITA108Claude Code, Codex
frontend-ui-engineeringaddyosmani/agent-skillsSkill123k3d agoMITA58Claude Code
accessibility-engineeringaddyosmani/agent-skillsSkill123k3d agoMITA62Claude Code
block-kitslackapi/slack-skills-pluginSkill177yesterdayMITA112Claude Code
unslopmxyhi/ok-skillsSkill51915d agoApache-2.0A152Codex
awesome-accessibility-auditkhasky/awesome-agent-skillsSkill488d agoMITA42Claude Code
frontend-ui-engineeringhelderberto/agent-skillsSkill213d agoMITA69Claude Code