Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add spences10/svelte-skills-kit --skill svelte-layerchart -a claude-code
Open on GitHub

What 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 salesData and use bisect-x for its tooltip.
  • Show how to read chart context inside a snippet and add zoom and pan behavior.
  • Replace a let:data tooltip with a typed snippet using MyType, then configure band for a bar chart.

How to install svelte-layerchart

1Skills CLI (Vercel)

npx skills add spences10/svelte-skills-kit --skill svelte-layerchart -a claude-code

2Manually: put the files in place

~/.claude/skills/svelte-layerchart/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/svelte-layerchart/

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.

Similar skills

All skills for Frontend and UI →

From the same set10

The whole set →
sveltekit-structure sveltekit-structure — a Claude Code skill, also available for five other platforms. It feeds the agent SvelteKit routing, layouts, error boundaries and SSR notes. CX Codex +1 1,100installs svelte-components Tells your agent how to build Svelte components: headless libraries, custom elements, and forms that cannot wrap their inputs. CX Codex +1 572installs svelte-template-directives svelte-template-directives is a Claude Code skill for Svelte template directives. It comes into play when working with DOM elements, dynamic markup, or third-party libraries. CX Codex +1 550installs sveltekit-data-flow Teaches your AI coding assistant proper SvelteKit data flow patterns, from form actions and load functions to serialization and cache invalidation. CX Codex +1 516installs sveltekit-remote-functions sveltekit-remote-functions teaches your agent the query(), form(), command() and prerender() patterns for *.remote.ts files. Useful once remote functions are switched on in your SvelteKit app. CX Codex +1 432installs svelte-deployment The svelte-deployment skill for Claude Code provides notes for shipping SvelteKit apps: choosing an adapter, fixing pnpm and Vite versions, publishing a library, and adding PWA support. CX Codex +1 253installs ecosystem-guide ecosystem-guide is a Claude Code skill for choosing MCP servers, managing skill activation, and preserving context. CX Codex +1 205installs svelte-styling svelte-styling is a Claude Code skill that guides Svelte component styling with scoped CSS, custom properties, and style:. It covers runtime values and styles for child components. CX Codex +1 137installs

Project sponsors

Companies that keep this analytics open