跳到正文
Skillpedia
分析与电子表格6.2k · #14382

data-transform

它能做什么

这项技能把结构化数据文件从一种格式转换为另一种格式,例如 CSV 转 JSON、JSON 转 CSV。适合需要在电子表格、应用和其他工具之间移动数据的人。

适用场景

  • ✓当你需要把 CSV 文件转换为 JSON 时。
  • ✓当你有一个 JSON 文件,想得到可用于电子表格的 CSV 时。
  • ✓当你想为另一个工具重新调整数据文件的格式时。

技能链接

https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-core/src/test/resources/e2e-skills/data-transform/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/agentscope-ai/agentscope-java/blob/main/agentscope-core/src/test/resources/e2e-skills/data-transform/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把 customers.csv 转换为 JSON 文件,方便我导入到我的应用中。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能运行附带的转换脚本,读取你的输入文件,并按你要求的格式写出结果。它支持 CSV 和 JSON,描述中还提到 XML 和 YAML。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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
常见问题

支持哪些格式?

描述中列出的是 CSV、JSON、XML 和 YAML。

它会分析数据吗?

不会。这项技能用于格式转换,而不是统计或报告。

可以双向转换吗?

可以。附带的脚本支持 CSV 转 JSON,也支持 JSON 转 CSV。

详情

作者的原始描述

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.

repo: agentscope-ai/agentscope-java

热度

GitHub 星标
6.2k
排名
#14382
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能