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
最近更新
2026-11-03
Stars
★ 0
Forks
0

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

OahMoza
OahMoza/agent-skill-eval

todo-manager

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

★ 0
OahMoza
OahMoza/agent-skill-eval

code-review-helper

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

★ 0
OahMoza
OahMoza/agent-skill-eval

skill-upper

Create, run, diagnose, and iteratively improve Agent Skill evaluations (evals) with the skill-up CLI / 使用 skill-up CLI 创建、运行、诊断并持续改进 Agent Skill 评测. Use when the user asks to 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. Handles Skill discovery, eval scaffolding, judge authoring, validation, runs, reports, and evidence-based repair loops.

★ 0
OahMoza
OahMoza/agent-skill-eval

python-basic

Minimal offline fixture for the Python evaluation preview.

★ 0
OahMoza
OahMoza/agent-skill-eval

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.

★ 0
OahMoza
OahMoza/agent-skill-eval

mood-booster

Triggered when the user expresses boredom, low mood, frustration, irritation, or a need to relax. Responds with warm words of comfort and tells a joke to lighten the atmosphere. Trigger phrases include "I'm so bored", "feeling down", "so frustrated", "gloomy", "not happy", "I'm tired".

★ 0