home / skills / aidotnet / moyucode / csv-processor
This skill helps you read, transform, and analyze CSV data, enabling filtering, sorting, aggregation, and format conversion for insights.
npx playbooks add skill aidotnet/moyucode --skill csv-processorReview the files below or copy the command above to add this skill to your agents.
---
name: csv-processor
description: 读取、写入、转换和分析CSV文件,支持过滤、排序、聚合和格式转换。
metadata:
short-description: 处理CSV文件
source:
repository: https://github.com/pandas-dev/pandas
license: BSD-3-Clause
---
# CSV Processor Tool
## Description
Process CSV files with powerful data manipulation capabilities including filtering, sorting, aggregation, and format conversion.
## Trigger
- `/csv` command
- User needs to process CSV data
- User wants to transform or analyze tabular data
## Usage
```bash
# Read and display CSV
python scripts/csv_processor.py read data.csv
# Filter rows
python scripts/csv_processor.py filter data.csv --column "status" --value "active"
# Sort by column
python scripts/csv_processor.py sort data.csv --by "date" --desc
# Convert to JSON
python scripts/csv_processor.py convert data.csv --format json --output data.json
# Aggregate data
python scripts/csv_processor.py aggregate data.csv --group "category" --sum "amount"
```
## Tags
`csv`, `data`, `transform`, `analysis`, `pandas`
## Compatibility
- Codex: ✅
- Claude Code: ✅
This skill provides a compact CSV processor for reading, writing, converting, and analyzing CSV files. It supports filtering, sorting, aggregation, and format conversion to help you manipulate tabular data quickly. Designed for command-style use, it works well with scripts and automation workflows.
The tool inspects CSV files and performs row-level operations like filtering and sorting, column-level transformations, and group aggregations. It can convert CSV to other formats (for example JSON) and write results to disk or stdout. Commands accept column names, filter values, sort directions, and aggregation specs to produce deterministic outputs.
What input formats are supported?
Primary input is standard CSV. It expects comma-delimited files but can handle quoted fields. For other delimiters, convert or specify settings if available.
Can I run multiple operations in one command?
Yes. Common workflows chain filter, sort, and aggregate steps. Use the command sequence or pipeline options to apply multiple transformations before output.
How are missing or non-numeric values handled in aggregation?
Non-numeric values are typically ignored for numeric aggregates. Missing values should be cleaned or filled before aggregation for accurate totals.