電子書轉換工具箱:支援 EPUB / PDF / MOBI / AZW3 / FB2 → TXT / Markdown / HTML / JSON;批量轉換、封面萃取、元資料讀寫、圖書館自動分類。
文档
Calibre Convert
试用Use this skill when the user wants to convert ebook or document files between formats with Calibre, including EPUB to PDF, Markdown to EPUB, MOBI to EPUB, AZ...
它能做什么
Use this skill when the user wants to convert ebook or document files between formats with Calibre, including EPUB to PDF, Markdown to EPUB, MOBI to EPUB, AZ...
技能文档
Calibre Convert
Overview
calibre-convert uses Calibre's ebook-convert CLI to perform ebook and document format conversion. Use it when the user wants a direct file-to-file conversion and the desired input/output formats are supported by Calibre.
Quick Start
- Confirm the source file exists and decide the exact output path.
- Check whether
ebook-convertis available inPATH. - Run the helper script:
./scripts/convert_with_calibre.py /path/to/input.epub /path/to/output.pdf
- If the user wants format-specific tuning, pass Calibre arguments after
--:
./scripts/convert_with_calibre.py /path/to/book.md /path/to/book.epub -- --chapter "//h:h1" --authors "Example Author"
Workflow
1. Validate inputs
- Ensure the input file exists.
- Ensure the output directory exists or create it if the task allows edits there.
- Infer the requested conversion from the output extension when the user says things like "convert EPUB to PDF".
2. Check Calibre availability
Use the bundled script first. It looks for ebook-convert in PATH, then common macOS install locations.
If Calibre is missing, stop and tell the user exactly which command is missing. Do not pretend the conversion succeeded.
3. Run conversion
The core command is:
ebook-convert input_file output_file [options...]
Common examples:
- EPUB -> PDF
- Markdown -> EPUB
- MOBI -> EPUB
- AZW3 -> EPUB
- HTML -> EPUB
- DOCX -> EPUB
When the user does not specify extra options, prefer the simplest possible conversion.
4. Verify result
- Confirm the output file was created.
- Report the final path back to the user.
- If Calibre emits warnings, summarize only the meaningful parts.
Notes
- Calibre support varies by format pair and by installed version.
- PDF output quality depends heavily on source structure and metadata.
- Markdown input is handled by Calibre's parsers; if the output looks poor, try converting via HTML or adding explicit options.
- For large batches, loop over files and keep source/target extensions explicit instead of guessing.
Resources
scripts/
scripts/convert_with_calibre.py: validates paths, findsebook-convert, and forwards extra options safely.
references/
references/examples.md: ready-to-copy conversion examples and troubleshooting notes.
相关技能
Process EPUB files into structured extraction JSON, guide AI paragraph-aligned translation and summary filling, then assemble bilingual EPUBs with target-lan...
calibre-ebooks is an OpenClaw skill for querying and operating a local Calibre library through a local Books API and helper scripts. It works only with books already available in the configured Calibre library and does not download, search, or add books from external sources. The project includes agent workflow guidance, a Python API client, a FastAPI server, semantic RAG support, systemd services, and local environment-based configuration.
This skill should be used when the user provides an electronic book (PDF, EPUB, TXT, MD) and wants to automatically extract knowledge, analyze structure, and...
将 PDF 和图片转换为 10 种文档或数据格式,并提供 OCR 与版面分析控制。
Use this skill when converting TRPG markdown files (rulebooks, scenarios, catalogs) to PDF format. Triggers on: convert to PDF, export PDF, generate PDF, 轉PD...