Skip to main content

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

Informações da origem

Repositório
alibaba/skill-up
Última atividade na origem
14 de maio de 2026 às 03:58
Idioma detectado do SKILL.md
inglês
Estrelas
1.348
Forks
116

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Explorador de arquivos
11 arquivos

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
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".
# 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
Ver no GitHub