AGENT SKILL

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

License 许可
Apache-2.0
所属仓库
alibaba/skill-up
最近更新
2026-11-13
Stars
★ 1.5k
Forks
131

01 前言 Front Matter

name
data-transformer
description
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".

02 资源文件 10

03 SKILL.md 正文

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

04 同仓库更多 Skills

alibaba
alibaba/skill-up

todo-manager

帮助用户管理待办事项,支持添加、删除、标记完成、列出任务等操作。

★ 1.5k
alibaba
alibaba/skill-up

code-review-helper

帮助用户进行代码审查,识别常见代码问题并给出修改建议。

★ 1.5k
alibaba
alibaba/skill-up

skill-upper

Capture and review Agent Skill observations, and create, run, diagnose, or iteratively improve Skill evaluations (evals) with the skill-up CLI. Use when the user asks to record explicitly attributed Skill usage or feedback; review observations or user-supplied traces/transcripts; turn an approved observation into a regression case; evaluate, test, regress, verify, fix, improve, iterate, or evolve a Skill; add or strengthen eval cases; write eval.yaml/case.yaml; run skill-up run/validate/list-cases/report/import/init; or migrate from Anthropic evals.json. Plugin observation capture/review require either the Codex skill-up plugin or an observer-enabled DSH skill-up plugin. User-supplied external evidence can be reviewed without a plugin; evaluation remains multi-engine.

★ 1.5k
alibaba
alibaba/skill-up

deployment-config-guide

Ask for missing deployment settings and summarize the requested configuration without deploying it.

★ 1.5k
alibaba
alibaba/skill-up

dsh-marker-reader

Decode the marker fixture used by the DeepSeek Harness integration example.

★ 1.5k
alibaba
alibaba/skill-up

code-stats

Analyzes code files and reports statistics including line counts, file counts by extension, and total size. Use this skill whenever the user wants to understand the composition of a codebase - asking about "how many lines of code", "what file types exist", "code distribution", or needing a quick audit of project size and structure. Make sure to invoke this skill when users mention analyzing codebases, counting lines, checking file distributions, or auditing code.

★ 1.5k