bklit-ui: Skill for Claude Code

.agents/skills/bklit-studio-chart-performance/SKILL.md

bklit-studio-chart-performance is a skill for Claude Code, Codex from bklit/bklit-ui. It costs 43 tokens per session (1,469 once invoked), scanned A, original, MIT.

A workflow for finding and fixing slow interactive charts in Studio, especially when dragging a slider, moving the chart, or hovering over a legend or slice causes repeated expensive redraws.

In plain words
What is it for?
Use it to audit chart re-renders, split stable data from hover state, prevent unnecessary remounts, and improve Studio chart interaction performance.
Why use it?
It helps isolate hover updates and prevent unchanged chart geometry, animation, and path calculations from running on every interaction.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is bklit/bklit-ui's own configuration. It tells Claude Code and Codex how to work on bklit-ui itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bklit-ui configures →

About the project

Bklit UI is an open-source collection of customizable interface components and charts for building React applications with shadcn. Developers use it to add data visualizations such as funnels, gauges, maps, financial charts, and other interactive displays. The catalogue add-ons provide workflows for using its components and chart registry.

bklit/bklit-ui · 1,898 stars · on GitHub · bklit.com

Reuse

Borrowing it

Nothing to install: this file belongs to bklit/bklit-ui. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bklit/bklit-ui/main/.agents/skills/bklit-studio-chart-performance/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bklit/bklit-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 bklit-studio-chart-performance

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bklit/bklit-ui/bklit-studio-chart-performance"><img src="https://agentmods.dev/badge/skills/bklit/bklit-ui/bklit-studio-chart-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,469 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. Third-party audits
  • Socket pass 15 Oct 2026
  • Snyk pass 15 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00043 $0.01469
Opus 5.5 $0.00017 $0.00588
Sonnet 5.5 $0.00009 $0.00294
Haiku 4.5 $0.00004 $0.00147

Measured 21d ago against content hash 899545a25dc6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bklit-studio-chart-performance 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 21d 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.

.agents/skills/bklit-studio-chart-performance/SKILL.md · 137 lines

How it starts

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

Studio chart performance

Use when a chart feels sluggish in Studio but similar charts (e.g. pie-chart) are fine.

One-line rule

Keep enter animation on paths if you need it, then drop Motion path subscriptions and isolate hover so Studio slider and legend updates don't replay expensive arc/path math across every series every frame.


1. Find what re-renders on every interaction

Studio updates displayState on every slider tick and on legend/slice hover. Trace:

  • Does hover live in the same context as data, scales, and animation config?
  • Does the preview recreate children (data.map, pattern defs, motion props) every render?
  • Does the chart remount unnecessarily (key tied to motion signature vs manual replay)?

Pattern: Split context like cartesian / pie charts — stable slice (data, geometry, animation config) vs hover slice (hoveredIndex, tooltip). Consumers that don't need hover use only the stable hook (usePieStable, useRingStable, useChartStable, …).

Studio pan: Wrap chart render in StudioChartRender (packages/studio/src/components/studio-chart-render.tsx) so camera pan / FPS counter parent updates skip the chart tree when render props are unchanged.


2. Treat SVG path d animation as expensive

Animating d with Motion / useTransform + d3 arc (or similar) runs layout + paint every frame, per series.

Prefer Avoid
transform / opacity for hover (compositor-friendly) Continuous d morphing after enter is done
Static d once enter finishes Keeping Motion subscriptions on d for the chart's lifetime
Enter animation only, then static paths Re-running enter path math on unrelated prop changes

Pattern: useMountProgress for enter → when progress ≥ 1 (useEnterComplete), render static paths and only animate hover with x/y/opacity/scale on a motion.g wrapper (not per-path scale on motion.path).

Shared hook: packages/ui/src/charts/use-enter-complete.ts

Read the full file on GitHub · 137 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. 21d ago Changed · +2 lines 899545a25dc6
  2. 2mo ago First seen · 135 lines · 43 tokens per session scan A c0509b31b646

Subscribe to this mod's changes

bklit-studio-chart-performance is a skill published in the GitHub repository bklit/bklit-ui (1,898 stars, last pushed 5d ago), licensed MIT. It adds 43 tokens to every session and 1,469 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-08-30.

Related

bklit-studio-chart-performance compared with skills from other repositories

bklit-studio-chart-performance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bklit-studio-chart-performancebklit/bklit-uiSkill1.9k5d agoMITA43Claude Code, Codex
developing-with-streamlitstreamlit/streamlitSkill46kyesterdayApache-2.0A146Claude Code
add-componentf5/unovisSkill2.9kyesterdayApache-2.0A74Claude Code, Codex
add-gallery-examplef5/unovisSkill2.9kyesterdayApache-2.0A63Claude Code, Codex
commitf5/unovisSkill2.9kyesterdayApache-2.0A90Claude Code, Codex
open-prf5/unovisSkill2.9kyesterdayApache-2.0A67Claude Code, Codex
cnsplotsfaridrashidi/cnsplotsSkill7245d agoBSD-3-ClauseA79Codex