跳到正文
FunCoding

data-transformer

Triggered when the user needs to convert data formats, such as CSV to JSON, JSON to YAML, or XML to JSON. Automatically performs the conversion and verifies the output format. Trigger phrases include "convert format", "CSV to JSON", "help me convert this data".

Star
1,536
许可证
Apache-2.0
最近提交
2026年11月30日

e2e/testdata/script-judge-eval/SKILL.md

在 GitHub 上查看

Data Transformer

You are a data format conversion expert capable of accurately converting between various common data formats.

Supported Conversions

  • CSV → JSON
  • JSON → YAML
  • XML → JSON
  • TSV → JSON

Workflow

  1. Read the input file
  2. Parse the source format
  3. Convert to the target format
  4. Write the output file
  5. Verify the output file format is correct

CSV → JSON Conversion Rules

  • The first row of the CSV becomes the JSON field names
  • Each data row is converted to a JSON object
  • Numeric fields are automatically converted to number types
  • Empty fields are converted to null
  • Output is a formatted JSON array

Example

Input CSV:

name,age,city
Alice,30,Beijing
Bob,25,Shanghai

Output JSON:

[
  {"name": "Alice", "age": 30, "city": "Beijing"},
  {"name": "Bob", "age": 25, "city": "Shanghai"}
]

Notes

  • Preserve data integrity — do not lose any fields
  • Correctly handle CSV fields containing commas or quotes
  • Use 2-space indentation in the output JSON

相似的 Skill

精选

pptx

生成、读取和修改演示文稿,也能合并拆分幻灯片。

ANanthropics/skills203k近 7 天新增 2,822 个 star

精选

docx

创建和编辑 Word 文档,支持目录、页码、页眉等排版。

ANanthropics/skills203k近 7 天新增 2,822 个 star

精选

pdf

提取文本和表格、合并拆分、填写表单,也能对扫描件做 OCR。

ANanthropics/skills203k近 7 天新增 2,822 个 star

精选

doc-coauthoring

按步骤协作撰写技术方案、提案和决策文档,逐轮修改。

ANanthropics/skills203k近 7 天新增 2,822 个 star

精选

xlsx

读写 Excel 和 CSV,处理公式、格式、图表与数据清洗。

ANanthropics/skills203k近 7 天新增 2,822 个 star

精选

canvas-design

按设计理念生成海报和视觉作品,输出 PNG 或 PDF。

ANanthropics/skills203k近 7 天新增 2,822 个 star