Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
89jobrien avatar

File Converter

  • 94 installs
  • 4 repo stars
  • Updated April 11, 2026
  • 89jobrien/steve

file-converter is a Claude Code skill that converts files between document, data, and image formats by generating Python conversion code per request.

About

file-converter is a Claude Code skill that converts files between formats across documents, data files, and images. A developer uses it to turn Markdown into HTML, JSON into CSV, DOCX into PDF, or PNG into WebP, among other pairings. It generates Python conversion code dynamically and picks the appropriate library for each conversion.

  • Converts documents, data files, and images between formats
  • Generates Python conversion code dynamically per request
  • Covers PDF/DOCX/Markdown, JSON/CSV/YAML/XML/TOML, and PNG/SVG/WebP

File Converter by the numbers

  • 94 all-time installs (skills.sh)
  • Ranked #332 of 688 Office & Documents skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

file-converter capabilities & compatibility

Capabilities
file conversion · document conversion · image conversion
Use cases
pdf parsing · documentation
Pricing
Free
From the docs

What file-converter says it does

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).
SKILL.md
Generate Python code dynamically for each conversion request, selecting appropriate libraries and handling edge cases.
SKILL.md
npx skills add https://github.com/89jobrien/steve --skill file-converter

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs94
repo stars4
Last updatedApril 11, 2026
Repository89jobrien/steve

What it does

Convert files between document, data, and image formats using generated Python code.

Who is it for?

Developers who need to convert between document, data, or image formats using appropriate Python libraries.

Skip if: Bulk enterprise media pipelines or lossless conversions the underlying libraries cannot guarantee (for example PNG to SVG).

When should I use this skill?

You need to convert, transform, or export a file between two formats.

What you get

Produces working Python code that converts the source file to the target format with the recommended library.

  • Python conversion script
  • converted output file

By the numbers

  • 3 conversion categories: documents, data files, images
  • 3 bundled reference files for edge cases

Files

SKILL.mdMarkdownGitHub ↗

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

FromToRecommended Library
MarkdownHTMLmarkdown or mistune
HTMLMarkdownmarkdownify or html2text
HTMLPDFweasyprint or pdfkit (requires wkhtmltopdf)
PDFTextpypdf or pdfplumber
DOCXMarkdownmammoth
DOCXPDFdocx2pdf (Windows/macOS) or LibreOffice CLI
MarkdownPDFConvert via HTML first, then to PDF

Data Files

FromToRecommended Library
JSONYAMLpyyaml
YAMLJSONpyyaml
JSONCSVpandas or stdlib csv + json
CSVJSONpandas or stdlib csv + json
JSONTOMLtomli/tomllib (read) + tomli-w (write)
XMLJSONxmltodict
JSONXMLdicttoxml or xmltodict.unparse

Images

FromToRecommended Library
PNG/JPG/WebP/GIFAny rasterPillow (PIL)
SVGPNG/JPGcairosvg or svglib + reportlab
PNGSVGpotrace (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

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)

Data: CSV to JSON

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)

Document: Markdown to HTML

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)

Image: PNG to WebP

from PIL import Image

img = Image.open("input.png")
img.save("output.webp", "WEBP", quality=85)

Image: SVG to PNG

import cairosvg

cairosvg.svg2png(url="input.svg", write_to="output.png", scale=2)

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.

Related skills

FAQ

What formats does it support?

Documents (PDF, DOCX, Markdown, HTML, TXT), data files (JSON, CSV, YAML, XML, TOML), and images (PNG, JPG, WebP, SVG, GIF).

How does it convert files?

It generates Python code dynamically for each conversion request, selecting an appropriate library.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.