一键导入
data-visualization
Skill instructions for producing accessible, brand-neutral charts, graphs, dashboards, and data visualizations using a validated method
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Skill instructions for producing accessible, brand-neutral charts, graphs, dashboards, and data visualizations using a validated method
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Trigger description for creating a shareable PR review briefing Artifact with a recommendation, reviewer judgment calls, visual explainer, signals, and blind spots
Skill instructions for gathering a GitHub pull request, authoring a structured review briefing, filling the bundled HTML template, and publishing it as a shareable Artifact
Generated SKILL.md instructing Claude to finish importing leftover foreign-agent config that `claude import` could not map automatically
A comprehensive onboarding flow for setting up CLAUDE.md and related skills/hooks in the current repository, including codebase exploration, user interviews, and iterative proposal refinement
Example file for the Run app skill showing how to start a web dev server, drive it with chromium-cli, capture screenshots, and document app-specific gotchas
Example file for the Run app skill showing how to document a server or API lifecycle with background launch, readiness checks, curl verification, and shutdown
| name | data-visualization |
| description | Skill instructions for producing accessible, brand-neutral charts, graphs, dashboards, and data visualizations using a validated method |
| metadata | {"originalName":"Skill: Data Visualization","ccVersion":"2.1.210","sourceUrl":"https://github.com/Piebald-AI/claude-code-system-prompts/blob/main/system-prompts/skill-data-visualization.md","source":{"owner":"Piebald-AI","repo":"claude-code-system-prompts","ref":"main","path":"system-prompts/skill-data-visualization.md"}} |
references/palette.md
— swap that file's values for your brand's. Triggers on: "chart", "graph", "plot", "data viz", "dashboard",
"analytics", "visualize data", "categorical colors", "sequential / diverging
palette", "stat tile", "sparkline", "heatmap", "legend", "axis", "tooltip",
"chart colors", "color by series".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.
Color comes LAST. Most bad charts pick colors first.
references/choosing-a-form.mdreferences/color-formula.mdnode 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 reads
data-palette off <body> and logs a console.table report). 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 dark with that mode's surface.references/marks-and-anatomy.mdreferences/interaction.mdThen 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.
--pairs all cut series or facet instead — see check 4. A contrast WARN
obligates visible labels or a table view — it is not dismissable.The method is invariant; only these parameters change per system. The reference
instance — every value filled in — is references/palette.md.
| Parameter | What the system provides |
|---|---|
| Ramps | the hue scales (named steps) the palette draws from |
| Categorical theme | the fixed hue order (a named theme); default + alternates |
| Sequential hue | the default single hue for magnitude |
| Diverging pair | two warm/cool poles + a neutral midpoint |
| Status palette | good / warning / serious / critical — steps distinct from categorical |
| Texture fill | one directional hand-drawn fill, used at 45° / 135° |
| Surfaces | light & dark chart-surface colors (the validator needs these) |
| Filter controls | date-range & dimension controls (behavioral spec in interaction.md) |
To onboard a new system: fill those rows, feed its ramps to the validator, and let it snap each slot to the nearest passing step. Structure and rules stay as written.
| File | What it answers |
|---|---|
references/choosing-a-form.md | Which chart type / is it even a chart? |
references/color-formula.md | The four jobs, the six checks, snap-to-passing |
references/marks-and-anatomy.md | Mark specs, spacers, labels, figures, hero number |
references/interaction.md | Tooltips & hover, filters & time ranges |
references/components.md | The pieces a chart is made of — build each in plain HTML |
references/anti-patterns.md | What goes wrong — check every chart against this |
references/palette.md | The reference palette instance — every parameter, filled in; swap for your brand's |
scripts/validate_palette.js | Runnable six-checks validator (run it; don't eyeball) |