Skip to content
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
License
Apache-2.0
Last commit
Nov 30, 2026

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

View on 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

Similar Skills

Featured

pptx

Create and edit slide decks, generate slides from templates, and extract text.

ANanthropics/skills203k2,822 new stars in the last 7 days

Featured

docx

Create and edit Word docs with TOC, page numbers, headers and more.

ANanthropics/skills203k2,822 new stars in the last 7 days

Featured

pdf

Read and edit PDFs: extract text and tables, merge, split, rotate, and fill forms.

ANanthropics/skills203k2,822 new stars in the last 7 days

Featured

doc-coauthoring

Co-write specs, proposals and decision docs through a structured, iterative workflow.

ANanthropics/skills203k2,822 new stars in the last 7 days

Featured

xlsx

Read and edit spreadsheets: add columns, compute formulas, format, and clean messy data.

ANanthropics/skills203k2,822 new stars in the last 7 days

Featured

canvas-design

Create posters and visual art as PNG or PDF, guided by a design philosophy.

ANanthropics/skills203k2,822 new stars in the last 7 days