@pierre/diffs Code Rendering
pierrecomputer/pierre
Guides an agent through using @pierre/diffs to render syntax-highlighted files and diffs, and to build editing and review surfaces in React or plain JavaScript.
Coding patterns extracted from tonic-ui repository. An agent skill from trendmicro-frontend/tonic-ui.
$ npx skills add trendmicro-frontend/tonic-ui --skill tonic-ui-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install trendmicro-frontend/tonic-ui tonic-ui-patterns --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/trendmicro-frontend/tonic-ui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/tonic-ui-patterns .claude/skills/tonic-ui-patterns && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "tonic-ui-patterns" agent skill from https://github.com/trendmicro-frontend/tonic-ui/tree/main/.claude/skills/tonic-ui-patterns into .claude/skills/tonic-ui-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tonic-ui-patterns", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/trendmicro-frontend/tonic-ui/tree/main/.claude/skills/tonic-ui-patternsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add trendmicro-frontend/tonic-ui --skill tonic-ui-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install trendmicro-frontend/tonic-ui tonic-ui-patterns --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trendmicro-frontend/tonic-ui.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/tonic-ui-patterns .agents/skills/tonic-ui-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "tonic-ui-patterns" agent skill from https://github.com/trendmicro-frontend/tonic-ui/tree/main/.claude/skills/tonic-ui-patterns into .agents/skills/tonic-ui-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tonic-ui-patterns", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add trendmicro-frontend/tonic-ui --skill tonic-ui-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install trendmicro-frontend/tonic-ui tonic-ui-patterns --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trendmicro-frontend/tonic-ui.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/tonic-ui-patterns .cursor/skills/tonic-ui-patterns && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "tonic-ui-patterns" agent skill from https://github.com/trendmicro-frontend/tonic-ui/tree/main/.claude/skills/tonic-ui-patterns into .cursor/skills/tonic-ui-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tonic-ui-patterns", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/trendmicro-frontend/tonic-ui.git --path .claude/skills/tonic-ui-patterns--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add trendmicro-frontend/tonic-ui --skill tonic-ui-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install trendmicro-frontend/tonic-ui tonic-ui-patterns --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trendmicro-frontend/tonic-ui.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/tonic-ui-patterns .gemini/skills/tonic-ui-patterns && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "tonic-ui-patterns" agent skill from https://github.com/trendmicro-frontend/tonic-ui/tree/main/.claude/skills/tonic-ui-patterns into .gemini/skills/tonic-ui-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tonic-ui-patterns", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install trendmicro-frontend/tonic-ui tonic-ui-patternsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add trendmicro-frontend/tonic-ui --skill tonic-ui-patterns -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/trendmicro-frontend/tonic-ui.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/tonic-ui-patterns .github/skills/tonic-ui-patterns && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "tonic-ui-patterns" agent skill from https://github.com/trendmicro-frontend/tonic-ui/tree/main/.claude/skills/tonic-ui-patterns into .github/skills/tonic-ui-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tonic-ui-patterns", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add trendmicro-frontend/tonic-ui --skill tonic-ui-patterns -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install trendmicro-frontend/tonic-ui tonic-ui-patterns --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/trendmicro-frontend/tonic-ui.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/tonic-ui-patterns .opencode/skills/tonic-ui-patterns && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "tonic-ui-patterns" agent skill from https://github.com/trendmicro-frontend/tonic-ui/tree/main/.claude/skills/tonic-ui-patterns into .opencode/skills/tonic-ui-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tonic-ui-patterns", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
tonic-ui-patternsCoding patterns extracted from tonic-ui repository. An agent skill from trendmicro-frontend/tonic-ui.
Tonic UI Patterns is an agent skill from trendmicro-frontend/tonic-ui. Coding patterns extracted from tonic-ui repository
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering React components. It works with React. The repository describes itself as: Tonic UI is a UI component library for React, built with Emotion and Styled System. It is designed to be easy to use and easy to customize. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit b9a797e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
yarnFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use yarn, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Tonic UI Patterns loads about 1.6k tokens when it runs. Until then it costs about 17 tokens; SKILL.md has 403 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from trendmicro-frontend/tonic-ui at commit b9a797e, republished under its MIT licence (© trendmicro-frontend). 403 words, ~1,588 tokens.
.claude/skills/tonic-ui-patterns/SKILL.md (or your agent's skills folder).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 configPR references: Commit messages include (#<number>) at the end.
packages/
├── changelog-github/ # Custom changelog generator
├── codemod/ # Code migration tools
├── 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 utilitiesKey: packages/react is the most frequently modified package (~38 commits in last 200).
Each component lives in packages/react/src/<component-name>/:
<component-name>/
├── ComponentName.js # Main component (forwardRef + Box base)
├── index.js # Barrel exports
├── styles.js # Style hooks (useComponentNameStyle)
├── context.js # React context (if compound component)
├── useComponentName.js # Context consumer hook
├── withComponentName.js # HOC for context injection (optional)
├── constants.js # Constants (variants, sizes)
└── __tests__/
├── ComponentName.test.js
└── __snapshots__/
└── ComponentName.test.js.snapComponents use forwardRef with useDefaultProps:
import React, { forwardRef } from 'react';
import { useDefaultProps } from '../default-props';
import { useComponentStyle } from './styles';
const Component = forwardRef((inProps, ref) => {
const {
prop1,
prop2,
...rest
} = useDefaultProps({ props: inProps, name: 'Component' });
const styleProps = useComponentStyle({ prop1 });
return (
<Box ref={ref} {...styleProps} {...rest} />
);
});
Component.displayName = 'Component';
export default Component;For related component groups (Menu, FormControl, Accordion):
context.js) — createContext()useComponentName.js) — useContext(ComponentContext)withComponentName.js) — injects context props (optional)index.js) — named exports for all sub-componentsStyles use hooks that return style objects using Styled System tokens:
import { useColorStyle } from '../color-style';
const useComponentStyle = ({ variant }) => {
const [colorStyle] = useColorStyle();
return {
color: colorStyle.color.primary,
fontSize: 'sm',
px: '2x',
py: '1x',
};
};Token formats: '1x', '2x', 'sm', 'md', 'lg' (Styled System spacing/sizing).
Based on recent features (Highlight, Mark, FormControl), the workflow is:
packages/react/src/<component-name>/
├── ComponentName.js
├── index.js
├── styles.js
└── __tests__/
└── ComponentName.test.jsAdd to packages/react/src/index.js:
export { ComponentName } from './<component-name>';Add to packages/react/__tests__/index.test.js to verify the export exists.
Add to packages/react-docs/pages/components/<component-name>/:
index.page.mdx — Main doc page.js) for each usage patternAdd route to packages/react-docs/config/sidebar-routes.js.
Add .changeset/<changeset-name>.md:
---
"@tonic-ui/react": minor
---
feat: Add `ComponentName` componentThese files typically change together:
packages/react/src/index.js + packages/react/__tests__/index.test.js (new exports)packages/react-docs/config/sidebar-routes.js + packages/react-docs/pages/components/*/index.page.mdx (new docs)packages/react/package.json + packages/react/CHANGELOG.md + .changeset/*.md (releases)__tests__/ directories co-located with sourceComponentName.test.js__snapshots__/)@tonic-ui/react-base/test-utils/accessibility utilitiesyarn test@changesets/cli for versioningv2@tonic-ui/changelog-github generatorpublic (npm).changeset/ with descriptive names (e.g., tonic-ui-pr-1085.md).d.ts files for type definitionspx, py, color, bg), not CSS classescolorStyle.color.primary, colorStyle.color.secondary, colorStyle.color.errorexport { X } from './X' pattern© trendmicro-frontend, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/tonic-ui-patterns of trendmicro-frontend/tonic-ui.
Open the folder on GitHubat commit b9a797e
Tonic UI Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Tonic UI Patterns this skilltrendmicro-frontend/tonic-ui | 133 | — | ~1.6k | Automated safety check: Pass | MIT | |
| @pierre/diffs Code Renderingpierrecomputer/pierre | 6.2k | 2 repos | ~803 | Automated safety check: Pass | Apache-2.0 | |
| OpenTUI Terminal Interfacescline/cline | 70k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| No Use Effectmattiacerutti/supernova | 187 | 2 repos | ~1.7k | Automated safety check: Pass | MIT | |
| React Best Practicesshapeshift/web | 206 | 1 repos | ~2k | Automated safety check: Pass | MIT | |
| Migrate Componentasyncapi/generator | 1.1k | — | ~3k | Automated safety check: Pass | Apache-2.0 |
pierrecomputer/pierre
Guides an agent through using @pierre/diffs to render syntax-highlighted files and diffs, and to build editing and review surfaces in React or plain JavaScript.
cline/cline
Helps build terminal user interfaces with OpenTUI using its core imperative API or its React and Solid reconcilers, with references for layout, keyboard, animation and testing.
mattiacerutti/supernova
Enforce the no-useEffect rule when writing or reviewing React code.
shapeshift/web
Comprehensive React and Next.js performance optimization guide with 40+ rules for eliminating waterfalls, optimizing bundles, and improving rendering.
asyncapi/generator
Promote a duplicated React/JSX template-local component into the shared @asyncapi/generator-components package.
reactive/data-client
Use @data-client/react hooks for data fetching, mutations, and rendering - useSuspense, useFetch, useQuery, useCache, useLive, useDLE, useSubscription, useController, DataProvider, AsyncBoundary…
trendmicro-frontend/tonic-ui
Generate PR descriptions and changeset entries. An agent skill from trendmicro-frontend/tonic-ui.
trendmicro-frontend/tonic-ui
A skill your agent uses when adding JSDoc type definitions to React components in Tonic UI.
trendmicro-frontend/tonic-ui
Author and migrate the slots / slotProps API (the useSlot hook) in this design system's React components — the architecture where slots.x replaces an internal part and slotProps.x merges props into…
Works with
Categories
Coding patterns extracted from tonic-ui repository. An agent skill from trendmicro-frontend/tonic-ui. Tonic UI Patterns is an agent skill from trendmicro-frontend/tonic-ui.
Tonic UI Patterns fits situations like: tasks that involve React components.
Run `npx skills add trendmicro-frontend/tonic-ui --skill tonic-ui-patterns -a claude-code`. Or copy the skill folder (.claude/skills/tonic-ui-patterns in trendmicro-frontend/tonic-ui) into .claude/skills/tonic-ui-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add trendmicro-frontend/tonic-ui --skill tonic-ui-patterns -a codex`. Or copy the skill folder (.claude/skills/tonic-ui-patterns in trendmicro-frontend/tonic-ui) into .agents/skills/tonic-ui-patterns in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add trendmicro-frontend/tonic-ui --skill tonic-ui-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tonic-ui-patterns, .gemini/skills/tonic-ui-patterns, .github/skills/tonic-ui-patterns and .opencode/skills/tonic-ui-patterns in your project.
Going by SKILL.md and its folder, Tonic UI Patterns needs the command-line tools its instructions call (yarn).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Tonic UI Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Tonic UI Patterns: @pierre/diffs Code Rendering (pierrecomputer/pierre, 6.2k stars), OpenTUI Terminal Interfaces (cline/cline, 70k stars), No Use Effect (mattiacerutti/supernova, 187 stars) and React Best Practices (shapeshift/web, 206 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
trendmicro-frontend (a GitHub organization) maintains it in trendmicro-frontend/tonic-ui, which has 133 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 7, 2026.
Source: trendmicro-frontend/tonic-ui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.