Loading...
Loading...
This skill handles file format conversions across documents (PDF, DOCX, Markdown, HTML, TXT), data files (JSON, CSV, YAML, XML, TOML), and images (PNG, JPG, WebP, SVG, GIF). Use when the user requests converting, transforming, or exporting files between formats. Generates conversion code dynamically based on the specific request.
npx skill4agent add 89jobrien/steve file-converter| From | To | Recommended Library |
|---|---|---|
| Markdown | HTML | |
| HTML | Markdown | |
| HTML | | |
| Text | | |
| DOCX | Markdown | |
| DOCX | | |
| Markdown | Convert via HTML first, then to PDF |
| From | To | Recommended Library |
|---|---|---|
| JSON | YAML | |
| YAML | JSON | |
| JSON | CSV | |
| CSV | JSON | |
| JSON | TOML | |
| XML | JSON | |
| JSON | XML | |
| From | To | Recommended Library |
|---|---|---|
| PNG/JPG/WebP/GIF | Any raster | |
| SVG | PNG/JPG | |
| PNG | SVG | |
references/import json
import yaml
with open("input.json") as f:
data = json.load(f)
with open("output.yaml", "w") as f:
yaml.dump(data, f, default_flow_style=False, allow_unicode=True)import csv
import json
with open("input.csv") as f:
reader = csv.DictReader(f)
data = list(reader)
with open("output.json", "w") as f:
json.dump(data, f, indent=2)import markdown
with open("input.md") as f:
md_content = f.read()
html = markdown.markdown(md_content, extensions=["tables", "fenced_code"])
with open("output.html", "w") as f:
f.write(html)from PIL import Image
img = Image.open("input.png")
img.save("output.webp", "WEBP", quality=85)import cairosvg
cairosvg.svg2png(url="input.svg", write_to="output.png", scale=2)references/references/document-conversions.mdreferences/data-conversions.mdreferences/image-conversions.md