local-file-converter

本地文件转换技能,使用命令行工具实现 1000+ 格式互转。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "local-file-converter" with this command: npx skills add tiantian-pago/local-file-converter

Local File Converter

本地文件转换技能,使用命令行工具实现 1000+ 格式互转。

能力

  • 图片: JPG, PNG, WebP, HEIC, GIF, BMP, TIFF, SVG 等
  • 视频: MP4, AVI, MKV, MOV, WebM, GIF 等
  • 音频: MP3, FLAC, WAV, AAC, OGG, M4A 等
  • 文档: PDF, DOCX, DOC, EPUB, MOBI, TXT, Markdown 等
  • 数据: JSON, YAML, XML, CSV 等

底层工具

工具用途
ffmpeg音视频转换
imagemagick图片转换
libreoffice文档转换
pandoc文档/标记转换
calibre电子书转换(按需安装)

安装命令

# Debian/Ubuntu
sudo apt install ffmpeg imagemagick libreoffice pandoc calibre

# macOS
brew install ffmpeg imagemagick libreoffice pandoc
brew install --cask calibre

使用方式

用户说类似:

  • "把这个图片转成 WebP"
  • "将 video.mp4 转换成 GIF"
  • "把 document.docx 转为 PDF"
  • "转换这本书为 EPUB 格式"

技能自动:

  1. 识别源文件和目标格式
  2. 选择合适的转换工具
  3. 执行转换命令
  4. 返回结果文件路径

命令参考

图片转换 (ImageMagick)

convert input.png output.webp
convert image.jpg image.png
mogrify -format webp *.png
convert input.jpg -resize 1920x1080 output.jpg

视频/音频转换 (FFmpeg)

ffmpeg -i input.mp4 -vf "fps=10,scale=640:-1" output.gif
ffmpeg -i input.mp4 -c:v libx265 output.mkv
ffmpeg -i video.mp4 -q:a 0 -map a output.mp3
ffmpeg -i input.wav -b:a 320k output.mp3

文档转换 (LibreOffice)

libreoffice --headless --convert-to pdf document.docx
libreoffice --headless --convert-to docx document.pdf

文档/标记转换 (Pandoc)

pandoc input.md -o output.pdf
pandoc input.md -o output.docx
pandoc input.html -t markdown -o output.md

电子书转换 (Calibre)

ebook-convert input.epub output.mobi
ebook-convert input.epub output.pdf

注意事项

  • ⚠️ 大文件转换可能需要较长时间
  • ⚠️ 视频转换消耗 CPU,建议在空闲时进行
  • ⚠️ 有损转换可能降低质量
  • ⚠️ HEIC 格式需要 libheif 支持

状态检查

ffmpeg -version | head -1
convert --version | head -1
libreoffice --version | head -1
pandoc --version | head -1

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated