搜索

PythonReactSEOPDF
OpenClaw

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.

ckchzh0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install ckchzh/file-converter

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

🔄 File Converter

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

Quick Start

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

来源信息

Source
github
Repository
openclaw/skills
Path
skills/ckchzh/file-converter
Version
—
Commit
48e0a79025370206513463f8c9cef248dd1fda9b
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# 🔄 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

相关技能

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

wps-macos-helper

lethehades

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance