Token导航 LogoToken导航

Agent Skill · 前端设计

data-visualization(数据可视化)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

data-visualization 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,784。

总安装 606周安装 25GitHub Stars 305下载 198核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:data-visualization(数据可视化)
来源仓库:https://github.com/ntcoding/claude-skillz
仓库路径:skills/data-visualization
安装命令:
npx skills add https://github.com/ntcoding/claude-skillz --skill data-visualization
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ntcoding/claude-skillz --skill data-visualization

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

🚨 实现可视化之前: 你回答什么问题?→ 选择图表类型 您的数据量是多少?→ 选择渲染技术 有既定的算法吗?→ 使用图书馆 可以访问吗?→ 颜色、键盘、屏幕阅读器 它遵循感知最佳实践吗?

→ 编码层次 每周安装量 25 存储库 ntcoding/克劳德技能 GitHub 之星 305 第一次看到 2天前 安全审计 Gen Agent Trust Hub 通行证 套接字通行证 斯尼克通行证

来源仓库内路径:skills/data-visualization

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ntcoding/claude-skillz --skill data-visualizat…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

data-visualization 怎么安装?

在终端执行 npx skills add https://github.com/ntcoding/claude-skillz --skill data-visualization。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

data-visualization 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

data-visualization 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

data-visualization 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

data-visualization 用的人多吗?

公开数据是累计安装 606 次,近一周安装 25 次,下载 198 次,GitHub 305 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

data-visualization 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
data-visualization

数据可视化 · 本页

606305需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Data Visualization

Visualization is communication. Every visual element must serve understanding.

Critical Rules

🚨 Use established algorithms. Graph layout, tree layout, spatial indexing—these problems are solved. Check dagre, d3-force, ELK.js before implementing anything custom.

🚨 Choose encodings by perceptual accuracy. Position beats length beats angle beats area beats color. Prefer bar charts over pie charts over bubble charts.

🚨 Never rely on color alone. 8% of men are colorblind. Use shape, pattern, or labels as backup encoding.

🚨 Match rendering to scale. SVG for <1000 elements, Canvas for 1000-10000, WebGL for >10000.


1. Visual Encoding

Marks & Channels

Marks are geometric primitives representing data:

  • Points (scatter plots, dot plots)
  • Lines (line charts, network edges)
  • Areas (bar charts, area charts, maps)

Channels are visual properties applied to marks:

  • Position (x, y coordinates)
  • Size (length, area, volume)
  • Color (hue, saturation, lightness)
  • Shape (circle, square, triangle)
  • Orientation (angle, slope)

Cleveland & McGill Hierarchy (1984)

Visual encodings ranked by perceptual accuracy:

  1. Position along common scale (most accurate)
  2. Position on non-aligned scales
  3. Length
  4. Angle/slope
  5. Area
  6. Volume
  7. Color saturation/hue (least accurate)

Implication: Bar charts (position) > pie charts (angle) > bubble charts (area)

Preattentive Attributes

Properties processed in <250ms without conscious effort:

  • Color (hue, saturation)
  • Form (orientation, length, width, size, shape)
  • Spatial position
  • Motion

Use preattentive attributes for the most important data—they "pop out" automatically.

Channel Effectiveness by Data Type

Data TypeBest Channels
QuantitativePosition, length, angle, area
OrdinalPosition, density, saturation
CategoricalShape, hue, spatial region

2. Interaction Design

Shneiderman's Mantra (1996)

"Overview first, zoom and filter, then details on demand"

  1. Overview — Show entire dataset, establish context
  2. Zoom & Filter — Reduce complexity, focus on subset
  3. Details on Demand — Tooltips, click-to-expand, drill-down

Interaction Patterns

PatternUse Case
Brushing & linkingCross-highlighting across coordinated views
Focus + contextFisheye lens, detail-on-demand panels
Direct manipulationDrag nodes, resize elements, reorder
Animated transitionsHelp users track changes between states
Pan & zoomNavigate large visualizations
FilteringReduce data to relevant subset
SelectionHighlight specific data points

3. Chart Selection

By Question Type

QuestionChart TypeWhy
How do values compare?Bar chartPosition encoding is most accurate
How has this changed over time?Line chartShows trends, handles many points
What's the distribution?Histogram, box plotShows spread, outliers, shape
What's the relationship?Scatter plotReveals correlation, clusters
What's the part-to-whole?Stacked bar, treemapShows composition
What are the connections?Network graph, SankeyShows relationships, flows
What's the hierarchy?Tree, sunburst, treemapShows parent-child structure
Where is it?Choropleth, symbol mapGeographic context

By Data Volume

VolumeApproach
<20 pointsSimple charts, direct labeling
20-500Standard visualization
500-5000Consider aggregation, filtering
5000+Aggregation mandatory, or Canvas/WebGL

Common Anti-Patterns

  • ❌ Pie charts with >5 slices (use bar chart)
  • ❌ 3D charts without strong justification
  • ❌ Dual-axis with unrelated scales (misleading)
  • ❌ Non-zero baselines for bar charts (distorts perception)
  • ❌ Truncated axes without clear indication

