用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/k2b-dev/nessi --skill chart命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | chart |
| description | Generate bar, line, pie, or scatter charts from CSV files or inline data. Pipe table query output into chart. |
| metadata | {"nessi":{"command":"chart","enabled":true}} |
Create data visualizations as SVG. Charts render inline in the chat with a download button.
There are 4 chart types: bar, line, pie, scatter. Each reads data from a CSV file or accepts inline values.
| Type | Best for | X axis | Y axis |
|---|---|---|---|
bar | Comparing categories | Category names | One numeric column |
line | Trends over time | Time labels | One or more numeric columns |
pie | Proportions of a whole | Category names | One numeric column |
scatter | Correlation between two numbers | Numeric column | Numeric column |
Always use this when data comes from table query. Pass the CSV path as the first argument:
chart bar /output/data.csv --x "region" --y "revenue" --title "Revenue by Region"
chart pie /output/data.csv --x "category" --y "amount" --title "Distribution"
chart line /output/data.csv --x "quarter" --y "revenue,cost,profit" --title "Trends"
chart scatter /output/data.csv --x "frequency" --y "volume" --label "customer" --title "Segmentation"
--x "column" — the label/category column (required)--y "column" — the value column (required). For line, use comma-separated columns for multiple series--label "column" — (scatter only) show point names next to dots--title "text" — chart title--output /output/name.svg — custom output pathFor quick charts without a file. Use --labels and --values:
chart bar --labels "Jan,Feb,Mar" --values "100,200,150" --title "Sales"
chart pie --labels "Chrome,Firefox,Safari" --values "65,20,15" --title "Browsers"
chart line --labels "Q1,Q2,Q3,Q4" --series '{"Revenue":[100,200,150,250],"Cost":[80,120,100,180]}'
Note: scatter does not support inline mode — it always requires a CSV file.
This is the typical workflow for data analysis:
# Step 1: Aggregate data from a spreadsheet
table query /input/sales.xlsx \
--select "region, sum(revenue) as Revenue, count() as Orders" \
--group "region" --sort "Revenue desc" \
--output /output/by-region.csv
# Step 2: Create chart from the aggregated CSV
chart bar /output/by-region.csv --x "region" --y "Revenue" --title "Revenue by Region"
# Step 3: Display inline with download button
present /output/bar-chart.svg
table query /input/data.xlsx \
--select "customer, count() as Frequency, sum(amount) as Volume" \
--group "customer" --limit 20 \
--output /output/segments.csv
chart scatter /output/segments.csv --x "Frequency" --y "Volume" --label "customer" --title "Customer Segmentation"
present /output/scatter-chart.svg
table query. Do not manually copy values./output/ by default.present after generating a chart to display it inline.