一键导入
csv-process
Read, filter, select, aggregate, and join CSV / tabular data without spinning up a full data stack.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Read, filter, select, aggregate, and join CSV / tabular data without spinning up a full data stack.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
jq-style select, filter, and reshape over JSON and YAML — extract paths, map arrays, and filter records without writing throwaway code.
Write a dataset (array of records) to CSV, JSON, XLSX, or PDF through one interface — format chosen by the output extension.
Read, write, search, and edit files in the workspace safely — atomic writes, exact-match edits, and recursive content search.
Everyday git — clone, branch, stage, diff, commit, and push, with a safe, predictable workflow.
Make HTTP/REST requests with auth, custom headers, query/body, pagination, retries with backoff, and structured error handling.
Connect to a Model Context Protocol (MCP) server, perform the handshake, discover its tools, and invoke them over JSON-RPC.
| name | csv-process |
| description | Read, filter, select, aggregate, and join CSV / tabular data without spinning up a full data stack. |
| version | 0.1.0 |
Work with CSV and tabular data quickly. Use this for the everyday operations — peek at a file, filter rows, pick columns, compute an aggregate, or join two files on a key — without writing a one-off parser or pulling in a heavy library.
The helper at scripts/csv_tool.py (stdlib csv) handles all of these. For
large datasets or complex analytics, pandas is a better fit
(pip install pandas) — but reach for it only when the operations below aren't
enough.
All subcommands read a CSV with a header row and write CSV (or a value) to stdout.
# Peek: header + first N rows
python scripts/csv_tool.py head data.csv -n 5
# Filter rows by a column condition (==, !=, >, <, >=, <=, contains)
python scripts/csv_tool.py filter data.csv --where 'status == active'
python scripts/csv_tool.py filter data.csv --where 'amount > 100'
# Select / reorder columns
python scripts/csv_tool.py select data.csv --columns id,name,amount
# Aggregate a numeric column, optionally grouped
python scripts/csv_tool.py agg data.csv --column amount --op sum
python scripts/csv_tool.py agg data.csv --column amount --op sum --group-by region
# Inner-join two files on a shared key column
python scripts/csv_tool.py join orders.csv customers.csv --on customer_id
Supported --op for agg: sum, mean, min, max, count.
head — confirm the delimiter parsed, the header names
are what you expect, and the data looks sane.--group-by to get per-category totals; without it you get
a single overall value.pandas.pandas.csv
reader handles quoted fields, but eyeball the head output to be sure.