← 返回 Skills 市场
johnnywang2001

Csv Toolkit

作者 John Wang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
233
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install csv-toolkit
功能描述
Manipulate CSV files from the command line — view, filter, sort, select columns, convert CSV to/from JSON, compute statistics, deduplicate, and merge files....
使用说明 (SKILL.md)

CSV Toolkit

Command-line CSV manipulation — view, filter, sort, select, convert, stats, dedup, and merge. Pure Python, no dependencies.

Quick Start

# View as formatted table
python3 scripts/csv_toolkit.py view data.csv
python3 scripts/csv_toolkit.py view data.csv --head 10

# Filter rows
python3 scripts/csv_toolkit.py filter data.csv -w 'age>30' 'city==Chicago'

# Sort
python3 scripts/csv_toolkit.py sort data.csv --by salary --desc

# Select columns
python3 scripts/csv_toolkit.py select data.csv -c "name,email,salary"

# Convert to JSON
python3 scripts/csv_toolkit.py to-json data.csv -o data.json

# Convert JSON back to CSV
python3 scripts/csv_toolkit.py from-json data.json -o data.csv

# Column statistics
python3 scripts/csv_toolkit.py stats data.csv -c "age,salary"

# Remove duplicates
python3 scripts/csv_toolkit.py dedup data.csv -o clean.csv

# Merge files
python3 scripts/csv_toolkit.py merge file1.csv file2.csv -o combined.csv

Commands

Command Description
view Display CSV as a formatted table. Use --head N / --tail N to limit rows.
filter Filter rows with -w conditions: col>val, col==val, col!=val, col\x3C=val. Multiple conditions = AND.
sort Sort by column with --by col. Add --desc for descending. Numeric-aware.
select Pick columns with -c "col1,col2".
to-json Convert CSV to JSON array of objects. Auto-detects numbers.
from-json Convert a JSON array of objects to CSV.
stats Column statistics: count, unique values, min/max/mean/median for numeric columns.
dedup Remove duplicate rows.
merge Concatenate multiple CSV files (same headers).

Global Options

Flag Description
-d, --delimiter Field delimiter (default: ,). Use -d ' ' for TSV.
--encoding File encoding (default: utf-8).
-o, --output Write result to file instead of stdout.
安全使用建议
This appears to be a straightforward local CSV toolkit that operates on files you supply. Before installing or running it: (1) Inspect the remainder of scripts/csv_toolkit.py (the provided excerpt was truncated) to confirm there are no network calls, subprocess.exec/OS.exec usage, or code that reads unexpected system paths. (2) Run the tool in a sandbox or on non-sensitive sample files first. (3) Be cautious when opening CSV outputs in spreadsheet software (Excel/Sheets) because malicious CSV cells starting with =,+,- or @ can trigger formula execution in spreadsheet apps; sanitize if you plan to open outputs in such apps. If you want, provide the full script (untruncated) and I can re-check and raise confidence to high.
功能分析
Type: OpenClaw Skill Name: csv-toolkit Version: 1.0.0 The csv-toolkit skill is a standard utility for manipulating CSV files, providing features like filtering, sorting, and format conversion. The Python script (scripts/csv_toolkit.py) uses only standard libraries and contains no evidence of malicious intent, data exfiltration, or unauthorized execution; its behavior is entirely consistent with its documented purpose in SKILL.md.
能力评估
Purpose & Capability
Name/description match the SKILL.md and the included script: view, filter, sort, select, convert, stats, dedup, merge. The required resources (none) are proportionate to the stated purpose.
Instruction Scope
SKILL.md instructs the agent to run the local Python script against user-supplied files and standard CLI flags. The instructions only read/write files provided via arguments and do not direct data to external endpoints, request additional environment variables, or instruct the agent to read unrelated system files.
Install Mechanism
No install spec — instruction-only with a shipped Python script. There are no downloads, package installs, or extraction steps that would write or execute remote code.
Credentials
The skill requests no environment variables, credentials, or config paths. The code shown uses only Python standard library modules and reads/writes only files passed on the command line.
Persistence & Privilege
The skill is not always-enabled and does not request persistent privileges or modify other skills or system-wide agent settings. It runs only when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install csv-toolkit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /csv-toolkit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of csv-toolkit. - Manipulate CSV files via command line: view, filter, sort, select columns, deduplicate, and merge. - Convert CSV data to/from JSON. - Compute column statistics including count, unique, min, max, mean, and median. - Supports custom delimiters, file encoding, and output files. - Pure Python implementation with zero external dependencies.
元数据
Slug csv-toolkit
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Csv Toolkit 是什么?

Manipulate CSV files from the command line — view, filter, sort, select columns, convert CSV to/from JSON, compute statistics, deduplicate, and merge files.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 233 次。

如何安装 Csv Toolkit?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install csv-toolkit」即可一键安装,无需额外配置。

Csv Toolkit 是免费的吗?

是的,Csv Toolkit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Csv Toolkit 支持哪些平台?

Csv Toolkit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Csv Toolkit?

由 John Wang(@johnnywang2001)开发并维护,当前版本 v1.0.0。

💬 留言讨论