Skip to content

D3 Visualization skill

Build bespoke D3 charts and interactions with explicit scales, responsive sizing and cleanup.

Community · chrisvoncsefalvay
Authorchrisvoncsefalvay
LicenceNo licence file
Sourcechrisvoncsefalvay/claude-d3js-skill · SKILL.md on GitHub
Project websited3js.org
Works inClaude 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

This is a community skill by chrisvoncsefalvay, not checked by us or by Anthropic. Skills can tell the agent to run code, read files or call the network. Before installing, read its SKILL.md and every script in the folder, and look for anything that does not match what it says it does.

What it does

  1. Choose the visual encoding and who owns the DOM.
  2. Prepare data, scales, margins and responsive dimensions.
  3. 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 folderWhat it is for
SKILL.mdD3 workflow, chart patterns, interaction and accessibility guidance.
references/Scale, color and visualization pattern references.
assets/chart-template.jsxChart starter to adapt to the target framework.
assets/interactive-template.jsxInteraction 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-viz

Claude 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
AgentProject folderYour user folderNotes
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).
Only install skills you trust. Anthropic's advice is to use skills only from trusted sources, and to read every file of any other skill before using it: a skill can direct the agent to run commands, read files or send data in ways its description does not mention.

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

Skill categories