syncfusion-react-sankey — Claude Code skill: Sankey charts
A skill that walks your coding agent through building Sankey diagrams in React with the Syncfusion chart component: nodes, links, legend, tooltips and export.
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sankey -a claude-codeWhat syncfusion-react-sankey does
The skill covers SankeyComponent from @syncfusion/ej2-react-charts. Your agent gets instructions for wiring nodes and links with SankeyNodeDirective and SankeyLinkDirective, plus labels, legend, tooltips, click events and styling. Separate sections handle RTL layout, accessibility and diagram export.
Inside sits a set of reference files: references/getting-started.md for install and module setup, references/nodes-and-links.md for the data shape, then references/labels-and-positioning.md, references/legend-and-display.md, references/interactivity.md, references/appearance-and-styling.md, references/accessibility-and-orientation.md and references/export-and-print.md. API listings for props, events and methods round it out. The agent pulls the one file it needs instead of the whole bundle.
You need React and the @syncfusion/ej2-react-charts package in the project, and services such as SankeyTooltip and SankeyLegend only activate through Inject. Skip that and the chart renders without tooltips or a legend — worth checking first when something looks missing.
What it helps with
- map energy flows from sources to consumers
- break a process into nodes and links
- build an interactive node-link chart with tooltips
- add a legend and labels to a Sankey diagram
- export a flow diagram as an image
Example prompts for the agent
- Build a React Sankey chart of energy flows with Syncfusion
- Add tooltips and a bottom legend to this Sankey diagram
- Set up PNG export for the Sankey chart
How to install syncfusion-react-sankey
1Skills CLI (Vercel)
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sankey -a claude-code2Manually: put the files in place
~/.claude/skills/syncfusion-react-sankey/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/syncfusion-react-sankey/
1Skills CLI (Vercel)
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sankey -a codex2Manually: put the files in place
.agents/skills/syncfusion-react-sankey/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sankey -a cursor2Manually: put the files in place
.cursor/skills/syncfusion-react-sankey/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install syncfusion/react-ui-components-skills syncfusion-react-sankey2Manually: put the files in place
.github/skills/syncfusion-react-sankey/SKILL.md1Skills CLI (Vercel)
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sankey -a gemini-cli2Platform CLI
gemini skills install https://github.com/syncfusion/react-ui-components-skills --path skills/syncfusion-react-sankeyManually: put the files in place
.devin/skills/syncfusion-react-sankey/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sankey -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about syncfusion-react-sankey
How do I install syncfusion-react-sankey in Claude?
Run npx skills add syncfusion/react-ui-components-skills --skill syncfusion-react-sankey -a claude-code. The skill lands at ~/.claude/skills/syncfusion-react-sankey/SKILL.md.
What does syncfusion-react-sankey do?
It gives your agent instructions for the Syncfusion Sankey component in React: nodes, links, labels, legend, tooltips, events, styling, RTL, accessibility and export.
What does the component need to work?
React and the @syncfusion/ej2-react-charts package. Services like SankeyTooltip, SankeyLegend and SankeyExport are registered through Inject — without them those features stay off.