TopRank Skills

Home / Claw Skills / Data Analysis / file-converter
Official OpenClaw rules 54%

file-converter

File format converter. Detect formats, convert between JSON/YAML/XML/CSV/Markdown, minify and prettify code. Commands: detect, json2yaml, yaml2json, csv2md, md2csv, xml2json, json2xml, minify, prettify. Use for data format conversion, code compression, code beautification.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 file-converter 技能。 若已安装,则直接安装 file-converter 技能。

Overview

Skill Key
ckchzh/file-converter
Author
ckchzh
Source Repo
openclaw/skills
Version
-
Source Path
skills/ckchzh/file-converter
Latest Commit SHA
48e0a79025370206513463f8c9cef248dd1fda9b

Extracted Content

SKILL.md excerpt

# 🔄 File Converter

> One command, any format. Convert between JSON, YAML, XML, CSV, and Markdown. Minify and prettify code files.

## Quick Start

```bash
bash scripts/convert.sh <command> [file]
```

## Commands

| Command | Description | Example |
|---------|-------------|---------|
| `detect <file>` | Auto-detect file format | `detect data.txt` |
| `json2yaml <file>` | JSON → YAML | `json2yaml config.json` |
| `yaml2json <file>` | YAML → JSON | `yaml2json config.yaml` |
| `csv2md <file>` | CSV → Markdown table | `csv2md report.csv` |
| `md2csv <file>` | Markdown table → CSV | `md2csv table.md` |
| `xml2json <file>` | XML → JSON | `xml2json data.xml` |
| `json2xml <file>` | JSON → XML | `json2xml data.json` |
| `minify <file>` | Compress JSON/CSS/JS | `minify app.js` |
| `prettify <file>` | Beautify code | `prettify min.json` |

## Workflow

1. Run `detect` to confirm source format
2. Pick the right conversion command
3. Use `prettify` to verify output readability
4. Use `minify` to compress production files

## Notes

- Output goes to stdout — redirect with `>` to save
- Supports pipe input: `cat data.json | bash scripts/convert.sh json2yaml -`
- Run `detect` first on unknown files to avoid garbled output

Related Claw Skills