tonic-ui-patterns

tonic-ui-patterns is a skill for Claude Code, Codex from trendmicro-frontend/tonic-ui. It costs 47 tokens per session (3,295 once invoked), scanned A, original, MIT.

A guide to the Tonic UI repository's conventions for components, hooks, exports, browser tests, documentation, commits, and changesets. It also describes the repository's monorepo structure, where multiple related packages live together.

In plain words
What is it for?
Use it when creating or reviewing Tonic UI components, hooks, documentation, browser end-to-end tests, exports, or commit and changeset files.
Why use it?
It helps new changes match existing project patterns and avoids using general repository guidance in place of the more specific styling rules.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { useDefaultProps } from '../default-props';.

Good fit Use it when creating or reviewing Tonic UI components, hooks, documentation, browser end-to-end tests, exports, or commit and changeset files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/trendmicro-frontend/tonic-ui
agentmods
npx agentmods add skills/trendmicro-frontend/tonic-ui/tonic-ui-patterns

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-patterns

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/trendmicro-frontend/tonic-ui/tonic-ui-patterns"><img src="https://agentmods.dev/badge/skills/trendmicro-frontend/tonic-ui/tonic-ui-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,295 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.00047 $0.03295
Opus 5.5 $0.00019 $0.01318
Sonnet 5.5 $0.00009 $0.00659
Haiku 4.5 $0.00005 $0.00330

Measured 9d ago against content hash b89b49a22d35, 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-patterns 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-patterns/SKILL.md · 258 lines

How it starts

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

Tonic UI Patterns

All packages/ and .changeset/ paths below are relative to the repository root. Read the root AGENTS.md policy before PR or changeset work. Use the styling skill when authoring Box-based styles; examples here describe component structure, not an alternative to the sx / __sx precedence rules.

Commit Conventions

This project uses conventional commits with scope:

Type Usage Frequency
chore Releases, deps, tooling ~36%
feat New features ~23%
docs Documentation ~18%
ci CI/CD workflows ~12%
fix Bug fixes ~7%
test Test additions ~2%
refactor Code restructuring ~1%

Scope format: type(package/component) — e.g., feat(react/menu), fix(react/Checkbox), chore(deps-dev)

Common scopes:

  • react / react/<component> — Main component package
  • react-hooks — Hooks package
  • react-icons — Icons package
  • mcp — MCP server package
  • deps / deps-dev — Dependency bumps
  • release — Version releases
  • changesets — Changeset config

PR references: Commit messages include (#<number>) at the end.

Monorepo Structure

packages/
├── changelog-github/   # Custom changelog generator
├── codemod/            # Code migration tools
├── eslint-plugin/      # Internal styling lint rules (private, not published)
├── mcp/                # MCP server (TypeScript)
├── react/              # Main component library (JavaScript)
├── react-base/         # Base primitives (Box)
├── react-docs/         # Next.js documentation site
├── react-hooks/        # Shared hooks
├── react-icons/        # SVG icon components
├── styled-system/      # Styled System utilities
├── theme/              # Design tokens
└── utils/              # Shared utilities

Key: packages/react is the most frequently modified package (~38 commits in last 200).

Workspace Package Scripts

  • Every packages/* workspace must define build, lint, test, pre-push, and clean. Root commands run them in every workspace (lerna exec -- yarn build, yarn workspaces foreach --all run lint, lerna exec --parallel -- yarn clean), so a missing script fails the root command.
  • Tests run with Jest: cross-env NODE_ENV=test jest --maxWorkers=2, testMatch "<rootDir>/**/__tests__/**/*.test.js" (.test.mjs for an .mjs package such as eslint-plugin), testEnvironment node for non-React packages, and babel.config.js extending @trendmicro/babel-config with @babel/preset-env. Keep tests in src/__tests__/ next to the source.
  • collectCoverage: true is on for every package, so coverage/ (lcov, text, html) is disposable output and clean must delete it: del build coverage dist, or del coverage for a package with no bundle. del comes from del-cli, which must be in the package's devDependencies; clean never deletes tracked generated source.
  • When a package commits generated input (for example src/generated/rule-data.mjs), build regenerates it and the generator supports a --check mode that exits non-zero when the committed file is stale. Test that guard (execFileSync(process.execPath, [script, '--check'])) instead of adding a separate script: the test then runs in pre-push and CI, and no step can regenerate the file before the check.

Read the full file on GitHub · 258 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 · 258 lines · 47 tokens per session scan A b89b49a22d35

Subscribe to this mod's changes

tonic-ui-patterns is a skill published in the GitHub repository trendmicro-frontend/tonic-ui (133 stars, last pushed 7d ago), licensed MIT. It adds 47 tokens to every session and 3,295 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-patterns compared with skills from other repositories

tonic-ui-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tonic-ui-patternstrendmicro-frontend/tonic-uiSkill1337d agoMITA47Claude Code, Codex
next-cache-components-optimizervercel/next.jsSkill144ktodayMITA123Claude Code
next-partial-prefetching-optimizervercel/next.jsSkill144ktodayMITA82Claude Code
chakra-ui-builderchakra-ui/chakra-uiSkill41ktodayMITA214Claude Code, Codex
chakra-ui-migratechakra-ui/chakra-uiSkill41ktodayMITA137Claude Code, Codex
chakra-ui-refactorchakra-ui/chakra-uiSkill41ktodayMITA139Claude Code, Codex
material-ui-nextjsmui/material-uiSkill99ktodayMITA76Claude Code, Codex