tonic-ui-slots

tonic-ui-slots is a skill for Claude Code, Codex from trendmicro-frontend/tonic-ui. It costs 190 tokens per session (1,217 once invoked), scanned A, original, MIT.

A guide for adding replaceable internal parts to Tonic UI React components. Its slots API lets users swap a part of a component or pass extra properties to it without copying the whole component.

In plain words
What is it for?
Use it when adding slots, migrating older component-property APIs, or connecting internal parts with the useSlot hook.
Why use it?
It avoids separate custom component and property options for every internal part, and makes component customization more consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding slots, migrating older component-property APIs, or connecting internal parts with the useSlot hook.

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

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 tonic-ui-slots

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/trendmicro-frontend/tonic-ui/tonic-ui-slots"><img src="https://agentmods.dev/badge/skills/trendmicro-frontend/tonic-ui/tonic-ui-slots.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 190 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,217 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.00190 $0.01217
Opus 5.5 $0.00076 $0.00487
Sonnet 5.5 $0.00038 $0.00243
Haiku 4.5 $0.00019 $0.00122

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

Security

Grade A, and why

tonic-ui-slots 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 9d 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/tonic-ui-slots/SKILL.md · 70 lines

How it starts

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

Tonic UI Slots

The slots / slotProps API gives consumers granular control over a component's internal parts — slots replaces the element rendered for a part, slotProps merges extra props into it — without forking the component. Internally, each slot is wired with the useSlot hook.

This skill covers both authoring slots on a component and migrating the legacy *Component / *Props prop pairs (e.g. TransitionComponent / TransitionProps, PopperComponent / PopperProps) to the slots API.

When to Use

  • Adding slot support to a new or existing component (wire an internal part with useSlot so it can be replaced via slots.x or configured via slotProps.x)
  • Authoring the internal props, handler chaining, and slot resolution for a slot
  • Migrating a component from the deprecated *Component / *Props pairs to slots / slotProps.

Workflow and References

Paths starting with packages/ are relative to the repository root; component paths such as modal/ModalContent.js are relative to packages/react/src/. The reference links below are relative to this skill directory, not the CWD.

  1. Read the component and its existing handler chains before changing it.
  2. Read API and handler authoring before wiring or reviewing a slot. It defines prop merging, composed refs/styles, imports, and warnings.
  3. For a legacy-prop migration, also read migration examples before editing. Preserve context fallbacks, render-prop children, parent threading, deprecation warnings, and explicitly merged arrays.
  4. Apply the invariants below, then exercise the changed consumer behavior.

Current Integration Status

Full __sx integration is not complete in this Tonic UI checkout, but the useSlot contract below is implemented here: packages/react/src/slot/useSlot.js composes both ref (via useMergeRefs) and __sx (via composeSx), and the composition is covered by packages/react/src/slot/__tests__/useSlot.test.js. The remaining gap is repo-wide component migration, not the hook. Inspect the affected implementation before relying on it, and do not silently expand a slot task into a styling integration change.

Read the full file on GitHub · 70 lines

Files

What ships with it

2 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. 9d ago First seen · 70 lines · 190 tokens per session scan A 7b2e5178c65a

Subscribe to this mod's changes

tonic-ui-slots is a skill published in the GitHub repository trendmicro-frontend/tonic-ui (133 stars, last pushed 7d ago), licensed MIT. It adds 190 tokens to every session and 1,217 once invoked, about $0.0008 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-11-20.

Related

tonic-ui-slots compared with skills from other repositories

tonic-ui-slots next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tonic-ui-slotstrendmicro-frontend/tonic-uiSkill1337d agoMITA190Claude Code, Codex
chakra-ui-builderchakra-ui/chakra-uiSkill41ktodayMITA214Claude Code, Codex
chakra-ui-refactorchakra-ui/chakra-uiSkill41ktodayMITA139Claude Code, Codex
igniteui-react-generate-from-image-designIgniteUI/igniteui-reactSkill575d agoMITA160Claude Code
shadcn-uiwpank/aiSkill129mo agononeA56Claude Code, Codex
cobejsMengTo/SkillsSkill8.7kyesterdayMITA31Claude Code, Codex
frontend-ui-dark-tsmicrosoft/skillsSkill3.3k3d agoMITA48Claude Code