cli-anything-calibre
Qué hace
Esta skill permite que tu agente gestione una biblioteca de libros electrónicos en Calibre, incluidas las listas de libros, los metadatos y la conversión de formatos de archivo. Es para personas que tienen una colección grande de libros electrónicos.
Cuándo usarla
- ✓Cuando quieres listar o buscar libros en tu biblioteca de Calibre.
- ✓Cuando quieres corregir el título, el autor u otros metadatos de un libro.
- ✓Cuando quieres convertir un libro electrónico a otro formato.
Link de la skill
https://github.com/HKUDS/CLI-Anything/blob/main/calibre/agent-harness/cli_anything/calibre/skills/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Busca en Calibre todos mis libros de Ursula Le Guin y convierte uno de ellos a EPUB.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill usa en segundo plano las herramientas reales de Calibre, como calibredb y ebook-convert, para leer y cambiar tu biblioteca. Luego tu agente informa de los resultados de forma clara y estructurada.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Necesito tener Calibre instalado?
Sí. Calibre debe estar instalado, porque la skill depende de sus herramientas.
¿Cómo la conecto a mi biblioteca?
Indicas a la skill la carpeta de tu biblioteca de Calibre, y queda conectada para los comandos siguientes.
¿Puedo usarla desde un script?
Sí. Tiene un modo de salida JSON que es fácil de leer para scripts y agentes de IA.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 58 mil
- Posición en el ranking
- #3186
- Licencia
- Apache-2.0
- Actualizada
- 21/9/2026
Comentarios
- …
Más skills de este repositorio
cli-anything-3mf
58 milPermite que tu agente inspeccione y corrija archivos de impresión 3D, incluidas la búsqueda de agujeros redondos, su redimensionado, la reparación de mallas y la comparación de dos archivos.
cli-anything-qgis
58 milPermite que tu agente abra, edite y exporte proyectos de mapas de QGIS desde la terminal, incluidas las capas, los elementos, los diseños de impresión y las herramientas de procesamiento.
cli-anything-adguardhome
58 milPermite que tu agente gestione AdGuard Home, un bloqueador de anuncios para toda la red, incluidos los filtros, las reescrituras de DNS, los clientes y los registros de consultas.
cli-anything-anygen
58 milPermite que tu agente genere diapositivas, documentos, sitios web y diagramas a partir de un texto escrito, usando el servicio AnyGen.
Skills parecidas
feishu-doc
394 milAyuda a tu agente a leer, crear y editar documentos en la nube de Feishu, incluidos texto, imágenes y tablas, usando la herramienta de documentos.
feishu-drive
394 milPermite que tu agente explore, organice y comente archivos de una carpeta de la nube de Feishu que se haya compartido con el bot.
feishu-perm
394 milAyuda a tu agente a revisar y cambiar quién puede acceder a un archivo de Feishu, eligiendo el permiso más pequeño que cumpla tu petición.