4. Color

Palette Types

TypeUse CaseExamples
SequentialLow to high valuesBlues, Greens, Viridis
DivergingValues diverge from midpointRdBu, BrBG, Spectral
CategoricalDistinct categoriesSet2, Tableau10, Category10

Colorblind Safety

  • 8% of men, 0.5% of women have color vision deficiency
  • Never rely on color alone—use shape, pattern, labels
  • Safe sequential: viridis, cividis, plasma
  • Safe categorical: ColorBrewer's colorblind-safe options
  • Test with: Coblis, Sim Daltonism, Chrome DevTools

Perceptual Uniformity

  • Avoid rainbow colormaps (jet)—perceptual steps are uneven
  • Use viridis, parula, cividis for sequential data
  • These ensure equal perceptual distance between values

Color Guidelines

  • 4.5:1 contrast ratio for text (WCAG AA)
  • 3:1 contrast for UI components
  • Max 7-10 distinct categorical colors
  • Use saturation/lightness variation for emphasis

5. Layout Algorithms

🚨 Before implementing ANY layout algorithm, check if a library exists.

Algorithm → Library Mapping

ProblemAlgorithmLibraries
Layered/DAG graphsSugiyama (1981)dagre, ELK.js
Force-directed networksFruchterman-Reingold (1991)d3-force, Cytoscape.js
Tree layoutsReingold-Tilford (1981)d3-hierarchy
TreemapsSquarified (2000)d3-hierarchy, ECharts
Circle packingWang (2006)d3-hierarchy
Sankey diagrams—d3-sankey
Chord diagrams—d3-chord
Large graphs (10k+)WebGL + spatial indexingSigma.js, G6, deck.gl
Spatial queriesQuadtree, R-treed3-quadtree, rbush
Edge crossing minimizationBarth (2002)Built into dagre/ELK

When to Use Each Layout

LayoutBest For
Sugiyama (dagre)Flowcharts, dependency graphs, DAGs with direction
Force-directedSocial networks, organic relationships, exploration
TreeHierarchies with single parent per node
TreemapHierarchies with quantitative values
CircularEmphasizing central nodes, ring structures
MatrixDense graphs where edges would overlap

These problems are solved. Never implement from scratch.


6. Rendering & Performance

Rendering Technology Thresholds

<1000 elements    → SVG
                    - DOM events work naturally
                    - Accessibility (ARIA) supported
                    - Crisp at any zoom level
                    - CSS styling

1000-10000        → Canvas
                    - Batch rendering
                    - Manual hit testing required
                    - Lower memory footprint
                    - requestAnimationFrame for animation

>10000            → WebGL
                    - GPU acceleration
                    - Sigma.js, deck.gl, regl
                    - Complex setup
                    - Limited text rendering

Performance Patterns

PatternWhen to Use
Web WorkersLayout computation (never block main thread)
Spatial indexingHit detection with quadtree/R-tree
Level-of-detailSimplify distant/small elements
Viewport cullingOnly render visible elements
DebouncingExpensive interactions (zoom, filter)
VirtualizationLong lists of chart components
AggregationToo many data points to render individually

Anti-Patterns

  • ❌ 5000 SVG nodes (use Canvas)
  • ❌ Layout computation on main thread
  • ❌ Hit testing without spatial indexing
  • ❌ Rendering off-screen elements
  • ❌ Animating thousands of elements individually

7. Libraries

Graph Layouts

LibraryBest ForNotes
dagreLayered DAGs, flowchartsSugiyama algorithm, good defaults
dagre-d3dagre + D3 renderingSVG output
ELK.jsComplex layouts, compound graphsEclipse Layout Kernel, highly configurable
d3-forceOrganic networksFruchterman-Reingold, customizable forces
Cytoscape.jsGraph analysis + visualizationRich algorithm library
Sigma.jsLarge graphs (10k+)WebGL rendering
G6/AntVEnterprise graphsFull-featured, Chinese ecosystem
vis-networkQuick prototypesEasy API, limited customization

Charting

LibraryBest ForNotes
D3.jsCustom, highly interactiveLow-level, maximum control
Observable PlotQuick explorationD3 team, excellent defaults
RechartsReact integrationDeclarative, composable
VictoryReact integrationAnimation support
EChartsFeature-rich dashboardsGreat mobile, large dataset support
Vega-LiteGrammar of graphicsDeclarative JSON spec
Chart.jsSimple chartsEasy setup, limited customization
PlotlyScientific visualization3D support, interactivity

When to Use D3 vs Higher-Level Libraries

Use D3 when:

  • Need complete control over rendering
  • Building novel/custom visualizations
  • Integrating with existing SVG/Canvas code
  • Performance-critical with custom optimizations

Use higher-level libraries when:

  • Standard chart types suffice
  • Faster development time matters
  • Team less experienced with D3
  • Need built-in responsiveness/animation

8. Composition & Layout

Project Composition (Dashboard Level)

  • Visual hierarchy — Guide eye to most important first
  • Grid systems — Align elements for coherence
  • Grouping — Related visualizations together
  • White space — Breathing room, not wasted space
  • Reading flow — Z-pattern or F-pattern for Western audiences

