hkuds/cli-anything/cli-anything-calibre
Claude Code and agent skill by hkuds/cli-anything
- community
Checking that the SKILL.md file is still in the repository.
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)...
Install
npx vskill@latest install hkuds/cli-anything/cli-anything-calibreSKILL.md
The same SKILL.md was published earlier as hkuds/cli-anything/cli-anything-calibre.
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:
Prerequisites:
- Python 3.10+
- Calibre must be installed on your system (hard dependency)
Usage
Basic Commands
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
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.
Search and Filter
Search books using Calibre query language.
Metadata Editing
Set metadata fields on books.
Format Conversion
Convert between e-book formats.
Export Chapters as PDFs
Export each chapter of an EPUB as a separate PDF file.
Calibre Query Language
Used with books search and books list --search:
Key Metadata Fields
| Field | Type | Description | |
|---|---|---|---|
title | text | Book title | |
authors | text | Author names (&-separated) | |
tags | text | Comma-separated tags | |
series | text | Series name | |
series_index | float | Position in series | |
rating | float | Rating 1-5 | |
publisher | text | Publisher name | |
pubdate | datetime | Publication date | |
comments | text | Description/comments | |
languages | text | Language codes | |
identifiers | text | ISBN, ASIN, etc. (type:value) |
Supported Formats
Input: EPUB, MOBI, AZW, AZW3, PDF, HTML, DOCX, ODT, FB2, TXT, RTF, LIT, and more
Output (conversion): EPUB, MOBI, AZW3, PDF, HTML, DOCX, TXT, and more
State Management
The CLI maintains session state with:
- Session file:
~/.cli-anything-calibre/session.json - Library path persistence: Active library is saved across sessions
- Environment override:
CALIBRE_LIBRARYenvironment variable
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
--jsonflag): Structured JSON for agent consumption
For AI Agents
When using this CLI programmatically:
- Always use `--json` flag for parseable output
- Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Verify outputs exist after export/conversion operations
- Use `--library` flag or
CALIBRE_LIBRARYenv to specify library path - Chapter export requires EPUB format - convert first if needed
More Information
- Full documentation: See README.md in the package
- Architecture SOP: See CALIBRE.md in the agent-harness directory
- Test coverage: See test_core.py and test_full_e2e.py in the tests directory
- Methodology: See HARNESS.md in the cli-anything-plugin
Version
1.0.0
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cli-anything-calibre/SKILL.md
Popularity
- Repository stars
- 44,699
- Repository forks
- 4,186
- 7-day trend score
- 54
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hkuds/cli-anything/cli-anything-calibre)