File Convert
Documentsfile-convertFile Convert is an Agent Skill for documents published in the fuyuxiang/echo-agent repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Convert between file formats: CSV↔JSON, Markdown↔HTML, YAML↔JSON, images, and more. No external service needed.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/fuyuxiang/echo-agent/blob/HEAD/skills/utility/file-convert/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/file-convert, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
File Convert
Common format conversions using Python stdlib + minimal dependencies.
Quick Conversions
CSV → JSON
python3 -c "import csv,json,sys; print(json.dumps(list(csv.DictReader(open(sys.argv[1]))),ensure_ascii=False,indent=2))" data.csv
JSON → CSV
import json, csv, sys
data = json.load(open(sys.argv[1]))
w = csv.DictWriter(sys.stdout, fieldnames=data[0].keys())
w.writeheader(); w.writerows(data)
YAML → JSON
python3 -c "import yaml,json,sys; print(json.dumps(yaml.safe_load(open(sys.argv[1])),ensure_ascii=False,indent=2))" file.yaml
JSON → YAML
python3 -c "import yaml,json,sys; print(yaml.dump(json.load(open(sys.argv[1])),allow_unicode=True,default_flow_style=False))" file.json
Markdown → HTML
pip install markdown
python3 -c "import markdown,sys; print(markdown.markdown(open(sys.argv[1]).read(),extensions=['tables','fenced_code']))" file.md
Base64 encode/decode
base64 < file.bin > file.b64
base64 -d < file.b64 > file.bin
Universal Converter Script
python3 scripts/convert.py input.csv output.json
python3 scripts/convert.py data.yaml data.json
python3 scripts/convert.py README.md README.html
Auto-detects format from file extension and performs the appropriate conversion.