Chart Composition (Single Chart)

ElementGuidelines
TitleClear, descriptive; top-left or centered above
SubtitleAdditional context; smaller, below title
AxesLabeled with units; tick marks at meaningful intervals
LegendEmbedded when possible; external if complex
Aspect ratioAffects slope perception; 45° banking for trends
MarginsEnough for labels; consistent across charts

Aspect Ratio Guidelines

  • Line charts: ~16:9 for trends (banking to 45°)
  • Bar charts: Depends on number of bars
  • Scatter plots: Often square (1:1) for correlation
  • Maps: Preserve geographic proportions

9. Annotation

Annotation Types

TypePurpose
TitleThe "what" — identifies the visualization
SubtitleAdditional context, data source
CaptionThe "so what" — key insight or takeaway
Axis labelsVariable names and units
LegendDecode color/shape/size mappings
CalloutsHighlight specific data points
Reference linesBenchmarks, targets, averages
Source citationData provenance

Best Practices

  • Annotate the insight, not just the data — "Sales peaked in Q3" not just "Sales over time"
  • Use callouts sparingly — Highlight 1-3 key points maximum
  • Direct labeling — Embed labels in chart when possible (vs separate legend)
  • Provide context — Benchmarks, historical reference, targets
  • Layer information — Overview visible, details on interaction

Text Hierarchy

  1. Title (largest, boldest)
  2. Subtitle/caption
  3. Axis titles
  4. Tick labels
  5. Annotations
  6. Source (smallest)

10. Accessibility

WCAG Requirements

  • AA minimum (AAA preferred)
  • 4.5:1 contrast ratio for normal text
  • 3:1 contrast for large text and UI components
  • No information conveyed by color alone

Keyboard Navigation

  • Tab through interactive elements
  • Arrow keys for traversing data points
  • Enter/Space for selection
  • Escape to cancel/close

Screen Reader Support

<svg role="img" aria-labelledby="chart-title chart-desc">
  <title id="chart-title">Monthly Sales 2024</title>
  <desc id="chart-desc">Bar chart showing sales increasing from $10M in January to $15M in December</desc>
</svg>
  • Use ARIA labels and roles
  • Provide text alternatives
  • Announce dynamic updates with live regions
  • Structure for logical reading order

Alternative Representations

  • Data tables — Provide as fallback for all charts
  • Text summaries — Describe key insights
  • Sonification — Audio representation for time-series
  • Tactile graphics — For physical accessibility

11. Anti-Patterns Summary

Design Anti-Patterns

Anti-PatternWhy It's WrongWhat to Do
3D chartsDistorts perceptionUse 2D
Pie >5 slicesHard to compareUse bar chart
Dual unrelated axesMisleading correlationSeparate charts
Non-zero baselineExaggerates differencesStart at zero
Rainbow colormapPerceptually unevenUse viridis
Color-only encodingExcludes colorblindAdd shape/pattern
Chart junkDistracts from dataRemove decoration
OverplottingHides data densityAggregate or jitter

Implementation Anti-Patterns

Anti-PatternWhy It's WrongWhat to Do
Custom graph layoutReinventing solved problemUse dagre/ELK
5000 SVG nodesPoor performanceUse Canvas
Main thread layoutBlocks UIUse Web Worker
No spatial indexingSlow hit detectionUse quadtree
Rendering off-screenWasted computationViewport culling

12. Academic Foundations

Seminal Papers

PaperYearContribution
Cleveland & McGill "Graphical Perception"1984Visual encoding hierarchy
Shneiderman "The Eyes Have It"1996Overview-zoom-filter-details mantra
Gansner et al. "Drawing Directed Graphs"1993Foundation for dagre
Fruchterman & Reingold "Force-directed Placement"1991Foundation for d3-force
Sugiyama et al. "Hierarchical Systems"1981Layered graph layout
Barth et al. "Bilayer Cross Counting"2002Edge crossing minimization
Brewer "Color Use Guidelines"1994ColorBrewer palettes

Essential Resources

ResourceTypeFocus
ColorBrewer (colorbrewer2.org)ToolAccessible color palettes
From Data to Viz (data-to-viz.com)GuideChart selection decision tree
Visualization Analysis & Design (Munzner)TextbookComprehensive theory
Data Visualisation (Kirk)TextbookPractitioner guide
Visual Display of Quantitative Information (Tufte)TextbookData-ink ratio, chart junk
D3 Gallery (observablehq.com/@d3/gallery)ExamplesImplementation patterns

Summary

🚨 Before implementing visualization:

  1. What question are you answering? → Select chart type
  2. What's your data volume? → Select rendering technology
  3. Is there an established algorithm? → Use the library
  4. Is it accessible? → Color, keyboard, screen reader
  5. Does it follow perceptual best practices? → Encoding hierarchy

平台分布

Codex

34.09%
按下载量换算67

Claude

28.81%
按下载量换算57

Cursor

20.09%
按下载量换算40

Gemini CLI

9.33%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills