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 radix-ng/primitives --skill radix-ng-examplesgit clone --depth 1 https://github.com/radix-ng/primitivesWrote 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/radix-ng/primitives/radix-ng-examples)<a href="https://agentmods.dev/skills/radix-ng/primitives/radix-ng-examples"><img src="https://agentmods.dev/badge/skills/radix-ng/primitives/radix-ng-examples.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.00059 | $0.01970 |
| Opus 5 | $0.00030 | $0.00985 |
| Sonnet 5 | $0.00012 | $0.00394 |
| Haiku 4.5 | $0.00006 | $0.00197 |
Grade A, and why
radix-ng-examples 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 today.
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 — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Radix NG Primitives — Examples Index
Auto-generated by
tools/scripts/skills/generate.mjsfrom the Storybook docs. Do not edit by hand — the Storybook stories are the source of truth. Generated from@radix-ng/[email protected]— if the installed version differs, verify the API against the installed package.
Working examples built on @radix-ng/primitives. Full source is bundled offline under
references/; browse visually at https://radix-ng.com.
How to use this skill
- Describe the UI you want to build (e.g. "a multi-select combobox", "a form field with validation").
- Find the matching component below by name and description.
- Open that component's bundled
references/components/<slug>.md— an index with the import, anatomy, and a link to each example's full source (references/examples/<slug>--<example>.md). - Open the example shard you need and adapt it: keep the primitive directives and
data-*styling hooks, swap in the project's own design-system classes/tokens.
To style a primitive with a custom design system, pair an example with its per-primitive data-attribute
contract in the radix-ng skill (references/styling-contract/<slug>.json).
Reload a single example (e.g. after your context is compacted): open
references/examples/<component>--<example>.md — one file per example, just that example's source,
addressed by the component slug and the kebab-cased example name. Cheaper than re-reading the whole
component doc.
Total: 248 examples across 43 components.
Components
- Accordion — A vertically stacked set of interactive headings that each reveal an associated section of content. (6 examples)
- Alert Dialog — A modal dialog that interrupts the user with important content and expects a response. (7 examples)
- Autocomplete — A text input with a list of suggestions: free-form text whose value is the input string, with the active option tracked via
aria-activedescendant. (16 examples) - Avatar — An image element with a fallback for representing the user. (3 examples)
- Button — A button, or any element that should behave like one. (5 examples)
- Calendar — Displays dates and days of the week, facilitating date-related interactions. (7 examples)
- Checkbox — A control that allows the user to toggle between checked and not checked. (9 examples)
- Collapsible — A collapsible panel controlled by a button. (3 examples)
- Combobox — A filterable select: a text input that filters a list of options, with the highlighted option tracked via
aria-activedescendant. (16 examples) - Context Menu — A menu that appears at the pointer on right click (or touch long-press), built on the Menu primitive. (1 example)
- Cropper — Headless component for interactive image cropping — inspired by the experience on X. (2 examples)
- Date Field — Enables users to input specific dates within a designated field. (2 examples)
- Dialog — A window overlaid on the page, rendering the content underneath inert. (14 examples)
- Drawer — An edge-anchored sheet that opens over the page and dismisses with a swipe. (12 examples)
- Editable — An inline text field that swaps a read-only preview for an editable input. (2 examples)
- Field — Groups a control with accessible label, description, error message, and field state. (4 examples)
- Fieldset — Groups related form controls with a legend and shared disabled state. (3 examples)
- Form — The top of the forms layer cake: aggregates fields, maps server errors by name, and intercepts submit and reset. (4 examples)
- Input — A native text input with headless state attributes and Field integration. (4 examples)
- Menu — A headless dropdown menu anchored to a trigger button. (11 examples)
- Menubar — A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands. (1 example)
- Meter — A graphical display of a numeric value within a range. (3 examples)
- Navigation Menu — A collection of links and menus for website navigation. (8 examples)
- Number Field — A numeric input with stepper buttons, drag-to-scrub, locale-aware formatting and keyboard control. (6 examples)
- Pagination — Displays data in paged format and provides navigation between pages. (2 examples)
- Popover — An accessible popup anchored to a button. (10 examples)
- Preview Card — A popup that appears when a link is hovered or focused, showing a visual preview. (4 examples)
- Progress — Displays task completion with accessible label, value, track, and indicator parts. (4 examples)
- Radio Group — A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time. (3 examples)
- Scroll Area — A native scroll container with a custom, cross-browser scrollbar. (4 examples)
- Select — A control that presents a list of options for the user to pick from, triggered by a button. (9 examples)
- Separator — A separator element accessible to screen readers. (2 examples)
- Signal Forms — Bridge Angular Signal Forms into headless
FieldandForm. (6 examples) - Slider — An input where the user selects a value, or a range of values, from within a given range. (5 examples)
- Stepper — A set of steps that are used to indicate progress through a multi-step process. (2 examples)
- Switch — A control that allows the user to toggle between checked and not checked. (4 examples)
- Tabs — A set of layered sections of content—known as tab panels—that are displayed one at a time. (8 examples)
- Time Field — A segmented time input that lets users enter a time hour-by-hour with full keyboard control and localization. (7 examples)
- Toast — A succinct, low-priority message that appears temporarily, stacks, and can be swiped away. (11 examples)
- Toggle — A two-state button that can be either on or off. (3 examples)
- Toggle Group — A set of two-state buttons that can be toggled on or off. (4 examples)
- Toolbar — A container for grouping a set of controls, such as buttons, toggle groups or menus. (5 examples)
- Tooltip — Displays contextual information when a trigger is hovered or focused. (6 examples)
What ships with it
60 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.
- references/components/accordion.md 2.1 KB
- references/components/alert-dialog.md 2.7 KB
- references/components/aspect-ratio.md 609 B
- references/components/autocomplete.md 5.0 KB
- references/components/avatar.md 1.3 KB
- references/components/button.md 1.5 KB
- references/components/calendar.md 2.3 KB
- references/components/checkbox.md 2.0 KB
- references/components/collapsible.md 2.0 KB
- references/components/combobox.md 5.3 KB
- references/components/context-menu.md 2.6 KB
- references/components/cropper.md 1.7 KB
- references/components/date-field.md 1.2 KB
- references/components/dialog.md 3.9 KB
- references/components/drawer.md 5.6 KB
- references/components/editable.md 1.9 KB
- references/components/field.md 2.4 KB
- references/components/fieldset.md 1.2 KB
- references/components/form.md 2.8 KB
- references/components/input.md 1.5 KB
- references/components/label.md 807 B
- references/components/menu.md 6.0 KB
- references/components/menubar.md 2.9 KB
- references/components/meter.md 1.5 KB
- references/components/navigation-menu.md 4.9 KB
- references/components/number-field.md 2.5 KB
- references/components/pagination.md 1.5 KB
- references/components/popover.md 4.3 KB
- references/components/preview-card.md 2.9 KB
- references/components/progress.md 1.6 KB
- references/components/radio.md 1.9 KB
- references/components/scroll-area.md 2.6 KB
- references/components/select.md 5.0 KB
- references/components/separator.md 1.2 KB
- references/components/signal-forms.md 3.1 KB
- references/components/slider.md 2.4 KB
- references/components/stepper.md 1.2 KB
- references/components/switch.md 1.7 KB
- references/components/tabs.md 2.1 KB
- references/components/time-field.md 2.5 KB
- references/components/toast.md 3.1 KB
- references/components/toggle-group.md 1.7 KB
- references/components/toggle.md 1.5 KB
- references/components/toolbar.md 2.2 KB
- references/components/tooltip.md 3.0 KB
- references/examples/accordion--collapsible.md 2.8 KB
- references/examples/accordion--disabled.md 2.7 KB
- references/examples/accordion--events.md 2.8 KB
- references/examples/accordion--horizontal.md 3.2 KB
- references/examples/accordion--keep-mounted.md 2.7 KB
- references/examples/accordion--multiple.md 2.8 KB
- references/examples/alert-dialog--close-confirmation.md 4.4 KB
- references/examples/alert-dialog--controlled-mode-with-multiple-triggers.md 3.4 KB
- references/examples/alert-dialog--controlled.md 2.5 KB
- references/examples/alert-dialog--default.md 2.1 KB
- references/examples/alert-dialog--detached-triggers.md 2.6 KB
- references/examples/alert-dialog--multiple-triggers.md 2.6 KB
- references/examples/alert-dialog--open-from-a-menu.md 2.9 KB
- references/examples/autocomplete--async.md 11 KB
- references/examples/autocomplete--auto-highlight.md 2.7 KB
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.
- today Changed 92c243687989
- 2d ago Changed 747d0212d4ea
- 8d ago First seen · 86 lines · 59 tokens per session scan A 622252d69885
radix-ng-examples is a skill published in the GitHub repository radix-ng/primitives (270 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 1,970 once invoked, about $0.0003 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.
Other skills, from other repositories
create-db-component
Creates a new DB UX Design System component with Mitosis source, SCSS, typed model, and Playwright tests.
modify-db-component
Modifies an existing DB UX Design System Mitosis component (add variants, update props, change styles).
implement-component
Implements production-ready UI using DB UX Design System v3 components, tokens, and icons with a discovery-first approach.
migrate-to-v3
Migrates legacy DB UI v2 code (cmp-, elm-, rea- classes, Web Components, db-color- tokens) to DB UX Design System v3.
shadcn
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…
migrate-radix-to-base
Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.