Create terminal charts and plots from CSV or JSON data using YouPlot and termgraph without leaving the command line.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install data-viz或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install data-viz⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/data-viz/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: data-viz description: "Create data visualizations from the command line. Generate charts, graphs, and plots from CSV/JSON data without leaving the terminal." homepage: https://github.com/red-data-tools/YouPlot metadata: { "openclaw": { "emoji": "📊", "requires": { "bins": ["curl"] }, "install": [ { "id": "uplot-gem", "kind": "shell", "command": "gem install youplot", "bins": ["uplot"], "label": "Install YouPlot (Ruby gem)", }, { "id": "termgraph-pip", "kind": "shell", "command": "pip install termgraph", "bins": ["termgraph"], "label": "Install termgraph (Python)", }, ], }, } ---
Create terminal-based charts and visualizations from CSV, JSON, or piped data.
YouPlot (uplot) creates Unicode charts in the terminal.
echo -e "Apple,30\nBanana,45\nCherry,20\nDate,35" | uplot bar -d, -t "Fruit Sales"
seq 1 20 | awk '{print $1, sin($1/3)*10+10}' | uplot line -t "Sine Wave"
awk 'BEGIN{for(i=0;i<1000;i++)print rand()}' | uplot hist -t "Random Distribution" -n 20
awk 'BEGIN{for(i=0;i<100;i++)print rand()*100, rand()*100}' | uplot scatter -t "Random Points"
# Bar chart from CSV
cat sales.csv | uplot bar -d, -H -t "Monthly Sales"
# Line chart with headers
cat timeseries.csv | uplot line -d, -H -t "Stock Price"
# Extract data from JSON and plot
curl -s "https://api.example.com/data" | jq -r '.items[] | "\(.name),\(.value)"' | uplot bar -d,
Simple horizontal bar charts:
echo -e "2020 50\n2021 75\n2022 90\n2023 120" | termgraph
With colors:
echo -e "Sales 150\nCosts 80\nProfit 70" | termgraph --color green
For publication-quality charts:
# Quick line plot
gnuplot -e "set terminal dumb; plot sin(x)"
# From data file
gnuplot -e "set terminal dumb; plot 'data.txt' with lines"
Inline mini-charts:
# Using spark (if installed)
echo "1 5 22 13 5" | spark
# Output: ▁▂█▅▂
# Pure bash sparkline
data="1 5 22 13 5"; min=$(echo $data | tr ' ' '\n' | sort -n | head -1); max=$(echo $data | tr ' ' '\n' | sort -n | tail -1); for n in $data; do printf "\u258$((7-7*($n-$min)/($max-$min)))"; done; echo
Format data as tables:
# Using column
echo -e "Name,Score,Grade\nAlice,95,A\nBob,82,B\nCarol,78,C" | column -t -s,
# Using csvlook (csvkit)
cat data.csv | csvlook
# Fetch and plot stock data (using Alpha Vantage free API)
curl -s "https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=AAPL&apikey=demo" | \
jq -r '.["Time Series (Daily)"] | to_entries | .[:20] | reverse | .[] | "\(.key) \(.value["4. close"])"' | \
uplot line -t "AAPL Stock Price"
# CPU usage over time
for i in {1..20}; do
top -bn1 | grep "Cpu(s)" | awk '{print 100-$8}'
sleep 1
done | uplot line -t "CPU Usage %"
# Measure and plot response times
for i in {1..10}; do
curl -s -o /dev/null -w "%{time_total}\n" https://example.com
done | uplot line -t "Response Time (s)"
-d, for comma-delimited data, -d'\t' for tabs-H when your data has headershead or tail to limit data pointsjq for JSON data extractionwatch for live updating charts: watch -n1 'command | uplot bar'安装 Data Viz 后,可以对 AI 说这些话来触发它
Help me get started with Data Viz
Explains what Data Viz does, walks through the setup, and runs a quick demo based on your current project
Use Data Viz to create terminal charts and plots from CSV or JSON data using YouPlo...
Invokes Data Viz with the right parameters and returns the result directly in the conversation
What can I do with Data Viz in my data & analytics workflow?
Lists the top use cases for Data Viz, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/data-viz/ 目录(个人级,所有项目可用),或 .claude/skills/data-viz/(项目级)。重启 AI 客户端后,用 /data-viz 主动调用,或让 AI 根据上下文自动发现并使用。
Data Viz 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Data Viz 可免费安装使用。请查阅仓库了解许可证信息。
Create terminal charts and plots from CSV or JSON data using YouPlot and termgraph without leaving the command line.
Data Viz 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Data Viz
Identifies repetitive steps in your workflow and sets up Data Viz to handle them automatically