file-converter

Solid

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.

Data & Documents 335 stars 29 forks Updated today

Install

View on GitHub

Quality Score: 85/100

Stars 20%
84
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
0
Description 5%
100

Skill Content

# File Converter ## Overview Convert files between formats across three categories: documents, data files, and images. Generate Python code dynamically for each conversion request, selecting appropriate libraries and handling edge cases. ## Conversion Categories ### Documents | From | To | Recommended Library | |------|-----|---------------------| | Markdown | HTML | `markdown` or `mistune` | | HTML | Markdown | `markdownify` or `html2text` | | HTML | PDF | `weasyprint` or `pdfkit` (requires wkhtmltopdf) | | PDF | Text | `pypdf` or `pdfplumber` | | DOCX | Markdown | `mammoth` | | DOCX | PDF | `docx2pdf` (Windows/macOS) or LibreOffice CLI | | Markdown | PDF | Convert via HTML first, then to PDF | ### Data Files | From | To | Recommended Library | |------|-----|---------------------| | JSON | YAML | `pyyaml` | | YAML | JSON | `pyyaml` | | JSON | CSV | `pandas` or stdlib `csv` + `json` | | CSV | JSON | `pandas` or stdlib `csv` + `json` | | JSON | TOML | `tomli`/`tomllib` (read) + `tomli-w` (write) | | XML | JSON | `xmltodict` | | JSON | XML | `dicttoxml` or `xmltodict.unparse` | ### Images | From | To | Recommended Library | |------|-----|---------------------| | PNG/JPG/WebP/GIF | Any raster | `Pillow` (PIL) | | SVG | PNG/JPG | `cairosvg` or `svglib` + `reportlab` | | PNG | SVG | `potrace` (CLI) for tracing, limited fidelity | ## Workflow 1. Identify source format (from file extension or user statement) 2. Identify target format 3. Check `references/` for format-spec...

Details

Author
aiskillstore
Repository
aiskillstore/marketplace
Created
5 months ago
Last Updated
today
Language
Python
License
None

Similar Skills

Semantically similar based on skill content — not just same category