cli-anything-calibre
What it does
This skill lets your agent manage an ebook library in Calibre, including book lists, metadata, and file format conversion. It is for people who keep a large collection of e-books.
When to use it
- ✓When you want to list or search books in your Calibre library.
- ✓When you want to fix the title, author, or other metadata of a book.
- ✓When you want to convert an ebook to a different format.
Skill link
https://github.com/HKUDS/CLI-Anything/blob/main/calibre/agent-harness/cli_anything/calibre/skills/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Find all my books by Ursula Le Guin in Calibre and convert one of them to EPUB.”
5 new skills a week. 1 minute to read.
How it works
The skill uses the real Calibre tools in the background, such as calibredb and ebook-convert, to read and change your library. Your agent then reports the results in a clear, structured form.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
cli-anything-calibre
A stateful CLI harness for Calibre e-book management. Wraps the real Calibre tools (calibredb, ebook-convert, ebook-meta) to give AI agents and scripts a clean, structured interface for library operations, metadata editing, and format conversion.
Installation
This CLI is installed as part of the cli-anything-calibre package:
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=calibre/agent-harness
Prerequisites:
- Python 3.10+
- Calibre must be installed on your system (hard dependency)
# Debian/Ubuntu
sudo apt-get install calibre
# macOS
brew install --cask calibre
# Verify tools are in PATH
which calibredb
which ebook-convert
which ebook-meta
Usage
Basic Commands
# Show help
cli-anything-calibre --help
# Start interactive REPL mode
cli-anything-calibre
# Connect to a Calibre library
cli-anything-calibre library connect ~/Calibre\ Library
# Run with JSON output (for agent consumption)
cli-anything-calibre --json books list
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-calibre
# Enter commands interactively with tab-completion and history
# Use 'help' to see available commands
# Use 'quit' or 'exit' to leave
Command Groups
Library
Library management commands.
| Command | Description |
|---|---|
connect <path> |
Set active library path |
info |
Show library statistics (book count, formats, db size) |
check |
Verify library integrity using calibredb check_library |
Books
Book operations (wrap calibredb).
| Command | Description |
|---|---|
list |
List books with filtering and sorting |
search <query> |
Search using Calibre query language |
add <files> |
Add book files to library |
remove <ids> |
Remove books (move to trash or permanent delete) |
show <id> |
Show full metadata for a book |
export <ids> |
Export books to directory |
export-chapters <id> |
Export each chapter as separate PDF (requires EPUB format) |
Meta
Metadata editing (wrap calibredb set_metadata).
| Command | Description |
|---|---|
get <id> [field] |
Get metadata (all or specific field) |
set <id> <field> <value> |
Set a metadata field |
embed <ids> |
Embed metadata into book files |
Formats
Format management (wrap calibredb + ebook-convert).
| Command | Description |
|---|---|
list <id> |
List available formats for a book |
add <id> <file> |
Add a format to a book |
remove <id> <fmt> |
Remove a format from a book |
convert <id> <input_fmt> <output_fmt> |
Convert book format |
Custom
Custom columns (wrap calibredb).
| Command | Description |
|---|---|
list |
List all custom columns |
add <label> <name> <type> |
Create custom column |
remove <label> |
Delete custom column |
set <id> <label> <value> |
Set custom field value |
Catalog
Catalog generation.
| Command | Description |
|---|---|
catalog <output> |
Generate a catalog of the library (EPUB, CSV, or OPDS) |
Examples
Connect and List Books
Connect to your Calibre library and list books.
cli-anything-calibre library connect ~/Calibre\ Library
cli-anything-calibre books list
# Or with JSON output
cli-anything-calibre --json books list --search "author:asimov"
Search and Filter
Search books using Calibre query language.
cli-anything-calibre books search "title:Foundation"
cli-anything-calibre books search "author:asimov and tags:scifi"
cli-anything-calibre books search "rating:>3"
Metadata Editing
Set metadata fields on books.
cli-anything-calibre meta set 42 title "New Title"
cli-anything-calibre meta set 42 series "Foundation"
cli-anything-calibre meta set 42 series_index 1
cli-anything-calibre meta set 42 tags "scifi,classic"
cli-anything-calibre meta set 42 rating 5
Format Conversion
Convert between e-book formats.
cli-anything-calibre formats convert 42 EPUB MOBI
cli-anything-calibre formats convert 42 EPUB PDF --output /tmp/book.pdf
Export Chapters as PDFs
Export each chapter of an EPUB as a separate PDF file.
cli-anything-calibre books export-chapters 42 --to-dir ./pdfs
cli-anything-calibre books export-chapters 42 --to-dir ./pdfs --chapters 1-5
Calibre Query
FAQ
Do I need Calibre installed?
Yes, Calibre must be installed, because the skill depends on its tools.
How do I connect it to my library?
You point the skill at your Calibre library folder, and it stays connected for later commands.
Can I use it from a script?
Yes, it has a JSON output mode that is easy for scripts and AI agents to read.
Details
Original description by the author
Command-line interface for Calibre - A stateful CLI harness for e-book library management, metadata editing, and format conversion wrapping the real Calibre tools (calibredb, ebook-convert, ebook-meta)...
repo: HKUDS/CLI-Anything
Popularity
- GitHub stars
- 58k
- Ranking position
- #3186
- License
- Apache-2.0
- Updated
- 9/21/2026
Comments
- …
More skills from this repository
cli-anything-3mf
58kLets your agent inspect and fix 3D printing files, including finding round holes, resizing them, repairing meshes, and comparing two files.
cli-anything-qgis
58kLets your agent open, edit, and export QGIS map projects from the terminal, including layers, features, print layouts, and processing tools.
cli-anything-adguardhome
58kLets your agent manage AdGuard Home, a network-wide ad blocker, including filters, DNS rewrites, clients, and query logs.
cli-anything-anygen
58kLets your agent generate slides, documents, websites, and diagrams from a written prompt using the AnyGen service.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.