tonic-ui-types

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

A guide for adding JSDoc type annotations to Tonic UI React components. JSDoc is a comment format that gives editors and documentation tools information about component properties and types.

In plain words
What is it for?
Use it when documenting component properties or creating React components that need type information, including components that forward references or pass properties to HTML elements.
Why use it?
It improves editor hints, generated documentation, and type checking without requiring the component to be rewritten in TypeScript.

Skill for Claude CodeCodex

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

Good fit Use it when documenting component properties or creating React components that need type information, including components that forward references or pass properties to HTML elements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trendmicro-frontend/tonic-ui/tonic-ui-types
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-types
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-types

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/trendmicro-frontend/tonic-ui/tonic-ui-types"><img src="https://agentmods.dev/badge/skills/trendmicro-frontend/tonic-ui/tonic-ui-types.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,848 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.00053 $0.01848
Opus 5.5 $0.00021 $0.00739
Sonnet 5.5 $0.00011 $0.00370
Haiku 4.5 $0.00005 $0.00185

Measured 9d ago against content hash 5bb3d46d132f, 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-types 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-types/SKILL.md · 184 lines

How it starts

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

Add Type Definitions to React Components

This skill provides guidelines for adding JSDoc type definitions to React components in the Tonic UI design system.

Paths starting with packages/ are relative to the repository root. Paths starting with src/ below are relative to packages/react/, not the skill directory.

Overview

Tonic UI uses JSDoc annotations (@typedef and @type) with global utility types to provide type information for React components. This enables better IDE support, documentation generation, and type checking.

Prerequisites

Before adding type definitions:

  1. Read the component file to understand its implementation — props, defaults, rendering logic.
  2. Identify the component pattern — forwardRef((inProps, ref) => ...) or plain (inProps) => ....
  3. Check if rest props are spread onto a native element (e.g. <Box as="button" {...rest} />) — if so, identify which HTML element type it renders (e.g. 'div', 'button'). This determines the first type parameter of ForwardRefComponent.
  4. Read the component documentation — Check packages/react-docs/pages/components/[component-name]/index.page.mdx
    • Locate the Props table in the ## Props section
    • Document all prop names, types, defaults, and descriptions
    • Use exact descriptions from the documentation
    • If no documentation exists, analyze the component implementation
    • If docs contradict the implementation, trust the implementation.

Utility Types

Two global utility types are defined in packages/react/global.d.ts. Always use these instead of writing verbose inline types.

Utility Type Use When Example
ForwardRefComponent<E, P, R?> forwardRef component ForwardRefComponent<'button', ButtonProps>
StyledFC<P> Functional component (no ref forwarding) with StyleProps StyledFC<TooltipProps>
  • E — Intrinsic element type string (e.g. 'div', 'button', 'svg').
  • P — Custom component props typedef.
  • R — Ref element type. Defaults to HTMLElement. Only specify when different (e.g. SVGSVGElement).

Read the full file on GitHub · 184 lines

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 · 184 lines · 53 tokens per session scan A 5bb3d46d132f

Subscribe to this mod's changes

tonic-ui-types is a skill published in the GitHub repository trendmicro-frontend/tonic-ui (133 stars, last pushed 7d ago), licensed MIT. It adds 53 tokens to every session and 1,848 once invoked, about $0.0002 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-types compared with skills from other repositories

tonic-ui-types next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tonic-ui-typestrendmicro-frontend/tonic-uiSkill1337d agoMITA53Claude Code, Codex
material-ui-themingmui/material-uiSkill99ktodayMITA63Claude Code, Codex
chakra-ui-builderchakra-ui/chakra-uiSkill41ktodayMITA214Claude Code, Codex
chakra-ui-refactorchakra-ui/chakra-uiSkill41ktodayMITA139Claude Code, Codex
compiler-portreact/reactSkill253k3d agoMITA35Claude Code
fast-typescript-checkinternet-development/www-sacredSkill1.6k13d agoMITA84Claude Code, Codex
port-sacred-terminal-ui-to-typescript-cliinternet-development/www-sacredSkill1.6k13d agoMITA0Claude Code, Codex