mcpbeat

Data Transformer

alibaba/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".

3k tokens
context cost
the whole folder, loaded on every use
11
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
362
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/alibaba/skill-up --skill data-transformer

What comes with it

10 309 bytes besides the instruction
README.md
evals/cases/csv-to-json.yaml
evals/eval.yaml
evals/evals.json
evals/fixtures/workspace/input.csv
fixtures/expected/csv-to-json-grading.json
fixtures/judge-inputs/csv-to-json.json
fixtures/scripts/check-transform.sh
fixtures/workspace/input.csv
fixtures/workspace/output.json

The instruction itself

6 sections, as written by the author

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

  • Read the input file
  • Parse the source format
  • Convert to the target format
  • Write the output file
  • 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

How to use it

Copy the folder

Take alibaba/data-transformer from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.