agentleFS
bmcszkbmcszk/agent-skills/skills/ebook-convert/SKILL.md

ebook-convert

Skill2 starsChanged 15 days agoMITView on GitHub

Convert ebooks between formats (EPUB, MOBI, AZW3, PDF, etc.) using Calibre's ebook-convert CLI. Use when a conversion task comes up, e.g. epub to mobi/azw3 or any e-book format change.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run ebook-convert <in> <out>.

    line 39
  2. Distinctive:

    Verify the output file exists and has non-zero size.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ebook Conversion

ebook-convert from Calibre. Basic usage:

ebook-convert input.epub output.mobi

Output format is inferred from the output file extension. Supported: mobi, azw3, epub, pdf, txt, docx, fb2, and more.

Format choice matters

  • mobi legacy; Amazon stopped accepting it for Send-to-Kindle in 2022, new Kindles don't read it. Only when explicitly requested.
  • azw3 modern Kindle format, keeps formatting/CSS best. Prefer for Kindle devices.
  • epub universal; Kindle (2022+) and Send-to-Kindle accept it directly, no conversion needed.

Useful options

# cover for mobi (mobi doesn't embed covers well without this)
ebook-convert in.epub out.mobi --mobi-file-type=both

# nicer azw3 with metadata cover
ebook-convert in.epub out.azw3

# fix TOC during conversion
ebook-convert in.epub out.azw3 --toc-threshold=50

Workflow

  1. Locate the input file (find if path not given).
  2. Run ebook-convert <in> <out>; conversion can take 10-60s, use a generous timeout.
  3. Verify the output file exists and has non-zero size.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.