Openclawx file-converter
Converts files between formats (e.g., PDF to text, image OCR, docx to pdf) using system tools available in bash (like pandoc, tesseract, ImageMagick, or pdf2text).
install
source · Clone the upstream repo
git clone https://github.com/next-open-ai/openclawx
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/next-open-ai/openclawx "$T" && mkdir -p ~/.claude/skills && cp -r "$T/presets/workspaces/file-assistant/skills/file-converter" ~/.claude/skills/next-open-ai-openclawx-file-converter && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/next-open-ai/openclawx "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/presets/workspaces/file-assistant/skills/file-converter" ~/.openclaw/skills/next-open-ai-openclawx-file-converter && rm -rf "$T"
manifest:
presets/workspaces/file-assistant/skills/file-converter/SKILL.mdsource content
File Converter Skill
Use this skill to convert a file from one format to another or extract content from files.
Workflow
- Identify the source file format and the target format.
- Determine which system tool is available and best suited for the conversion:
- For document conversion (Markdown, HTML, Word):
pandoc - For images (resize, format change):
orconvert
(ImageMagick)magick - For PDF text extraction:
pdftotext - For OCR on images:
tesseract
- For document conversion (Markdown, HTML, Word):
- Use the
tool to check if the required tool is installed (e.g.,bash
). If not, inform the user they need to install the dependency.which pandoc - Execute the conversion command via
.bash - Verify the output file exists and has content, then notify the user.