dataviz
できること
このスキルは、人が簡単に読み取れるグラフとデータの可視化の作り方を導きます。コードから画像まで、どんなツールでもグラフ、チャート、ダッシュボードを作る人のためのものです。
使う場面
- ✓グラフ、チャート、データの可視化を作ろうとしているとき。
- ✓アクセシブルで一貫した、グラフの色を選ぶ必要があるとき。
- ✓ダッシュボードや数値のタイルのレイアウトを決め、明確な階層がほしいとき。
スキルのリンク
https://github.com/JimLiu/baoyu-design/blob/main/skills/dataviz/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“三つの製品の売上を12か月間比べる、アクセシブルな色のグラフを作ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、データの役割からグラフの形式を最初に選び、意味に基づいて色を割り当て、グラフを描く前に検証ツールでパレットを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Data Visualization
A chart is read by people and executed by you. This skill turns "make it look good" into a procedure with checks, so the result is right by construction rather than by taste.
The method here is design-system-agnostic. Nothing in the procedure, the form heuristic, the six checks, or the mark specs is specific to one product. A design system supplies a small set of parameters (its ramps, a categorical order, a diverging pair, a status palette, a texture, its surfaces, its filter components); the method consumes them unchanged. A validated default palette is the reference instance, fully specified in references/palette.md. To target your brand, read that file's structure and substitute its values - touch nothing else.
The single most important habit: the color part is computable, so compute it. Never eyeball whether a palette is colorblind-safe - run
scripts/validate_palette.js.
The procedure - do these in order
Color comes LAST. Most bad charts pick colors first.
- Pick the form. What is the data's job - magnitude, identity, polarity, a single headline, change-over-time? The job picks the chart type, and sometimes the answer is not a chart (a stat tile or hero number). ->
references/choosing-a-form.md - Assign color by the job it does. Categorical (identity), sequential (magnitude), diverging (polarity), or status (state) - each has one rule. Assign categorical hues in fixed order, never cycled. ->
references/color-formula.md - VALIDATE the palette - run the script, don't reason about Delta E.
node scripts/validate_palette.js "<hex,hex,...>" --mode light(relative to this skill's base directory - or load it as<script type="module">in the chart's own page, where it readsdata-paletteoff<body>and logs aconsole.tablereport). It returns pass/fail on the lightness band, chroma floor, adjacent-pair CVD separation, the normal-vision floor, and contrast. Fix anything that FAILs before continuing. Re-run for--mode darkwith that mode's surface. - Apply mark specs & spacers. Thin marks, 4px rounded data-ends anchored to the baseline, 2px lines, >=8px markers, a 2px surface gap between fills (stacked segments and adjacent bars alike) and a 2px surface ring on overlapping marks, selective direct labels. ->
references/marks-and-anatomy.md - Add the hover layer - by default. An HTML/SVG chart is interactive; ship a crosshair+tooltip on line/area and a per-mark hover tooltip on bar/dot/cell. The only form that skips it is a bare stat tile with no plot. Hit targets bigger than the mark; filters in one row above the charts. ->
references/interaction.md - Final accessibility pass. For >= 2 series a legend is always present and <= 4 are also direct-labeled (a single series needs no legend box - the title names it), so identity is never color-alone; a table view exists; dark mode is selected - its own steps from the same ramps, validated against the dark surface, not an automatic flip; texture is available for the CVD/print/forced-colors case.
- Render it and look at it. The validator checks color, not layout - open or screenshot the output and eyeball it for label collisions, geometry, and overflow before calling it done.
Then check the result against references/anti-patterns.md - it is the catalog of what goes wrong. If your chart matches an entry, it's wrong.
Non-negotiables (true in every design system)
- Assign categorical hues in fixed order, never cycled. A 9th series is never a generated hue - it folds into "Other," small multiples, or composite encoding.
- One axis. Never a dual-axis chart (two y-scales). Two measures of different scale -> two charts, small multiples, or indexed to a common base. (This is the #1 chart mistake - see anti-patterns.)
- Color follows the entity, never its rank. A filter that changes the series count must not repaint the survivors.
- Sequential = one hue, light->dark. Diverging = two hues + a neutral gray midpoint. Never a rainbow; never a hue at the diverging midpoint.
- Run the validator before shipping any categorical palette. CVD Delta E >= 8 is the target (OKLab x100); 6-8 is a floor that is legal ONLY with secondary encoding. A normal-vision floor below 15 is a hard FAIL - full-color readers can't tell the pair apart; re-step it on the adjacent pairlist (secondary encoding does not excuse this one); under
--pairs allcut series or facet
よくある質問
一つのグラフライブラリだけで動きますか?
いいえ。コード、SVG、PNG、グラフライブラリなど、どんな出力でも使えます。
色はどう選びますか?
識別や大きさなど、役割に基づいて色を割り当て、そのあとアクセシビリティを確認します。
色覚の違いは確認しますか?
はい。目の判断に頼らず、検証ツールでパレットを確認します。
詳細
作者による元の説明
Use this skill whenever you are about to create ANY chart, graph, plot, dashboard, or data visualization, in ANY output medium (HTML/React artifact, inline SVG, matplotlib/plotly/d3/Recharts, PNG). Read it BEFORE writing the first line of chart code, choosing chart colors, building a stat tile / KPI row, or laying out a dashboard. Teaches a design-system-agnostic method - form heuristic, color formula with a runnable validator, mark specs, interaction rules. Default palette in references/palette.md.
repo: JimLiu/baoyu-design
人気
- GitHubのスター
- 5.9k
- ランキング
- #14535
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
claude-dashboard
5.9kグラフ、数字、表を備えた、生きたデータに基づくダッシュボードを作り、各数字の出所を示す出典のパネルを付けるようエージェントを支援します。
claude-design-system
5.9kトークン、書体、コンポーネント、アセットを持つブランドのデザインシステムを作り、編集するよう支援します。ファイルとして保存し、ローカルのエディタで開きます。
claude-design
5.9kデザインのアートボードのキャンバスを編集可能な形で作り、並べて見比べたり、ローカルのエディタで調整したりできるようにします。
claude-slides
5.9kスライドデッキを編集可能なファイルとして作り、修正するよう支援します。ローカルのスライドエディタで開き、発表したり、PDF、HTML、PowerPointに書き出したりできます。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。