/presentation-studio:slidev-echartsfrom presentation-studio
Builds and troubleshoots Apache ECharts visualizations inside Slidev presentations. Use when Codex needs to add reusable ECharts Vue components to a Slidev deck, wire responsive chart containers, embed synchronized HyperFrames scenes, create click-driven data stories, tune chart modules and renderers, expose deterministic chart states for downstream capture, or validate charts in the browser; hand video composition and recording to the video skill.
Ships in presentation-studio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read the colorset output contract before authoring or auditing visual output. Apply one exact bundled palette to every authored output path and inspect rendered paint. Default to colorset1; declare colorset2 when its category distinctions are needed. Start category marks with opaque solid fills and no decorative borders; exhaust the selected palette's usable unique solids before outlined overflow variants. Choose black or white inside text by actual fill contrast.
For configurable column counts, regular grids, or masonry collections, read dynamic composition templates and copy assets/templates/slidev-layouts/ into the deck. Keep the three copied runtime files unchanged; customize wrapper data/props and use its display-title prefix for visible order. Prefer the copy-ready collection parent for fixed readable cards, actual-width column limits and capacity-driven pagination; use the engine directly for custom control. Declare CLI/theme/Vue dependencies, retain complete category identities, and run the bundled static checker before native build/capture. Inspect capacity, all pages and real inner-width changes; preserve readable fixed typography and every component. Keep literal three-row masonry distinct from vertical column masonry.
For HyperFrames scenes inside a slide or a dynamic collection cell, read HyperFrames integration. Generate new starter decks with the bundled scaffold; merge its player resources manually into existing decks. Use the reusable preview component for Play/Pause controls, map Slidev clicks to explicit seek times, and pause inactive scenes. Use colorset1 and local Open Sans inside authored starter scenes because iframe styles are isolated; preserve explicit styling in supplied custom compositions. Validate backward seeks, slide reentry, actual cell dimensions and a deterministic static-export state.
For native Mermaid fences in a Slidev deck, read automatic Mermaid defaults and copy the bundled assets/templates/slidev-diagram-style/ files into the deck root. Install the deck-wide setup before authoring diagrams so plain Mermaid syntax inherits colorset1, Open Sans, compact layout, solid category bodies, and readable captions without per-fence theme boilerplate. Select colorset2 once in setup/mermaid.ts when requested. Keep Mermaid and embedded PlantUML paint aligned with the selected deck palette, and inspect native shadow-root SVGs in light and dark UI states.
Use the static deck checker before building: uv run --script <skill-root>/scripts/check_mermaid_deck.py --deck deck --plain-mermaid --expect-blocks 3 for a requested three-block deck. It checks Mermaid fences and runtime inputs without modifying files. Slidev headmatter such as theme: default is separate from diagram source and is legal. Use native build/capture metadata for slide count and rendered geometry; do not count global --- separators or opening/closing fence lines as slides or Mermaid blocks.
For directed graph/route/mark-line output, read arrow contrast and placement. Apply the bundled option helper before rendering. For fixed native graph arrows, call insetGraphArrowRoutes(chart, 3) after setOption and after resize or click updates once native layout has settled. It preserves source endpoints and node geometry while trimming the native display route. Inspect actual shafts and complete heads at 3:1 against local backings, outside node silhouettes and clear of labels. Check settled click/focus states and the final export scale.
For authored conceptual graph/tree diagrams, read compact diagrams and default to the smallest readable layout: reduce surplus label padding, node/rank gaps and connector detours; keep text/head/stroke sizes, endpoint identity and separate route lanes. Compare a tighter candidate at the same slide scale after rendering; reject overlap, clipping, hidden heads, ambiguous crossings or lost click-state clearance and restore the local gap. Stop at the smallest passing candidate. Reapply native arrow clearance after layout changes. Preserve supplied chart geometry during capture-only work. For quantitative charts, optimize useful data dimensions and information density while preserving axes, scales, legends and mark separation; do not squeeze their plotting area by default.
For a small workflow or ranked conceptual graph, use the compact reference's
JSON contract and scripts/render_concept_graph.py for native SVG, editable
ECharts options and geometry review. Start ordinary flows with IDs, full
labels and directed relationships; let the helper compute ranks and content
bounds instead of guessing x/y. Render every unverified first draft with
--probe into fresh candidate paths. Read accepted; correct rejected
geometry before previewing it; never chain a probe to preview with &&.
Inspect an accepted native preview, then
render exact final paths without --probe. Use this sequence for prescribed
geometry, custom coordinates and later tighter candidates too. Final layout
and unexpected-input errors remain failures. Keep computed content dimensions
in the slide and inspect final native/click states in Chromium.
Keep ordinary relationship captions on native links and their caption adapter.
Do not bypass a rejected caption gate with unqualified graphic text; custom
graphic captions need native shaft/glyph clearance inspection in every state.
For prescribed rectangle dimensions, use node width/height and symbol: "rect" in that same contract. Run scripts/qualify_concept_graph.py for the
native delivery/resize/replay/reduced review and workspace preview; its
self-contained browser path avoids constructing a separate module server.
For native boxplots, read median contrast. With pinned ECharts 6.1.0, call qualifyBoxplotMedians(chart, echarts, selected) after setOption and before capture/export. Repeat after resize or click options, and normalize delivered SVG paint. Preserve opaque category bodies and native data; qualify the median independently rather than adding a contrasting box rim.
Keep dependencies and screenshots in the task workspace. For a deck under
deck/, run npm from that directory or with --prefix deck. Declare its
selected theme (including @slidev/theme-default for the default theme) in
the deck package before a noninteractive build. Read screenshots from their
actual workspace paths; avoid /tmp paths in Windows tool calls.
After building, use scripts/capture_deck.py --deck deck --output-dir deliverables/deck-capture --clicks <declared-click-count>. It serves the SPA
on an owned ephemeral port, captures native click/replay/resize/reduced-motion
states, and closes its browser and server. Inspect capture.json and the
workspace-owned PNGs. Count clicks after the initial state; one click produces
two story states.
components/ directory. Keep slides.md focused on composition, copy, and passing small props such as $clicks.echarts/core for production decks. Register every chart, component, feature, and renderer needed by the option with echarts.use(...).CanvasRenderer for dense or animated data, and SVGRenderer for moderate charts that need crisp static export.setOption when the option changes, resize through ResizeObserver, and dispose the ECharts instance on unmount.$clicks into a chart component and compute the ECharts option from a clamped step. Keep series id or data name stable so ECharts can animate diffs.npm run build, then open the deck in a browser and inspect representative chart slides. Confirm charts are nonblank, sized correctly, text is legible, and click-driven updates animate without leaving stale series.npm run build:html; normal Slidev SPA builds should be served over HTTP. Live HyperFrames scenes require the documented HTTP path; supply a deterministic fallback for direct-open HTML.video. Do not own recording, MP4/WebM conversion, audio, or final video validation here.Read references/integration-patterns.md when implementing or debugging a Slidev ECharts deck. It contains a reusable wrapper pattern, module registration guidance, Slidev click patterns, and a verification checklist.
For a named chart type, select its directly linked recipe below. Read references/chart-type-index.md for broad coverage or installer lookup. Each ECharts 6.1.0 chart reference covers data shape, animation, display, modules, and pitfalls.
Read references/video-handoff.md when a downstream video needs deterministic ECharts states, settle timing, or a deck handoff contract.
Read references/visual-tokens.md before creating or updating animated Slidev/ECharts examples, generated SVG motion slides, controls, or export fixtures. Use Open Sans for slide and chart text, Material Symbols Rounded for system icons, and the documented brand palette for editable chart options, UI controls, callouts, highlights, and generated assets.
When a Slidev/ECharts pattern proves reusable, update the owning reference before finishing. Use references/chart-type-index.md and the chart-specific files for chart data, modules, animation, and pitfalls; use references/integration-patterns.md for wrapper, lifecycle, click-story, or sizing patterns; use references/video-handoff.md only for deterministic state/export handoff fields. Include trigger, props/data contract, implementation steps, validation commands, and any export caveats.
Read only the resource matching the task.
Select the matching recipe and read it in full.
agents/openai.yaml (opens in a new tab)assets/examples/slidev-echarts/components/ChartTypeSlide.vue (opens in a new tab)assets/examples/slidev-echarts/components/CompositionScene.vue (opens in a new tab)assets/examples/slidev-echarts/components/DynamicLayoutExample.vue (opens in a new tab)assets/examples/slidev-echarts/components/ExecutiveDashboard.vue (opens in a new tab)assets/examples/slidev-echarts/components/GeneratedSvgMotion.vue (opens in a new tab)assets/examples/slidev-echarts/components/HyperframesExample.vue (opens in a new tab)assets/examples/slidev-echarts/components/MarketMixChart.vue (opens in a new tab)assets/examples/slidev-echarts/components/ResponsiveEChart.vue (opens in a new tab)assets/examples/slidev-echarts/components/RevenueStory.vue (opens in a new tab)assets/examples/slidev-echarts/data/categorical.json (opens in a new tab)assets/examples/slidev-echarts/data/distributions.json (opens in a new tab)assets/examples/slidev-echarts/data/financial.json (opens in a new tab)assets/examples/slidev-echarts/data/hierarchy.json (opens in a new tab)assets/examples/slidev-echarts/data/relationships.json (opens in a new tab)assets/examples/slidev-echarts/data/river.json (opens in a new tab)assets/examples/slidev-echarts/data/spatial.json (opens in a new tab)assets/examples/slidev-echarts/data/time-series.json (opens in a new tab)assets/examples/slidev-echarts/lib/chart-lab.js (opens in a new tab)assets/examples/slidev-echarts/lib/echarts-setup.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gvillarroel/plugins --plugin presentation-studio4 skills in this plugin
/d3-google-slidesTransfers D3 visuals and collections to Google Slides. Preserves editable charts, curves, maps, and frozen animation states, with verified raster layers, original HTML links, and timed media when needed./slidev-animejsBuilds, choreographs, troubleshoots, and validates Anime.js animations and embedded HyperFrames scenes inside Slidev presentations. Use when Codex needs to add reusable Vue animation components to a Slidev deck, wire Anime.js lifecycle cleanup with Slidev clicks and slide mounts, create CSS, keyframe, JavaScript object, stagger, timeline, playback, timer, animatable, easing, SVG, text, layout, draggable, scroll, scope, WAAPI, or engine-control demos, or verify animated Slidev decks in browser and export workflows./Other plugins' skills for the same job