Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计提醒

openclaw-ggsqlOpenClaw ggsql 测试

Agent Skill

openclaw-ggsql 用于辅助 Python 项目开发、测试和数据处理,适合在 OpenClaw 中需要阅读 Python 代码、运行测试或整理脚本流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

917

周安装

39

GitHub Stars

公开资料未说明

下载量

321
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-ggsql(OpenClaw ggsql 测试)
来源仓库:https://github.com/fanzhidongyzby/openclaw-ggsql
安装命令:
openclaw skills install openclaw-ggsql
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-ggsql

简介

使用 ggsql 语法将表格数据可视化为图表,无需 Python/R 即可完成基础绘图。

  • 适合快速探索数据趋势或生成报告初稿,支持散点图、柱状图等多种类型。
  • 当用户希望直观展示查询结果时触发,输入 SQL 扩展语句自动生成图像描述。
  • 依赖后端渲染引擎,大数据集可能影响性能,建议采样后再绘图以提升响应速度。
  • 输出为文本描述的图表规格,需配合其他工具生成实际图像,暂不支持直接导出 PNG。

SKILL.md

name
openclaw-ggsql
description
Generate charts from tabular data using ggsql SQL syntax extension. Use when: user wants to visualize data as charts without Python/R. Supports: scatter plots, line charts, bar charts, histograms, boxplots, heatmaps. Based on Grammar of Graphics.
homepage
https://ggsql.org
metadata
{ "openclaw": { "emoji": "📊", "requires": { "bins": [], "skills": ["web-access"] } } }

ggsql Visualization Skill

Generate charts from tabular data using ggsql SQL syntax.

Overview

ggsql extends SQL with visualization capabilities based on the Grammar of Graphics. Write familiar SQL queries, add visualization clauses, and get charts - no Python/R needed.

When to Use

USE this skill when:

  • "Visualize this data as a scatter plot"
  • "Create a histogram of X"
  • "Draw a bar chart comparing Y across categories"
  • "Plot time series data"
  • "Generate heatmap from table"
  • User provides tabular data and wants a chart

When NOT to Use

DON'T use this skill when:

  • Interactive/dynamic charts → use JavaScript libraries
  • Complex statistical visualizations → use Python/R
  • Large-scale data dashboards → use dedicated tools
  • 3D visualizations → use specialized software

Input Schema

data: <CSV file path | JSON array | SQL table reference>
chart_type: point | line | bar | histogram | boxplot | violin | density | heatmap | pie
mapping:
  x: <column name>        # Required for most charts
  y: <column name>        # Required for point, line, bar, boxplot
  fill: <column name>     # Optional, for color encoding
  color: <column name>    # Optional, for stroke color
  shape: <column name>    # Optional, for point shapes
  size: <column name>     # Optional, for point sizes
options:
  title: <chart title>              # Optional
  subtitle: <chart subtitle>        # Optional
  x_label: <x-axis label>           # Optional
  y_label: <y-axis label>           # Optional
  binwidth: <number>                # For histogram
  facet: <column name>              # For small multiples
  facet_by: <column name>           # For 2D faceting
  scale_x: continuous | discrete | binned | log10
  scale_y: continuous | discrete | binned | log10
  scale_fill: continuous | discrete | binned

Output

  • SVG chart file (primary)
  • PNG chart file (optional)
  • Embedded base64 image for chat display

Chart Types and Templates

Scatter Plot (point)

Required mapping: x, y Optional mapping: fill, color, shape, size

VISUALISE {x} AS x, {y} AS y, {fill} AS fill
FROM {data_source}
DRAW point
LABEL title => '{title}', x => '{x_label}', y => '{y_label}'

Line Chart (line)

Required mapping: x, y Optional mapping: color, linetype

VISUALISE {x} AS x, {y} AS y, {color} AS color
FROM {data_source}
DRAW line
LABEL title => '{title}', x => '{x_label}', y => '{y_label}'

Bar Chart (bar)

Required mapping: x, y (or auto-count with just x) Optional mapping: fill

SELECT {x}, COUNT(*) as count FROM {data_source}
GROUP BY {x}
VISUALISE {x} AS x, count AS y, {fill} AS fill
DRAW bar
LABEL title => '{title}', x => '{x_label}', y => '{y_label}'

Histogram (histogram)

Required mapping: x Optional mapping: fill, binwidth

VISUALISE {x} AS x, {fill} AS fill
FROM {data_source}
DRAW histogram
  SETTING binwidth => {binwidth}
LABEL title => '{title}', x => '{x_label}'

Boxplot (boxplot)

Required mapping: x, y (x categorical, y numeric) Optional mapping: fill

VISUALISE {x} AS x, {y} AS y, {fill} AS fill
FROM {data_source}
DRAW boxplot
LABEL title => '{title}', x => '{x_label}', y => '{y_label}'

Heatmap (tile)

Required mapping: x, y, fill Optional mapping: none

VISUALISE {x} AS x, {y} AS y, {fill} AS fill
FROM {data_source}
DRAW tile
SCALE BINNED fill
LABEL title => '{title}', x => '{x_label}', y => '{y_label}'

