Agent skill · software engineering · aiskillstore

file-converter

This skill handles file format conversions across documents (PDF, DOCX,

Why this skill is useful

Adds dynamic Python scripts for file format conversions that handle various edge cases and utilize specific libraries not commonly known.

What it needs

Requires cairosvg, markdown, pandas, pillow, python, pyyaml, xmltodict installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

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-specific guidance 4. Generate conversion code using recommended library 5. Handle edge cases (encoding, transparency, nested structures) 6. Execute conversion and report results Quick Patterns Data: JSON to YAML Data: CSV to JSON Document: Markdown to HTML Image: PNG to WebP Image: SVG to PNG Resources Detailed guidance for complex conversions is in references/: references/document-conversions.md - PDF handling, encoding issues, styling preservation references/data-conversions.md - Schema handling, type coercion, nested structures references/image-conversions.md - Quality settings, transparency, color profiles Consult these references when handling edge cases or when the user has specific quality/fidelity requirements.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/file-converter

View the source on GitHub

Browse the @skills marketplace