ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

file-converter

This skill provides comprehensive file format conversion capabilities. It should be used when users need to convert files between different formats, including PDF to Word, Word to PDF, image format conversions (PNG/JPG/WebP/BMP/GIF/TIFF), and Excel/CSV bidirectional conversion. Supports both single file and batch processing. Trigger keywords: 转换, convert, 格式转换, PDF转Word, Word转PDF, 图片转换, Excel转CSV, CSV转Excel.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/besteva77/besteva-file-converter
Or

File Converter Skill

A comprehensive file format conversion toolkit supporting documents, images, and spreadsheets.

When to Use

Activate this skill when any of these scenarios occur:

  • Document conversion: User wants to convert between PDF and Word formats
  • Image conversion: User needs images in a different format (PNG→JPG, JPG→WebP, etc.)
  • Spreadsheet conversion: User needs to exchange data between Excel and CSV
  • Batch operations: User has multiple files that need converting at once
  • Format queries: User asks about supported formats or how to convert specific file types

Supported Conversions

Source FormatTarget FormatScriptNotes
.pdf.docxscripts/pdf_to_word.pyExtracts text, tables, layout
.docx, .doc.pdfscripts/word_to_pdf.pyRequires MS Word on Windows
PNG/JPEG/WebP/BMP/GIF/TIFFAny other image formatscripts/image_converter.pyQuality control, resize support
.csv.xlsxscripts/excel_csv_converter.pyCustom delimiter/encoding
.xlsx, .xls.csvscripts/excel_csv_converter.pyMulti-sheet support

Prerequisites

Python Dependencies

Install required packages before first use:

pip install Pillow pdf2docx docx2pdf openpyxl xlrd

Quick install command:

pip install Pillow pdf2docx docx2pdf openpyxl xlrd

Platform-Specific Requirements

  • Word → PDF (Windows): Microsoft Word must be installed (docx2pdf uses COM automation)
  • PDF → Word: No external software required; uses pdf2docx
  • Image conversion: Uses Pillow only, works on all platforms

Workflow Guidelines

Step 1: Identify Conversion Type

Determine what the user wants to convert:

User says "convert this PDF"        → PDF to Word
User says "turn this into PDF"       → Word to PDF  
User says "change this PNG to JPG"   → Image conversion
User says "export this Excel as CSV" → Excel to CSV

Step 2: Check Dependencies

Before running any script, verify required packages are installed:

python -c "import PIL; import pdf2docx; import docx2pdf; import openpyxl"

If imports fail, prompt user to run:

pip install Pillow pdf2docx docx2pdf openpyxl xlrd

Step 3: Execute Appropriate Script

PDF → Word

Single file:

python scripts/pdf_to_word.py <input.pdf> [output.docx]

Batch mode:

python scripts/pdf_to_word.py --batch ./pdf_folder --output-dir ./output_folder

Options:

  • --start N: Start from page N (default: 0)
  • --end N: End at page N (default: all pages)

Word → PDF

Single file:

python scripts/word_to_pdf.py <input.docx> [output.pdf]

Batch mode:

python scripts/word_to_pdf.py --batch ./docs_folder --output-dir ./pdfs_folder

**Check requ...

Metadata

Author@besteva77
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-besteva77-besteva-file-converter": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.