Data Transform

Use this skill when the task involves converting or reformatting structured data between file formats such as CSV, JSON, XML, or YAML. Suitable for tasks like "convert this CSV to JSON", "reformat my data file", or "change the file format of this dataset". Do NOT use for statistical analysis, aggregation, or report generation.

agentscope-ai d8cfbd7 3 files · 3.8 KB Updated

File contents

Data Transform Skill

Converts structured data files between formats (CSV ↔ JSON ↔ XML ↔ YAML).

Available Scripts

  • scripts/csv_to_json.py — Convert a CSV file to JSON array format
  • scripts/json_to_csv.py — Flatten a JSON array into a CSV file

Usage

python3 scripts/csv_to_json.py --input data.csv --output data.json
python3 scripts/json_to_csv.py --input data.json --output data.csv

agentscope-ai/agentscope-java/tree/main/agentscope-core/src/test/resources/e2e-skills/data-transform commit d8cfbd7300

Frequently asked questions

npx skillmds@latest add agentscope-ai/data-transform