Use when (1) user pastes or uploads CSV data and asks to generate a chart, graph, or visualization. (2) user wants to "plot" or "visualize" tabular data. (3) user provides data and says "make a chart", "show this as a graph", or "visualize this".
This skill solves the specific problem of: user has tabular CSV data and needs a visual chart — not the raw numbers.
This skill IS NOT:
This skill IS activated ONLY when: chart/graph/visualization intent + CSV data are both present.
/csv-to-chart#Default mode. Reads CSV data and outputs a chart specification or renders the chart directly.
When to use: User provides CSV and explicitly asks for a chart, plot, graph, or visualization.
/csv-to-chart/suggest#Suggests the most appropriate chart type based on data structure without generating the chart.
When to use: User is unsure which chart type fits their data.
Choose the most appropriate chart based on data shape:
Data ShapeRecommended Chart1 numeric col + 1 category colBar chart (vertical or horizontal)2+ numeric cols, 1 category colGrouped/stacked bar, line1 time-series numeric colLine chart2 numeric cols (correlation)Scatter plotProportions summing to 100%Pie / donut chartSingle numeric columnHistogram3+ numeric cols, many rowsHeatmap or radar
If user specified a chart type, validate it makes sense for the data; warn if mismatched.
Produce chart using a library appropriate to context:
matplotlib or plotlychart.js or plotly.jsmermaid flowchart for simple dataOutput the complete, runnable code block with the chart. Include axis labels, title, and legend.
A good output:
A bad output:
ScenarioBad OutputGood OutputMonthly sales dataLine chart with year as Y-axisLine chart with month on X, sales on Y, labeled axesProduct categoriesPie chart with 20 slicesHorizontal bar chart, top 10 + "Other"Two numeric columnsStatic image without contextScatter plot with axis labels and trend lineCSV with missing valuesDrops rows silently"Note: 3 rows omitted due to missing Q3 sales; treated as 0"
references/ — Chart type decision tree, code templates for plotly/matplotlib/chart.js