← 返回
内容创作 中文

ConvertAgent

Use ConvertAgent for file format conversions through the local CLI. Trigger for any request to convert files (documents, images, audio, video, spreadsheets,...
使用ConvertAgent本地CLI工具进行文件格式转换。适用于文档、图片、音频、视频、电子表格等文件的转换需求。
enigami12
内容创作 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 714
下载
💾 14
安装
1
版本
#latest

概述

ConvertAgent Skill

Use ConvertAgent as the default conversion interface.

Rule

  • For any file conversion task, use convertagent convert instead of calling engines (pandoc, ffmpeg, imagemagick, libreoffice) directly.
  • Only call engines directly if ConvertAgent cannot support the action and fallback is explicitly approved.

Quick Commands

  • Health check:
  • convertagent health
  • List supported actions:
  • node /root/projects/convertagent/dist/cli.js formats
  • Convert file:
  • convertagent convert --to --output

Standard Workflow

  1. Verify service/CLI health:
    • convertagent health
  2. Validate source path exists.
  3. Run conversion with explicit output path.
  4. Verify output file exists and has non-zero size.
  5. Return/attach converted artifact.

Examples

  • Markdown to PDF:
  • convertagent convert /path/file.md --to pdf --output /tmp/file.pdf
  • PNG to WEBP:
  • convertagent convert /path/image.png --to webp --output /tmp/image.webp
  • XLSX to CSV:
  • convertagent convert /path/sheet.xlsx --to csv --output /tmp/sheet.csv
  • MP4 to MP3:
  • convertagent convert /path/video.mp4 --to mp3 --output /tmp/audio.mp3

Supported Action Map (Current)

  • Documents: pdf->docx, docx->pdf, html->pdf, md->pdf, md->html, md->docx
  • Sheets/Slides: xlsx->csv, csv->xlsx, pptx->pdf
  • Images: jpg->png, png->jpg, png->webp, webp->png, svg->png, image-resize, image-compress
  • Media: mp4->mp3, wav->mp3, mp4->gif, any-video->mp4

Paths

  • Repo: /root/projects/convertagent
  • Service unit: /etc/systemd/system/convertagent.service
  • Runtime API health: http://localhost:3001/health

Failure Handling

  • If conversion fails, capture stderr and report exact failing action.
  • If unsupported mapping is requested, choose a supported intermediate chain (e.g., md->html then html->pdf) only when needed.
  • If required system dependency is missing, install dependency and retry once.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 13:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,305
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,133
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,413