svelte-layerchart — Claude Code skill: what it does, how to install
svelte-layerchart — a skill for Svelte 5 chart work with LayerChart, covering tooltip snippets, chart context, gradients, highlights, and axes.
no license 111 installs ★ 96 updated 2026-10-12
npx skills add spences10/svelte-skills-kit --skill svelte-layerchart -a claude-codeWhat svelte-layerchart does
This skill guides chart component work with LayerChart in Svelte 5. It focuses on snippet syntax for tooltips, chart context, and gradients, with patterns for highlights and axes. Tooltip modes include band, bisect-x, quadtree-x, and quadtree, each suited to a different chart shape.
The included patterns cover Area, Bar, Pie, and Calendar charts. There are also examples for ForceGraph plus zoom and pan behavior. Your project needs layerchart and d3-scale; without those packages, the documented examples cannot be built.
The skill can be installed for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode. Its Svelte 5 examples use snippets such as data, context, and gradient rather than the older let:data form.
What it helps with
- build an Area or Bar chart with LayerChart
- choose a tooltip mode for time-series data
- type the data passed into a tooltip snippet
- add a gradient or highlight points
- implement zoom and pan for a graph
Example prompts for the agent
- Build a Svelte 5 Area chart from
salesDataand usebisect-xfor its tooltip. - Show how to read chart
contextinside a snippet and add zoom and pan behavior. - Replace a
let:datatooltip with a typed snippet usingMyType, then configurebandfor a bar chart.
How to install svelte-layerchart
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-layerchart -a claude-code2Manually: put the files in place
~/.claude/skills/svelte-layerchart/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/svelte-layerchart/
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-layerchart -a codex2Manually: put the files in place
.agents/skills/svelte-layerchart/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-layerchart -a cursor2Manually: put the files in place
.cursor/skills/svelte-layerchart/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install spences10/svelte-skills-kit plugins/svelte-skills/skills/svelte-layerchart2Manually: put the files in place
.github/skills/svelte-layerchart/SKILL.md1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-layerchart -a gemini-cli2Platform CLI
gemini skills install https://github.com/spences10/svelte-skills-kit --path plugins/svelte-skills/skills/svelte-layerchartManually: put the files in place
.devin/skills/svelte-layerchart/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-layerchart -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 svelte-layerchart
How do I install svelte-layerchart in Claude Code?
Run npx skills add spences10/svelte-skills-kit --skill svelte-layerchart -a claude-code, then use ~/.claude/skills/svelte-layerchart/SKILL.md.
What does svelte-layerchart do?
It provides LayerChart patterns for Svelte 5, including snippets for tooltips, chart context, and gradients, plus examples for chart types and tooltip modes.
Which packages are needed for svelte-layerchart examples?
The project needs layerchart and d3-scale. Tooltip mode depends on the chart, such as band for bar charts or bisect-x for time-series views.