plotting
FreeNo executable scriptsNot checkedCreate standardized charts and visual assets from analytics query results. Prefer dependency-free plain HTML/CSS/JavaScript/SVG for interactive exploratory…
by cline★ 48 GitHub starsAbout this skill
Plotting
Create charts when they make the analysis easier to understand or when the user requests a report/presentation artifact.
First goal: create a useful local plot artifact from a bounded query result. Do not turn a plotting request into a dashboard, presentation builder, or broad report unless the user explicitly asks for that.
When to plot
Plot for:
- time-series trends
- before/after comparisons
- segment comparisons
- distributions and percentiles
- funnels
- presentation/report assets
Avoid plotting when the metric definition or query is still uncertain unless the chart is clearly labeled exploratory.
Do not show charts too early by default when doing exploratory analysis if the metric, population, time window, or grouping could bias interpretation. Prefer one concise clarification question or an explicitly labeled exploratory chart.
Plot intent contract
Before generating a plot, know or infer:
- chart type
- x-axis
- y-axis / primary metric
- grouping, color, or breakdown dimension
- time window and filters
- source query/model/table
- audience: exploratory, report-ready, presentation/blog asset, or quick internal check
If the mapping is obvious from the user's request or the result shape, proceed and state the inferred mapping in the response. If multiple reasonable mappings exist, ask one concise clarification question before plotting. For report-ready or presentation assets, confirm ambiguous choices before generating.
Keep simple plotting requests lightweight. Do not ask an exhaustive questionnaire when the user has already provided enough context.
Default chart selection
Use these defaults unless the user asks otherwise:
| Result shape | Default chart |
|---|---|
| date/time + one numeric metric | line chart |
| date/time + one numeric metric + one low-cardinality category | multi-line chart colored by category |
| category + one numeric metric | sorted bar chart |
| ordered funnel/stage + count or rate | ordered bar or funnel-style chart |
| numeric distribution | histogram or box plot; ask if the intended distribution view is unclear |
| multiple numeric metrics | ask which metric to emphasize unless one is clearly primary |
For high-cardinality categories, choose a bounded top-N only when the ranking metric is clear. Default to top 5 for multi-line time series and top 10 for bar charts. State the top-N rule in the caveats.
Choose the chart based on analytical intent, not only result shape:
- Trend over time: line chart, small multiples, slope chart, or indexed trend.
- Compare categories/rankings: sorted bar, dot plot, or lollipop.
- Part-to-whole: stacked bar/area only when composition is the point; avoid pie/donut except for very simple cases.
- Distribution: histogram, box plot, violin, strip/beeswarm, or percentile summary.
- Relationship: scatterplot, heatmap, or connected scatter when order matters.
If the intended message is unclear, ask one concise question such as: "Should this emphasize absolute volume, trend shape, ranking, composition, distribution, or relationship?"
Complexity limits for the first pass
- Use one x-axis and one primary y-axis by default.
- Use at most one grouping/color dimension by default.
- Avoid dual-axis charts unless explicitly requested.
- Avoid dense legends, many small multiples, or complex multi-measure charts in the first pass.
- Prefer basic line and bar charts for MVP plotting.
- For interactive MVP plotting, do not default to Plotly. Prefer plain HTML/CSS/JavaScript/SVG unless the user requests a specific charting library or the interaction would be unreasonably complex to implement cleanly.
- Include uncertainty/error bars only when the query explicitly provides uncertainty values or the user asks for them.
- If a chart would need substantial transformation or statistical modeling, explain the needed transformation before generating it.
Avoid common chart traps:
- Do not create spaghetti charts. If a time-series chart has too many lines, overlapping lines, or hard-to-read labels, reduce to top-N, highlight a subset, facet into small multiples, or ask what to focus on.
- Do not use a log scale as the automatic fix for one dominant series. Use log scale only when multiplicative/rate-of-change comparison is the intended message, and label it clearly.
- Do not use dual axes to compare unrelated metrics. Use separate panels, normalization, percent change, or another chart type.
- Do not use 3D, rainbow palettes, radial bars, radar charts, or pie/donut charts by default for business/reporting assets.
Chart standards
- Use a clear, factual title and subtitle.
- By default, chart text should explain what is plotted, not interpret what it means.
- Label axes with units, but avoid repeating the same unit in title, subtitle, axis title, and panel labels.
- Prefer a 0 baseline for y-axes, especially for counts, volumes, revenue, rates, proportions, and comparison charts unless there is a strong analytical reason
Install plotting in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the plotting skill do?
Create standardized charts and visual assets from analytics query results. Prefer dependency-free plain HTML/CSS/JavaScript/SVG for interactive exploratory charts; use local plotting tools such as matplotlib, seaborn, or Plotly when static/report-ready exports or specialized charting libraries are more appropriate. Use for trends, comparisons, distributions, report assets, CSV-to-chart work, and presentation-ready data visuals.
How do I install the plotting skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the plotting skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
by AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
by Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
by Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
by Anthropic