file-converter

Convert, merge, split, and compress files across data, document, image, audio, and archive formats.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/AmirEmad11/instabot --skill file-converter-amiremad11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-converter
Source: https://github.com/AmirEmad11/instabot/tree/main/.local/secondary_skills/file-converter
Command: npx skills add https://github.com/AmirEmad11/instabot --skill file-converter-amiremad11

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, openpyxl, pyarrow, pyyaml, xmltodict, pypandoc, markdown, markdownify, python-docx, pdfplumber, pdf2image, pypdf, Pillow, cairosvg, pillow-heif, pydub, ebooklib, weasyprint, imageio, pymupdf, pyzipper.

What problem does it solve? Converting files between formats usually requires hunting down the right library, remembering its API, and debugging encoding or dependency issues. This Skill provides tested one-liner recipes for dozens of conversion pairs so files can be transformed immediately without trial and error. ## Core Features & Use Cases - Data format conversion: Convert between CSV, JSON, Excel, Parquet, YAML, XML, and JSONL using pandas, pyyaml, and xmltodict, with encoding and delimiter handling built in. - Document and PDF operations: Convert documents with pandoc, extract text and tables from PDFs with pdfplumber, and merge, split, or rotate PDFs with pypdf. - Image, audio, EPUB, GIF, and ZIP handling: Convert images with Pillow and cairosvg, audio with pydub, ebooks with pandoc or ebooklib, and create or extract ZIP archives with the standard library. - Use Case: A user uploads an iPhone HEIC photo and a FLAC audio recording, then asks for a JPG and an MP3. The Skill locates the uploaded files, applies pillow-heif and pydub conversions, and validates the outputs. ## Quick Start Convert the uploaded file report.docx into a PDF and also extract the first three pages as a separate document.

Frequently Asked Questions about file-converter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert CSV to JSON in Python?

Use pandas to read the CSV with pd.read_csv and write JSON with to_json using orient="records". The reverse direction uses pd.read_json followed by to_csv with index=False.

How do I convert HEIC iPhone photos to JPG?

Install pillow-heif, call register_heif_opener(), then open the HEIC file with Pillow and save it as JPG after calling convert("RGB"). JPEG cannot store alpha channels, so the RGB conversion step is required.

What is the best tool to convert Markdown to DOCX or PDF?

Pandoc is the recommended tool, supporting around 40 formats including Markdown to DOCX directly. For PDF output, pandoc requires a LaTeX engine such as texlive-xetex via the --pdf-engine=xelatex flag.

Why does PNG to JPG conversion raise an OSError in Pillow?

JPEG cannot store an alpha channel, so saving a PNG with transparency directly raises an OSError. Call convert("RGB") on the image before saving to strip the transparency channel.

Does pydub work without ffmpeg installed?

Pydub requires ffmpeg installed system-wide for all non-WAV formats such as MP3, FLAC, OGG, and M4A. Only plain WAV operations work without it, since WAV handling is native.

Why does PDF text extraction return None for some files?

Scanned PDFs have no text layer, so pdfplumber returns None for their pages. Convert pages to images with pdf2image and run OCR with pytesseract to recover the text.