ranui

ranui is a skill for Claude Code from chaxus/ran. It costs 35 tokens per session (784 once invoked), scanned A, original, MIT.

A framework-agnostic library of custom HTML elements and a DOM builder for creating web interfaces in JavaScript frameworks or plain JavaScript.

In plain words
What is it for?
Use it to build UI with ranui elements, connect them to React, Vue, Svelte, or Solid, or create interfaces with plain JavaScript.
Why use it?
It provides reusable interface components while documenting their properties, events, slots, styling hooks, accessibility rules, and design tokens.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the ran plugin — 3 skills shipped together

Good fit Use it to build UI with ranui elements, connect them to React, Vue, Svelte, or Solid, or create interfaces with plain JavaScript.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chaxus/ran/ranui
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 chaxus/ran --skill ranui
Clone the repo
git clone --depth 1 https://github.com/chaxus/ran

Made for: Claude Code.

Or install ran, the plugin that ships this one along with the rest of its 3 skills.

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 ranui

README.md
[![agentmods](https://agentmods.dev/badge/skills/chaxus/ran/ranui/github.svg)](https://agentmods.dev/skills/chaxus/ran/ranui)
Your own site
<a href="https://agentmods.dev/skills/chaxus/ran/ranui"><img src="https://agentmods.dev/badge/skills/chaxus/ran/ranui/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 ranui

Your own site · 80×15
<a href="https://agentmods.dev/skills/chaxus/ran/ranui"><img src="https://agentmods.dev/badge/skills/chaxus/ran/ranui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 784 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00035 $0.00784
Opus 5.5 $0.00014 $0.00314
Sonnet 5.5 $0.00007 $0.00157
Haiku 4.5 $0.00003 $0.00078

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

Security

Grade A, and why

ranui 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 23d 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.

plugins/ran/skills/ranui/SKILL.md · 69 lines

How it starts

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

ranui

Resolve ranui from the host project's dependency graph, not the plugin cache. Read its actual package.json version and exports. In a ran checkout, use packages/ranui/ and identify it as working-tree source; its version does not prove that code has been published.

package-contract.json beside this skill records the monorepo version the skill was authored against and states that API/token facts are not bundled here (bundledApi: false). Always prefer the host's installed docs for that version. If the installed version differs from authoredAgainst, say so and do not invent APIs from memory or from a newer checkout.

Resolve before you edit

  1. Locate the installed package root (node_modules/ranui, or packages/ranui in this monorepo).
  2. Read package.json version and compare it to package-contract.json authoredAgainst.
  3. Open docs/COMPONENTS.json for attributes, properties, events, slots and parts. If JSON is missing (older install), fall back to docs/COMPONENTS.md.
  4. Open docs/style-tokens-public.md only when theming. Open docs/CODING.md / CLAUDE.md / AGENTS.md only for lifecycle, form, SSR or testing contracts.
  5. Cross-check the host's exports / .d.ts for the subpath you will import. Do not use the website, training memory or an unreleased checkout as the attr source.

To validate markup against the installed JSON without MCP:

pnpm exec tsx node_modules/ranui/bin/check-component-attrs.ts path/to/file.html path/to/file.tsx
# monorepo: pnpm -F ranui check:attrs -- path/to/file.html

Read only the installed reference needed for the task:

Task Package-relative reference
Attributes, events, slots and parts docs/COMPONENTS.json (preferred) or docs/COMPONENTS.md
Theme overrides docs/style-tokens-public.md and shipped styles
Consumer quick start AGENTS.md
Component implementation and lifecycle docs/CODING.md and relevant CLAUDE.md sections
Form integration, submission and SSR Relevant CLAUDE.md sections and exported types

Read the full file on GitHub · 69 lines

Files

What ships with it

1 file 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. 23d ago Changed · +20 lines 8996dc2ec878
  2. 24d ago Changed · +6 lines acffecc07966
  3. 1mo ago Changed · -31 lines · -7 tokens per session e39bd00f141c
  4. 1mo ago Changed · -136 lines · -42 tokens per session 954017e14106
  5. 1mo ago Changed · +48 lines · -3 tokens per session 4265a02ff63e
  6. 3mo ago First seen · 162 lines · 87 tokens per session scan A 7988f9fb1d14

Subscribe to this mod's changes

ranui is a skill published in the GitHub repository chaxus/ran (270 stars, last pushed 2d ago), licensed MIT. It adds 35 tokens to every session and 784 once invoked, about $0.0001 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-30.

Related

ranui compared with skills from other repositories

ranui next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ranuichaxus/ranSkill2702d agoMITA35Claude Code
shadcnshadcn-ui/uiSkill130kyesterdayMITA113Claude Code, Codex, Cursor
magic-uimagicuidesign/magicuiSkill24kyesterdayMITA56Claude Code, Codex
authoring-patternsNVIDIA/elementsSkill122todayApache-2.0A106Claude Code, Codex
elementsNVIDIA/elementsSkill122todayApache-2.0A59Claude Code, Codex
audit-accessibilityNVIDIA/elementsSkill122todayApache-2.0A98Claude Code
dile-componentsPolydile/dile-componentsSkill106todayMITA123Claude Code, Codex