D3 Visualization skill
Build bespoke D3 charts and interactions with explicit scales, responsive sizing and cleanup.
Community · chrisvoncsefalvay| Author | chrisvoncsefalvay |
|---|---|
| Licence | No licence file |
| Source | chrisvoncsefalvay/claude-d3js-skill · SKILL.md on GitHub |
| Project website | d3js.org |
| Works in | Claude Code · Codex, Gemini CLI, Cursor, Copilot |
| Read from the source on |
d3-viz guides custom D3.js charts, networks and geographic visualizations in JavaScript frameworks or plain JavaScript. It covers both D3-owned DOM and framework-rendered elements.
Examples include scales, axes, joins, responsive measurement, transitions and interaction. They are starting points: inspect data, lifecycle behavior, keyboard access and untrusted labels in the actual application.
From the skill's SKILL.md: D3.js Visualisation
What it does
- Choose the visual encoding and who owns the DOM.
- Prepare data, scales, margins and responsive dimensions.
- Add interaction, cleanup, accessible alternatives and performance checks.
What you get
- Visualization code, scales and framework integration.
- Adapted chart templates and data-handling guidance.
When to use it
- Create a custom chart beyond a standard chart library.
- Repair responsive sizing or D3/framework ownership conflicts.
When not to use it
- Expecting a 3D renderer or a chart that is accessible just because SVG has a label.
What it needs
- A JavaScript application and compatible D3 modules or a deliberately selected CDN build.
- A browser for rendering and interaction checks; no mandatory paid account or MCP service.
Files in the skill
| File or folder | What it is for |
|---|---|
SKILL.md | D3 workflow, chart patterns, interaction and accessibility guidance. |
references/ | Scale, color and visualization pattern references. |
assets/chart-template.jsx | Chart starter to adapt to the target framework. |
assets/interactive-template.jsx | Interaction starter with lifecycle responsibilities. |
Licence as found in the repository on 2026-11-18: No licence file.
Example prompts
Type one of these after installing; naming the skill makes sure it is used.
- Build a responsive D3 scatterplot with a data table and keyboard-accessible point details.
- Use D3 for scales while React owns this chart’s SVG nodes.
- Fix resize cleanup and avoid inserting untrusted data into tooltip HTML.
How to install d3-viz
D3 and source rights
Copy the complete root skill folder with assets and references; install D3 separately in the target project.
No licence file was present in this skill repository. D3’s own licence does not automatically license this separate community guidance.
A skill is a folder with a SKILL.md file. You install it once; the agent reads its short description at the start of each session and loads the full instructions only when a request matches. Pick the place you use:
Claude Code: copy the folder into your skills folder
Put the skill's folder in ~/.claude/skills/ to use it in every project on this computer, or in .claude/skills/ inside a repository to share it with everyone who works there (commit it).
git clone --depth 1 https://github.com/chrisvoncsefalvay/claude-d3js-skill.git
mkdir -p ~/.claude/skills/d3-viz
git -C claude-d3js-skill archive HEAD | tar -x -C ~/.claude/skills/d3-vizClaude Code notices new or changed skills in these folders during the session. If the skills folder did not exist when the session started, run /reload-skills once. Then type /d3-viz or just describe the task.
On Windows, run the commands in Git Bash or WSL, or copy the folder into the same place with File Explorer.
Codex, Gemini CLI, Cursor and GitHub Copilot
These agents read the same SKILL.md folders. The one folder all four accept inside a project is .agents/skills/, so this copies the skill there:
git clone --depth 1 https://github.com/chrisvoncsefalvay/claude-d3js-skill.git
mkdir -p .agents/skills/d3-viz
git -C claude-d3js-skill archive HEAD | tar -x -C .agents/skills/d3-viz| Agent | Project folder | Your user folder | Notes |
|---|---|---|---|
| OpenAI Codex | .agents/skills/ | ~/.agents/skills/ | Type $ or run /skills to pick a skill; Codex also chooses one when your task matches. |
| Gemini CLI | .agents/skills/.gemini/skills/ | ~/.agents/skills/~/.gemini/skills/ | Or install from Git with gemini skills install <git URL> --path <folder> --consent. Google replaced Gemini CLI with Antigravity CLI for free-tier and Google One users on 18 June 2026; Antigravity uses .agents/skills/ in a project and ~/.gemini/config/skills/ for you. |
| Cursor | .agents/skills/.cursor/skills/ | ~/.agents/skills/~/.cursor/skills/ | Type / in Agent chat to pick a skill. Cursor also reads Claude Code's .claude/skills/ folders. |
| GitHub Copilot | .github/skills/.agents/skills/.claude/skills/ | ~/.copilot/skills/~/.agents/skills/ | Works in Copilot CLI, the cloud agent, and agent mode in VS Code, Visual Studio and JetBrains (IDE support depends on the version). Or run gh skill install OWNER/REPOSITORY SKILL (public preview, GitHub CLI 2.90.0 or later). |
Sources for these steps
Checked against each vendor's documentation on 2026-11-14:
Geometry and ownership
Avoid two systems updating the same SVG nodes. Decide whether D3 or the framework owns each part and remove observers, events and simulations during cleanup.
Test pointer and keyboard interaction in the actual browser. A code sample and an ARIA label do not demonstrate complete accessibility.
Questions about d3-viz
Is this an official D3 skill?
No. It is community guidance; the separate website link points to official D3 documentation.
Must D3 control the DOM?
No. The source also describes using D3 for calculations while a framework renders elements.
Do the examples handle every data domain?
No. Validate domains, missing and signed values, formatting and scale choice for the actual dataset.
Are example tooltips safe for arbitrary labels?
Not automatically. Examples using HTML strings need escaping or text-only rendering for untrusted data.
More AI skills
Related skills
Dashmotion skill
Community · Mars (csthink)Create animated flow and architecture diagrams as self-contained HTML with structural checks.CSV Data Summarizer skill
Community · coffeefuelbumpInspect CSV structure, missing values and numeric summaries with local Python charts.GenAI Mesh Gradient skill
Community · Yanice Yang (9929y)Turn a visual brief into editable Figma gradients, layered SVG artwork or a parameterized browser rendering.Matplotlib skill
Community · K-DenseCreate scientific plots with explicit Figure and Axes control.AI Infographics skill
Community · K-DenseGenerate and review raster infographics through OpenRouter.Markdown Mermaid Writing skill
Community · Clayton Young / K-DenseWrite Markdown with version-aware Mermaid structural diagrams.