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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/besteva77/besteva-file-converterFile 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 Format | Target Format | Script | Notes |
|---|---|---|---|
.pdf | .docx | scripts/pdf_to_word.py | Extracts text, tables, layout |
.docx, .doc | .pdf | scripts/word_to_pdf.py | Requires MS Word on Windows |
| PNG/JPEG/WebP/BMP/GIF/TIFF | Any other image format | scripts/image_converter.py | Quality control, resize support |
.csv | .xlsx | scripts/excel_csv_converter.py | Custom delimiter/encoding |
.xlsx, .xls | .csv | scripts/excel_csv_converter.py | Multi-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 (
docx2pdfuses COM automation) - PDF → Word: No external software required; uses
pdf2docx - Image conversion: Uses
Pillowonly, 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-besteva77-besteva-file-converter": {
"enabled": true,
"auto_update": true
}
}
}