.claude/skills/ts-d3/SKILL.md
Assists with building custom interactive data visualizations using D3.js. Use when creating charts, graphs, maps, force layouts, or hierarchical diagrams that require fine-grained control beyond what charting libraries provide. Trigger words: d3, data visualization, chart, svg, scales, force graph, treemap, choropleth.
npx skillsauth add eliferjunior/Claude d3Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
D3.js is a low-level JavaScript library for building custom, interactive data visualizations by binding data to DOM elements. It provides scales, axes, shape generators, geographic projections, force simulations, and hierarchical layouts, giving developers full control over the visual output while integrating with React through computed scales and layouts.
.data(dataset).join("element") (D3 v6+) for the enter/update/exit pattern, setting attributes and styles from bound data via accessor functions.scaleLinear for continuous, scaleBand for categorical bars, scaleTime for dates, scaleOrdinal for color mapping) and always set domain from the data using d3.extent().d3.axisBottom(scale) or d3.axisLeft(scale), configure ticks and format labels with d3.format(), and regenerate on resize.d3.line(), d3.area(), d3.arc(), d3.pie(), d3.stack()) and layout functions (d3.treemap(), d3.forceSimulation(), d3.geoPath()) for complex visualizations..transition().duration(750)) for smooth data updates, tooltips on hover, and brushing/zooming for exploration.useMemo and using useEffect with refs for D3-driven animations.User request: "Create a dashboard with line charts, bar charts, and a pie chart from API data"
Actions:
d3.scaleTime() for the x-axis and d3.scaleLinear() for the y-axisd3.line() with smooth curve interpolation and area filld3.scaleBand() with staggered enter transitionsd3.pie() and d3.arc() with hover tooltipsOutput: A responsive dashboard with animated charts that update smoothly when data changes.
User request: "Visualize relationships between entities as an interactive network graph"
Actions:
d3.forceSimulation() with forceManyBody, forceLink, and forceCenterd3.scaleOrdinal() coloring by categoryd3.drag() to reposition nodesd3.zoom() and tooltips on hoverOutput: An interactive force-directed graph with draggable nodes, color-coded categories, and zoom navigation.
.join() instead of manual enter/update/exit for simpler, cleaner data binding.d3.extent()) rather than hardcoding ranges.d3.format() for axis labels and tooltips: ",.0f" for thousands, "$.2f" for currency.easeCubicInOut for smooth data update animations.ResizeObserver callbacks.aria-label to SVG elements and meaningful <title> tags for accessibility.development
Expert guidance for Fireworks AI, the platform for running open-source LLMs (Llama, Mixtral, Qwen, etc.) with enterprise-grade speed and reliability. Helps developers integrate Fireworks' inference API, fine-tune models, and deploy custom model endpoints with function calling and structured output support.
development
Convert any website into clean, structured data with Firecrawl — API-first web scraping service. Use when someone asks to "turn a website into markdown", "scrape website for LLM", "Firecrawl", "extract website content as clean text", "crawl and convert to structured data", or "scrape website for RAG". Covers single-page scraping, full-site crawling, structured extraction, and LLM-ready output.
tools
Expert guidance for Firebase, Google's platform for building and scaling web and mobile applications. Helps developers set up authentication, Firestore/Realtime Database, Cloud Functions, hosting, storage, and analytics using Firebase's SDK and CLI.
development
When the user needs to build file upload functionality for a web application. Use when the user mentions "file upload," "image upload," "upload endpoint," "multipart upload," "presigned URL," "S3 upload," "file validation," "upload to cloud storage," or "accept user files." Handles upload endpoints, file validation (type, size, magic bytes), cloud storage integration, and upload status tracking. For image/video processing after upload, see media-transcoder.