← 返回 Skills 市场
Viz Table
作者
charles-lpf
· GitHub ↗
· v1.0.0
· MIT-0
177
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install viz-table
功能描述
从 CSV/JSON 文件读取数据,使用 ECharts 生成可视化 HTML 图表(柱状图、折线图、饼图、环形图)并自动在浏览器中打开。用户提供文件路径时触发。
安全使用建议
This skill appears to do what it says, but it includes risky runtime behaviors you should consider before installing or using it:
- Client-side use of eval(): The SKILL.md instructs the page to compute user-entered formulas via eval(), which can execute arbitrary JavaScript. Replace eval() with a safe expression evaluator (e.g., mathjs) or strictly validate/parse formulas before execution.
- Unsanitized data injection / XSS risk: The generated HTML will render the input CSV/JSON into the page. If the implementation inserts data using innerHTML or otherwise fails to escape/encode content, a CSV containing <script> or crafted strings could run code in your browser. Ensure all cell values are escaped (use textContent or proper escaping) and avoid injecting raw HTML.
- Remote CDN dependency: The page loads ECharts from jsdelivr.net. That is convenient but introduces a remote network dependency and supply-chain risk. Consider bundling a vetted ECharts build or allowing an offline/local alternative.
- Platform-specific open command: The SKILL.md runs `open /tmp/viz-table-output.html` (macOS). On Linux/Windows this will fail or be inappropriate; the skill should detect platform or use a safer approach (spawn default browser via platform API or instruct the user to open the file). Also consider asking for confirmation before automatically opening files.
- Limit data sensitivity: Because the skill reads arbitrary file paths and writes and opens a local HTML that references remote resources, avoid using it on sensitive data unless you review and sanitize the generated HTML.
If you want to proceed, ask the author (or modify the implementation) to: use a safe formula parser, explicitly escape all table data, provide cross-platform open behavior or prompt the user, and make loading of external scripts optional or local. If you cannot verify those changes, treat outputs as potentially unsafe and do not open with sensitive datasets.
功能分析
Type: OpenClaw Skill
Name: viz-table
Version: 1.0.0
The skill instructions in SKILL.md direct the agent to generate an HTML file that uses the dangerous 'eval()' function to process user-provided formulas for custom data calculations. This introduces a significant Cross-Site Scripting (XSS) or local code execution vulnerability within the user's browser context. Additionally, the skill automatically executes the generated file using the 'open' command on the local system (/tmp/viz-table-output.html), which, combined with the insecure 'eval' implementation, poses a high security risk despite the lack of explicit malicious intent like data exfiltration.
能力评估
Purpose & Capability
The name/description (visualize CSV/JSON with ECharts) matches the instructions: read a file, parse CSV/JSON, build ECharts options, write an HTML, and open it. No unrelated credentials, binaries, or installs are requested.
Instruction Scope
Instructions tell the agent to inline raw file data into an HTML page and to implement a client-side formula editor that performs string replacement and uses eval(). The SKILL.md does not require or describe output sanitization or escaping, which enables DOM/script injection when input files contain malicious content. It also hard-codes a platform-specific shell command (`open /tmp/...`) without fallback.
Install Mechanism
Instruction-only skill with no install — low risk for on-disk installs. However, the generated HTML loads ECharts from an external CDN (jsdelivr.net), which is a supply-chain/network dependency the skill will pull at runtime in the user's browser.
Credentials
No environment variables, credentials, or config paths are requested — this is proportional to the described task.
Persistence & Privilege
Skill is not always-enabled and does not request elevated platform privileges or modify other skills. It writes a single file to /tmp (temporary location) and opens it, which is normal for this use case.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install viz-table - 安装完成后,直接呼叫该 Skill 的名称或使用
/viz-table触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: CSV/JSON data visualization with ECharts
元数据
常见问题
Viz Table 是什么?
从 CSV/JSON 文件读取数据,使用 ECharts 生成可视化 HTML 图表(柱状图、折线图、饼图、环形图)并自动在浏览器中打开。用户提供文件路径时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 177 次。
如何安装 Viz Table?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install viz-table」即可一键安装,无需额外配置。
Viz Table 是免费的吗?
是的,Viz Table 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Viz Table 支持哪些平台?
Viz Table 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Viz Table?
由 charles-lpf(@charles-lpf)开发并维护,当前版本 v1.0.0。
推荐 Skills