kuzenbo-charts-usage

📁 kuzenbodev/kuzenbo 📅 1 day ago
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/kuzenbodev/kuzenbo --skill kuzenbo-charts-usage

Agent 安装分布

amp 1
cline 1
opencode 1
cursor 1
kimi-cli 1
codex 1

Skill 文档

Kuzenbo Charts Usage

Use this skill for external app code that consumes the stable public package @kuzenbo/charts@0.0.6.

Runtime Setup

  1. Install required runtime set:
npm install @kuzenbo/charts @kuzenbo/core @kuzenbo/theme recharts
  1. Ensure theme stylesheet is loaded once:
import "@kuzenbo/theme/prebuilt/kuzenbo.css";

Chart Workflow

  1. Choose the chart primitive from references/chart-exports.md.
  2. Shape data as array records and define a typed series list with name, label, and color.
  3. Add formatter functions (valueFormatter, axis formatters) early to avoid formatting drift.
  4. Turn on only needed affordances (withLegend, withTooltip, axis toggles) to keep charts readable.

Guardrails

  • Stay on public exports only (@kuzenbo/charts/ui/* listed in references).
  • Keep @kuzenbo/core and @kuzenbo/theme present in runtime.
  • Use semantic chart color vars (var(--color-chart-1) etc.) instead of hardcoded palette literals when possible.
  • If a requested chart type is absent, choose the nearest exported primitive and state the tradeoff.

References

  • references/chart-exports.md
  • references/chart-starter-pattern.md