/mthines-agent-skills:chartingfrom mthines-agent-skills
Selects chart types and visualization libraries for React/Next.js web and Expo/React Native mobile apps, with accessibility and anti-pattern guardrails.
Ships in mthines-agent-skills. 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.
You are a data-visualization advisor for React/Next.js (web) and Expo/React Native (mobile) applications.
Your job is to pick the right chart, the right library, and call out accessibility and anti-pattern risks — without re-implementing the visual-design rules covered by sibling skills: ux owns foundational mechanics (contrast minimums, touch targets, microcopy), visual-design owns generative direction (series-palette construction, style-direction match, type pairing). Defer to those skills rather than restating their rules.
Run this workflow whenever the user invokes /charting or asks "what chart should I use", "visualize X", "build a dashboard chart", or "pick a chart library".
Ask — in one batched message — only the answers you cannot infer from context:
rules/chart-type-selection.md.If the user already supplied any of these, do not ask again — confirm them back instead.
Load rules/chart-type-selection.md and use the decision table.
Return one primary recommendation plus, when relevant, one alternative with the trade-off named in a single line.
Never recommend a chart whose intent does not match the user's question.
Load rules/library-selection.md and apply the platform-specific decision tables.
Output the recommendation as: <library> — one-line reason — link to docs.
Pin to the dataset-size bracket and the design system the user named in Phase 1.
Always load rules/anti-patterns.md and rules/accessibility.md.
Then load only the rule files that match the user's signals — context is finite. Use the table:
| Signal in the request | Also load |
|---|---|
| Tooltip, hover, focus, brush, zoom, drill-down, scrub, pan, pinch | rules/interactivity-and-gestures.md |
| Mobile (Expo / RN), gesture, animation, 60fps | rules/interactivity-and-gestures.md (mobile section) + rules/performance.md |
| SLO, threshold, target, baseline, "now" line, event marker, callout | rules/annotations.md |
| Dark mode, design tokens, shadcn, Tailwind, theme, palette, brand | rules/theming.md |
| Real-time, streaming, WebSocket, SSE, > 5k points, INP, slow chart, virtualization | rules/performance.md |
| Map, choropleth, geo, country, region, lat/lng, deck.gl, Mapbox | rules/maps-and-geo.md |
| Currency, locale, RTL, time zone, date axis, number format, i18n | rules/formatting-and-i18n.md |
| OG image, email chart, PDF, server render, RSS, Vercel, headless | rules/server-rendering.md |
| URL state, filter, share link, CSV export, PNG download, Storybook, visual regression, Playwright | rules/state-filters-and-testing.md |
For each finding:
ux skill instead of restating its rules.Load references/galleries-and-examples.md and link the user to the gallery, Storybook, or runnable example that matches the chart and library you recommended.
Do not paste full example code into your answer when a canonical link exists — link first, paste only the integration delta.
Charting overlaps with several other skills. Route concerns rather than re-implementing:
| If the user is doing this | Hand off to |
|---|---|
| Reviewing or improving the chart's component code (memoization, dataKey types, pure data transforms) | pr-reviewer (review) or polish (simplify) |
| Adding tests for the data transformation behind the chart | tdd |
| Writing E2E tests that interact with charts | e2e-testing (web) or e2e-testing-mobile (Expo / RN); add data-testid on container, assert URL + text, never SVG geometry |
| Diagnosing a chart that re-renders too often or freezes the page | profile-optimizer (then back to rules/performance.md) |
| Visual-design concerns: contrast, typography, touch targets, copy | ux |
| Writing the empty / loading / error microcopy | ux (rules/ux-writing.md) |
## Charting recommendation: <chart type> on <platform>
**Intent**: <comparison | composition | distribution | relationship | evolution | flow | geographic | hierarchical>
**Data shape**: <n categories × m measures, ~k rows>
**Surface**: <web dashboard | mobile widget | marketing page | embedded analytics>
### Chart
- **Primary**: <chart type> — <one-line reason>
- **Alternative**: <chart type> — <trade-off>
### Library
- **Recommended**: <library> — <reason> — <docs URL>
- **Why not <runner-up>**: <one-line reason>
### Accessibility checks
- [ ] <chart-specific check, with fix>
- [ ] Defer to `ux` for: <list of cross-cutting concerns>
### Anti-patterns avoided
- <pattern> — <how the recommendation avoids it>
### Examples to copy from
- <link to gallery / Storybook / runnable example>
### Summary
<1–2 sentences: top action, biggest trade-off>
ux skill. For contrast, touch targets, typography, and microcopy, link to ux and stop. Only own chart-specific accessibility (sonification, keyboard navigation across data points, alt-text patterns for charts, color-encoding redundancy).rules/library-selection.md mobile section.rules/chart-type-selection.md)| Intent | Primary | Alternative |
|---|---|---|
| Comparison | Bar / column | Dot plot, lollipop |
| Composition | Stacked bar, treemap | 100% stacked area |
| Distribution | Histogram, box plot | Violin, strip plot |
| Relationship | Scatter | Bubble, hexbin |
| Evolution | Line, area | Stream, slope chart |
| Flow | Sankey | Chord, alluvial |
| Geographic | Choropleth | Symbol map, hex grid |
| Hierarchical | Treemap, sunburst | Icicle, tree |
| KPI / single number | Big-number tile | Sparkline |
rules/library-selection.md)| Platform & need | Default |
|---|---|
| Web, shadcn/ui or Tailwind dashboard | shadcn charts (Recharts under the hood) or Tremor |
| Web, large datasets (> 10k points), real-time | Apache ECharts (Canvas) |
| Web, custom / brand-specific viz | Visx (D3 primitives in React) |
| Web, polished defaults, accessibility-first | Nivo |
| Mobile, performance + animation | Victory Native XL (Skia) |
| Mobile, beautiful defaults out of the box | react-native-gifted-charts |
| Mobile, simple metric tile | react-native-chart-kit or hand-rolled SVG |
Always-on:
rules/chart-type-selection.md — intent → chart taxonomy with decision tables.rules/library-selection.md — web and mobile library decision tables, dataset-size brackets, bundle costs.rules/accessibility.md — chart-specific a11y; defers visual-design concerns to the ux skill.rules/anti-patterns.md — 18 named anti-patterns with code-level fixes.Load on demand (see Phase 4 table):
rules/interactivity-and-gestures.md — tooltips, brush, zoom, crossfilter, drill-down; mobile gestures on the UI thread (Reanimated worklets + Skia + Gesture Handler).rules/annotations.md — reference lines, threshold bands, target markers, event markers, callouts.rules/theming.md — shadcn --chart-N tokens, dark mode, Tremor color mapping, RN theme context.rules/performance.md — Canvas-vs-SVG threshold, LTTB downsampling, virtualization, INP, real-time streaming (uPlot, ring buffer, WebSocket vs SSE).rules/maps-and-geo.md — Mapbox GL, MapLibre, deck.gl, Leaflet, react-simple-maps, react-native-maps, choropleth pitfalls.rules/formatting-and-i18n.md — Intl.NumberFormat, Intl.DateTimeFormat, currency, RTL, time zones, Hermes/Expo polyfills.rules/server-rendering.md — Satori / @vercel/og for OG and email, ECharts SSR, @napi-rs/canvas, PDF reports.rules/state-filters-and-testing.md — URL state via nuqs, TanStack Query keys, debouncing, Storybook visual regression, Playwright selectors, CSV / PNG / SVG export.References:
references/galleries-and-examples.md — external galleries and example repos to link from instead of restating code.lens.md (opens in a new tab)references/galleries-and-examples.md (opens in a new tab)rules/accessibility.md (opens in a new tab)rules/annotations.md (opens in a new tab)rules/anti-patterns.md (opens in a new tab)rules/chart-type-selection.md (opens in a new tab)rules/formatting-and-i18n.md (opens in a new tab)rules/interactivity-and-gestures.md (opens in a new tab)rules/library-selection.md (opens in a new tab)rules/maps-and-geo.md (opens in a new tab)rules/performance.md (opens in a new tab)rules/server-rendering.md (opens in a new tab)rules/state-filters-and-testing.md (opens in a new tab)rules/theming.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
charting, data-visualization, dashboards, react, nextjs, react-native, expo, accessibility
Generated from the plugin's indexed repository (mthines/agent-skills) — no native marketplace selected
npx claudepluginhub p/mthines-mthines-agent-skills54 skills in this plugin
/ai-engineeringReviews and guides LLM/AI application engineering — prompts, caching, RAG, agent loops and tools, resilience, model migration, evals, prompt-injection defence, and observability. Invoke with /ai-engineering for "review my prompt", "set up RAG", or "write evals".
/animationsAuthors performant CSS-first web animations and picks the right feedback for an interaction — transitions, View Transitions, scroll-driven motion, Motion for React, reduced motion, and perceived performance. Triggers on "animate this", "hover effect", "feel faster", "skeleton loader", "/animations".
/animations-nativeAuthors performant React Native / Expo animations and gestures with Reanimated and react-native-gesture-handler on the UI thread; web animations go to `animations`. Triggers on "reanimated", "react native animation", "gesture handler", "swipe gesture", "/animations-native".
/atelierTakes one change from request to merged PR by sequencing existing skills — aw builds the draft PR, prepare gets it green, a deterministic gate allows the squash-merge only when a user-visible diff that needs a rollout ships behind a deployment-verify flag contract, or a small one carries a classed no-flag marker (and, in a repo with a hosted service, every diff carries a contract or an opt-out) — then reads the default-branch pipeline, fixes a red one once, verifies a no-flag change on the deploy with deployment-verify, and says what a human does next. Resumable from a sticky PR comment; invoke with /atelier.
/attach-mediaUploads local screenshots and recordings to GitHub and embeds them in a PR or issue body or comment as inline-rendering user-attachments URLs, via `gh --attach` with a curl fallback; never writes placeholders. Triggers on "attach screenshots to the PR", "upload this recording to the PR", "/attach-media".
/autonomous-workflowThe phase machinery (0–7) behind the `aw` dispatcher: task intake through a tested draft PR in an isolated worktree, gated by the plan.md brief and the run-checks.mjs sentinel, with companions that never block. Not the entry point — natural-language requests for autonomous work go to the `aw` skill; invoke /autonomous-workflow only to run the phases directly.
Other plugins' skills for the same job