---
name: Data Transformer
slug: data-transformer
category: Automation
description: Data Transformer converts between common data formats like CSV, JSON, YAML, TSV, and XML. Use it when you need to change file formats and verify the output structure.
github: "https://github.com/alibaba/skill-up/tree/main/e2e/testdata/script-judge-eval"
language: Go
stars: 680
forks: 45
install: "npx degit https://github.com/alibaba/skill-up/tree/main/e2e/testdata/script-judge-eval ~/.claude/skills/script-judge-eval"
installs_to: ~/.claude/skills/script-judge-eval
source_path: e2e/testdata/script-judge-eval/SKILL.md
collection_size: 23
category_size: 1523
collection_url: "https://dirskills.com/collections/alibaba/skill-up"
added: 2026-08-24T05:16:13.911Z
last_synced: 2026-08-24T05:16:13.911Z
canonical_url: "https://dirskills.com/skills/data-transformer"
---

# Data Transformer

Data Transformer converts between common data formats like CSV, JSON, YAML, TSV, and XML. Use it when you need to change file formats and verify the output structure.

**Install:**

```bash
npx degit https://github.com/alibaba/skill-up/tree/main/e2e/testdata/script-judge-eval ~/.claude/skills/script-judge-eval
```

## README

# 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:
```csv
name,age,city
Alice,30,Beijing
Bob,25,Shanghai
```

Output JSON:
```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
