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.
git clone --depth 1 https://github.com/trendmicro-frontend/tonic-uinpx agentmods add skills/trendmicro-frontend/tonic-ui/tonic-ui-patternsWrote 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/trendmicro-frontend/tonic-ui/tonic-ui-patterns)<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.
<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>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.00047 | $0.03295 |
| Opus 5.5 | $0.00019 | $0.01318 |
| Sonnet 5.5 | $0.00009 | $0.00659 |
| Haiku 4.5 | $0.00005 | $0.00330 |
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.
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 packagereact-hooks— Hooks packagereact-icons— Icons packagemcp— MCP server packagedeps/deps-dev— Dependency bumpsrelease— Version releaseschangesets— 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 definebuild,lint,test,pre-push, andclean. 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.mjsfor an.mjspackage such aseslint-plugin),testEnvironmentnodefor non-React packages, andbabel.config.jsextending@trendmicro/babel-configwith@babel/preset-env. Keep tests insrc/__tests__/next to the source. collectCoverage: trueis on for every package, socoverage/(lcov,text,html) is disposable output andcleanmust delete it:del build coverage dist, ordel coveragefor a package with no bundle.delcomes fromdel-cli, which must be in the package'sdevDependencies;cleannever deletes tracked generated source.- When a package commits generated input (for example
src/generated/rule-data.mjs),buildregenerates it and the generator supports a--checkmode 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 inpre-pushand CI, and no step can regenerate the file before the check.
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.
- 9d ago First seen · 258 lines · 47 tokens per session scan A b89b49a22d35
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.
tonic-ui-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tonic-ui-patternstrendmicro-frontend/tonic-ui | Skill | 133 | 7d ago | MIT | A | 47 | Claude Code, Codex |
| next-cache-components-optimizervercel/next.js | Skill | 144k | today | MIT | A | 123 | Claude Code |
| next-partial-prefetching-optimizervercel/next.js | Skill | 144k | today | MIT | A | 82 | Claude Code |
| chakra-ui-builderchakra-ui/chakra-ui | Skill | 41k | today | MIT | A | 214 | Claude Code, Codex |
| chakra-ui-migratechakra-ui/chakra-ui | Skill | 41k | today | MIT | A | 137 | Claude Code, Codex |
| chakra-ui-refactorchakra-ui/chakra-ui | Skill | 41k | today | MIT | A | 139 | Claude Code, Codex |
| material-ui-nextjsmui/material-ui | Skill | 99k | today | MIT | A | 76 | Claude Code, Codex |