Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bklit-ui

БесплатноБез исполняемых скриптовНе проверен

Install, compose, theme, and animate Bklit UI charts (the @bklit shadcn registry) in a React / Next.js app. Use when the user wants a chart, graph, or data…

bklitот bklit★ 2 058 звёзд на GitHub

Об этом скилле

Bklit UI

Composable React chart components (d3 + motion) distributed through the @bklit shadcn registry. shadcn add copies the source into the user's project — the user owns that code, and it is the source of truth for props.

Run the shadcn CLI with the project's package runner: npx shadcn@latest, pnpm dlx shadcn@latest, bunx --bun shadcn@latest, or yarn dlx shadcn@latest.

Current Project Context

!`npx shadcn@latest info --json`

If the block above is empty or still shows the command (agents that do not expand ! injections), run npx shadcn@latest info --json yourself before writing code. Use it for framework, aliases (@/…), Tailwind version, and installed components.

  • No components.json? Run npx shadcn@latest init first.
  • No @bklit in registries? Add "@bklit": "https://ui.bklit.com/r/{name}.json" (see installation.md), or install by URL: npx shadcn@latest add https://ui.bklit.com/r/line-chart.json.

Principles

  1. Install before inventing. npx shadcn@latest add @bklit/<item> — never hand-roll SVG charts or reimplement a registry piece.
  2. Import from the installed files, never from @bklitui/ui/charts. That is a private monorepo package. Items install to components/charts/<file>.tsx (under src/ when the project uses it); import with the user's alias, e.g. @/components/charts/line-chart. See Imports.
  3. Translate other libraries' words first. If the request uses Nivo, Recharts, TanStack Charts or d3 names (groupMode, stackId, useMesh, elementType, d3.stack…), map them with the bklit-ui-vocabulary skill (references/library-crosswalk.md, including its False friends list) before choosing components. Never copy another library's prop onto a Bklit component.
  4. Read the installed source. After add, open the files in components/charts/ to confirm prop names and defaults before using them.
  5. Compose, don't flatten. Root chart → Grid/Background → series → axes → overlays → ChartTooltip. See composition.md.
  6. Theme with tokens. --chart-* variables and chartCssVars, not one-off hex values. See theming.md.

Imports

There is no barrel for component items — import each export from the file that defines it (paths relative to the components/charts/ alias):

Import from Exports
line-chart LineChart, Line
area-chart AreaChart, Area
bar-chart / bar / bar-x-axis / bar-y-axis BarChart / Bar / BarXAxis / BarYAxis
bar-lollipop · bar-squares BarLollipop · BarSquares, BarColumnTrack (installed by @bklit/bar-chart)
sparkline LineSparkline, AreaSparkline, BarSparkline, useSparklineHover
composed-chart / series-bar ComposedChart / SeriesBar (+ Line, Area from their charts)
scatter-chart ScatterChart, Scatter
candlestick-chart / candlestick CandlestickChart / Candlestick
live-line-chart / live-line / live-x-axis / live-y-axis LiveLineChart / LiveLine / LiveXAxis / LiveYAxis
pie-chart / pie-slice / pie-ticks / pie-center PieChart / PieSlice / PieTicks / PieCenter
ring-chart / ring / ring-center RingChart / Ring / RingCenter
radar-chart, radar-grid, radar-axis, radar-labels, radar-area one component each
radial-chart, radial-bar, radial-ring-bar, radial-dot-bar, radial-line, radial-area, radial-axis, radial-scrubber, radial-center, radial-legend RadialChart, RadialBar, … (one component each, installed by @bklit/radial-chart)
gauge Gauge (installed by @bklit/gauge-chart)
funnel-chart FunnelChart
sunburst-chart, sunburst-segment, sunburst-center, sunburst (buildArcs) … sunburst parts
heatmap · choropleth · sankey folder index.ts re-exports every part
grid · x-axis · y-axis · background · reference-area · projection-line · trend-line Grid · XAxis · YAxis · Background · ReferenceArea · ProjectionLine · TrendLine
band · bollinger Band · withBollingerBands (installed by @bklit/line-chart, also @bklit/band)
weekends · deadline Weekends · Deadline (date-axis shading and due-date marker)
tooltip · legend · markers · patterns folder index.ts (ChartTooltip, Legend*, ChartMarkers, deprecated PatternLines etc.)
pattern-preset · pattern-tile PatternPreset, renderPatternPreset, PATTERN_PRESETS · PatternTile (installed by @bklit/patterns)
chart-context chartCssVars, useChart, TooltipData
import { LineChart, Line } from "@/components/charts/line-chart";
import { Grid } from "@/components/charts/grid";
import { XAxis } from "@/components/charts/x-axis";
import { ChartTooltip } from "@/components/charts/to
Полный SKILL.md на GitHub

Установить bklit-ui в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(npx shadcn@latest *)
Bash(pnpm dlx shadcn@latest *)
Bash(bunx --bun shadcn@latest *)
Bash(yarn dlx shadcn@latest *)

Вложенные файлы

evals/evals.jsonrules/animation.mdrules/composition.mdrules/installation.mdrules/loading.mdrules/overlays.mdrules/theming.mdrules/tooltips.md

FAQ

Что делает скилл bklit-ui?

Install, compose, theme, and animate Bklit UI charts (the @bklit shadcn registry) in a React / Next.js app. Use when the user wants a chart, graph, or data visualization: line, area, bar, live/streaming line, composed, scatter, candlestick/OHLC, pie, ring/donut, radial bar/clock, radar, gauge, heatmap, funnel, sankey, sunburst, or choropleth/world map; a sparkline or tiny inline chart (LineSparkline, AreaSparkline, BarSparkline, useSparklineHover) for tables, KPI cards, or dense dashboards; a dashboard, analytics page, KPI or stat card; chart tooltips, crosshairs, legends, markers, reference bands, projections, trend lines, axes, or grids; or when code imports from components/charts/* or mentions @bklit/* or bklit.com. For styling vocabulary (patterns, squircle/rounded/3D bars, fades, loading looks, matching the app theme) also use bklit-ui-design. For moving from Recharts, shadcn ChartContainer, or TanStack Charts to Bklit, use bklit-ui-migrate. When the user can't name the chart or part they want, use bklit-ui-vocabulary.

Как установить скилл bklit-ui?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bklit-ui запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bklit-ui с