add-component

add-component is a skill for Claude Code, Codex from f5/unovis. It costs 74 tokens per session (1,306 once invoked), scanned A, original, Apache-2.0.

A project guide for adding a new chart or visualization component to the Unovis library.

In plain words
What is it for?
It helps developers build the TypeScript component, register it, generate integrations, add examples, and document it.
Why use it?
It keeps the component's core code, framework wrappers, examples, gallery entry, and documentation connected.

Skill for Claude CodeCodex

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

About the project

Unovis is a modular data-visualization framework for building charts, maps, network graphs, and other visual components in JavaScript or TypeScript applications. It supports React, Angular, Svelte, Vue, Solid, and vanilla projects, with packages that can be imported individually.

f5/unovis · 2,845 stars · on GitHub · unovis.dev

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.

agentmods
npx agentmods add skills/f5/unovis/add-component
Any agent
npx skills add f5/unovis --skill add-component
Clone the repo
git clone --depth 1 https://github.com/f5/unovis

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 add-component

README.md
[![agentmods](https://agentmods.dev/badge/skills/f5/unovis/add-component.svg)](https://agentmods.dev/skills/f5/unovis/add-component)
Your own site
<a href="https://agentmods.dev/skills/f5/unovis/add-component"><img src="https://agentmods.dev/badge/skills/f5/unovis/add-component.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,306 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00074 $0.01306
Opus 5 $0.00037 $0.00653
Sonnet 5 $0.00015 $0.00261
Haiku 4.5 $0.00007 $0.00131

Measured 2d ago against content hash e9bc56c6907d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

add-component 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 2d 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.

ai/skills/add-component/SKILL.md · 101 lines

How it starts

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

Adding a component to Unovis

Operational checklist. For the conceptual tutorial (data models, SVG vs HTML, transitions) read packages/website/contributing/guides/adding-a-component.mdx. Before writing anything, open a similar existing component and copy its shape — e.g. packages/ts/src/components/line (XY) or packages/ts/src/components/donut (Core).

1. Build the core in packages/ts

Create packages/ts/src/components/<kebab-name>/ (kebab-case dir + files):

  • config.tsConfigInterface (JSDoc each prop, end with Default: \...`) and a Configclass with defaults. Extend the right superclass:XYComponentConfig*for XY components,ComponentConfig*` for Core components. Stand-alone components don't extend.
  • index.ts — the component class. Extends XYComponentCore / ComponentCore (or stands alone). Declares static selectors = s, static cssVariables = s.variables, config, events, and a _render(customDuration?) (or render) with clear enter / update / exit D3 selections.
  • style.ts — emotion css selectors + a cssVarDefaults map. CSS variables are named --vis-<component>-<selector>-<property>; every color var needs a --vis-dark-... counterpart. Import css / injectGlobal from @/styles/emotion (not @emotion/css directly) so styles respect the globalThis.UNOVIS_NONCE CSP nonce. Export variables = getCssVarNames(cssVarDefaults) and call injectGlobalCssVariables(...).
  • types.ts — component-specific types (optional).
  • modules/ — extract long render logic into call-able helpers (optional).

Match the house style: no semicolons, single quotes, 2-space indent, explicit return types.

2. Export from core

  • Add the component (and its public config/types) to packages/ts/src/components.ts.
  • If you expose new public types, also export them from packages/ts/src/types.ts.

3. Register in the shared registry

Add one entry to getComponentList() in packages/shared/integrations/components.ts. This is the source of truth for the wrapper generators and for commitlint's Component scope.

Read the full file on GitHub · 101 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. 2d ago First seen · 101 lines · 74 tokens per session scan A e9bc56c6907d

Subscribe to this mod's changes

add-component is a skill published in the GitHub repository f5/unovis (2,845 stars, last pushed yesterday), licensed Apache-2.0. It adds 74 tokens to every session and 1,306 once invoked, about $0.0004 per session on Opus 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-09-03.

Related

Other skills, from other repositories

bklit-ui

Bklit UI charts and data visualization for any project using the @bklit shadcn registry. Install, compose, theme, and animate charts correctly. Triggers when working with @bklitui/ui/charts, @bklit components, data visualization, dashboards, or chart theming. Also invoke manually for chart tasks.

bklit/bklit-ui · 75 tokens

Remotion

Creates programmatic video with React via Remotion — compositions, sequences, and motion graphics animated with useCurrentFrame() and rendered to MP4. USE WHEN video, animation, motion graphics, video rendering, React video, render video, animate content, make a short, create animations, video overlay, explainer…

danielmiessler/LifeOS · 121 tokens

tamagui

Universal React UI framework for web and native. Use when building cross-platform apps with Tamagui, creating styled components with styled(), configuring design tokens/themes, using Tamagui UI components, or working with animations. Triggers: "tamagui", "styled()", "$token", "XStack/YStack", "useTheme", "@tamagui/"…

tamagui/tamagui · 90 tokens

remotion-best-practices

Best practices for Remotion - Video creation in React.

vercel-labs/json-render · 17 tokens

r3f-animation

React Three Fiber animation - useFrame, useAnimations, spring physics, keyframes. Use when animating objects, playing GLTF animations, creating procedural motion, or implementing physics-based movement.

zebbern/claude-code-guide · 43 tokens

semiotic-charts

Generate trustworthy, accessible, agent-legible charts with Semiotic. Use whenever you produce a data visualization in a React/TypeScript app, stream a chart as generative UI, or pick a chart type for a dataset. Emit a validated config and run the trust loop — never hand-write chart JSX that breaks on first paint.

nteract/semiotic · 71 tokens