Aller au contenu
Skillpedia
PDF, Word et présentations58k · #3186

cli-anything-calibre

Ce qu’il fait

Ce skill permet à votre agent de gérer une bibliothèque de livres numériques dans Calibre, y compris les listes de livres, les métadonnées et la conversion de formats. Il s'adresse aux personnes qui gèrent une grande collection de livres numériques.

Quand l’utiliser

  • ✓Quand vous voulez lister ou rechercher des livres dans votre bibliothèque Calibre.
  • ✓Quand vous voulez corriger le titre, l'auteur ou d'autres métadonnées d'un livre.
  • ✓Quand vous voulez convertir un livre numérique dans un autre format.

Lien du skill

https://github.com/HKUDS/CLI-Anything/blob/main/calibre/agent-harness/cli_anything/calibre/skills/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/HKUDS/CLI-Anything/blob/main/calibre/agent-harness/cli_anything/calibre/skills/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Trouve tous mes livres de Ursula Le Guin dans Calibre et convertis l'un d'eux en EPUB.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le skill utilise en arrière-plan les vrais outils de Calibre, comme calibredb et ebook-convert, pour lire et modifier votre bibliothèque. Votre agent présente ensuite les résultats sous une forme claire et structurée.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

Questions fréquentes

Faut-il avoir Calibre installé ?

Oui, Calibre doit être installé, car le skill dépend de ses outils.

Comment le relier à ma bibliothèque ?

Vous indiquez au skill le dossier de votre bibliothèque Calibre, et il reste connecté pour les commandes suivantes.

Peut-on l'utiliser dans un script ?

Oui, il dispose d'un mode de sortie JSON facile à lire pour les scripts et les agents IA.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
58k
Position au classement
#3186
Licence
Apache-2.0
Mis à jour
21/09/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires