data-converter
Convert data between formats (JSON, XML, CSV, YAML, TOML). Use when transforming data structures or migrating between data formats.
When & Why to Use This Skill
This Claude skill provides a robust solution for inter-converting data between multiple formats including JSON, XML, CSV, YAML, and TOML. It streamlines data migration tasks, ensures data integrity through schema validation, and offers advanced features like field filtering, merging, and case transformation to optimize developer and data analyst workflows.
Use Cases
- Configuration Migration: Seamlessly convert legacy XML or JSON configuration files into YAML or TOML formats for modern infrastructure-as-code and CI/CD pipelines.
- API Data Transformation: Quickly transform complex XML responses from legacy web services into clean JSON objects for easier integration with modern frontend frameworks.
- Data Analysis Preparation: Convert nested JSON data structures into flat CSV files to facilitate easy import and analysis in spreadsheet software like Excel or Google Sheets.
- Codebase Refactoring: Automatically switch between camelCase and snake_case naming conventions when migrating data models between different programming environments.
- Data Cleaning and Optimization: Use filtering and compression features to remove unnecessary fields and minify large data files for better performance in production environments.
| name | data-converter |
|---|---|
| description | Convert data between formats (JSON, XML, CSV, YAML, TOML). Use when transforming data structures or migrating between data formats. |
Data Converter Skill
データ形式を変換するスキルです。
概要
JSON、YAML、XML、CSV、TOML等の各種データ形式を相互変換します。
主な機能
- 多様な形式: JSON ↔ YAML ↔ XML ↔ CSV ↔ TOML ↔ INI
- データ検証: スキーマバリデーション
- 整形: インデント、ソート、圧縮
- フィルタリング: 特定フィールドの抽出
- 変換: キャメルケース ↔ スネークケース
- マージ: 複数ファイルの統合
使用方法
以下のJSONをYAMLに変換:
{
"name": "John",
"age": 30
}
変換例
JSON → YAML
{
"database": {
"host": "localhost",
"port": 5432,
"credentials": {
"username": "admin",
"password": "secret"
}
}
}
↓
database:
host: localhost
port: 5432
credentials:
username: admin
password: secret
CSV → JSON
name,age,city
John,30,Tokyo
Jane,25,Osaka
↓
[
{"name": "John", "age": 30, "city": "Tokyo"},
{"name": "Jane", "age": 25, "city": "Osaka"}
]
XML → JSON
<user>
<name>John</name>
<age>30</age>
<email>john@example.com</email>
</user>
↓
{
"user": {
"name": "John",
"age": 30,
"email": "john@example.com"
}
}
バージョン情報
- スキルバージョン: 1.0.0
- 最終更新: 2025-01-22