Density Plot (density)

Required mapping: x Optional mapping: fill

VISUALISE {x} AS x, {fill} AS fill
FROM {data_source}
DRAW density
LABEL title => '{title}', x => '{x_label}'

Violin Plot (violin)

Required mapping: x, y (x categorical, y numeric) Optional mapping: fill

VISUALISE {x} AS x, {y} AS y, {fill} AS fill
FROM {data_source}
DRAW violin
LABEL title => '{title}', x => '{x_label}', y => '{y_label}'

Pie Chart (pie with polar projection)

Required mapping: fill Optional mapping: none

SELECT {fill}, COUNT(*) as count FROM {data_source}
GROUP BY {fill}
VISUALISE {fill} AS fill, count AS y
DRAW bar
PROJECT polar
LABEL title => '{title}'

Scale Types

ScaleUse CaseExample
CONTINUOUSNumeric valuesSCALE CONTINUOUS x FROM [0, null]
DISCRETECategoriesSCALE DISCRETE fill TO ['red', 'blue']
BINNEDBinning continuousSCALE BINNED fill
ORDINALOrdered categoriesSCALE ORDINAL x
IDENTITYDirect valuesSCALE IDENTITY color
log10Log transformSCALE CONTINUOUS y VIA log10

Faceting (Small Multiples)

1D Faceting

VISUALISE {x} AS x, {y} AS y
FROM {data_source}
DRAW point
FACET {facet_column}

2D Faceting

VISUALISE {x} AS x, {y} AS y
FROM {data_source}
DRAW point
FACET {facet_column} BY {facet_by_column}

Multi-layer Charts

Combine multiple DRAW clauses:

VISUALISE {x} AS x, {y} AS y
FROM {data_source}
DRAW line
  MAPPING {group} AS color
DRAW point
  MAPPING {group} AS fill
LABEL title => '{title}'

Execution Methods

Method 1: WASM Playground (Recommended for Testing)

  1. Visit https://ggsql.org/wasm/
  2. Use built-in datasets: ggsql:penguins, ggsql:airquality
  3. Upload CSV via "Upload Data" button
  4. Run SQL and save as SVG/PNG

Method 2: CLI (Local Execution)

# Install
cargo install ggsql-cli

# Run
ggsql-cli run -f input.sql -o output.svg

Method 3: Jupyter Kernel

uv tool install ggsql-jupyter
ggsql-jupyter --install

Examples

Example 1: Scatter Plot with Color

Input:

data: penguins.csv
chart_type: point
mapping:
  x: bill_length_mm
  y: bill_depth_mm
  fill: species
options:
  title: Penguin Bill Dimensions
  x_label: Bill Length (mm)
  y_label: Bill Depth (mm)

Generated SQL:

SELECT * FROM 'penguins.csv'
VISUALISE bill_length_mm AS x, bill_depth_mm AS y, species AS fill
DRAW point
LABEL
  title => 'Penguin Bill Dimensions',
  x => 'Bill Length (mm)',
  y => 'Bill Depth (mm)'

Example 2: Histogram

Input:

data: sales.csv
chart_type: histogram
mapping:
  x: revenue
options:
  title: Revenue Distribution
  binwidth: 1000

Generated SQL:

SELECT * FROM 'sales.csv'
VISUALISE revenue AS x
DRAW histogram
  SETTING binwidth => 1000
LABEL title => 'Revenue Distribution'

Example 3: Faceted Scatter Plot

Input:

data: penguins.csv
chart_type: point
mapping:
  x: bill_length_mm
  y: bill_depth_mm
  fill: species
options:
  title: Penguins by Island
  facet: island

Generated SQL:

SELECT * FROM 'penguins.csv'
VISUALISE bill_length_mm AS x, bill_depth_mm AS y, species AS fill
DRAW point
FACET island
LABEL title => 'Penguins by Island'

Example 4: Multi-layer Chart

Input:

data: sales.csv
chart_type: multi
mapping:
  x: date
  y: revenue
  group: region
options:
  title: Revenue Trend by Region

Generated SQL:

SELECT * FROM 'sales.csv'
VISUALISE date AS x, revenue AS y
DRAW line
  MAPPING region AS color
DRAW point
  MAPPING region AS fill
LABEL title => 'Revenue Trend by Region'

SQL Generation Logic

When receiving YAML input:

  1. Parse chart_type to select template
  2. Validate required mapping fields
  3. Build VISUALISE clause from mapping
  4. Add DRAW clause with layer type
  5. Add optional clauses: SCALE, FACET, LABEL
  6. If data is CSV, use FROM 'path/to/file.csv'
  7. If data is table reference, use FROM table_name

Notes

  • ggsql is in alpha stage (v0.2.7), syntax may evolve
  • WASM Playground is the easiest way to test
  • No Python/R environment needed
  • Charts are static (SVG/PNG), not interactive
  • Grammar of Graphics philosophy: compose from layers, scales, coordinates

Resources

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.66%
按下载量换算236

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills