Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage and query Calibre libraries with the calibredb CLI (local paths or Calibre Content server URLs). Use when listing books, searching/filtering library records, reading/updating metadata, adding/removing formats, exporting books, maintaining custom columns, running library checks, managing FTS indexing/search, or creating catalogs/backups from a Calibre library.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 15% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 55% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -41% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 110% | 0% |
Use this skill for all command-line operations on Calibre libraries.
or Content server URL before running commands.
--with-library "$CALIBRE_LIBRARY".environment for an existing Calibre library before proceeding.
--for-machine or JSON-capable subcommands.Start with read-only operations, then escalate only when needed.
listsearchshow_metadatacustom_columnslist_categoriescheck_libraryfts_searchfts_index statusadd, set_metadata, set_custom, add_format, embed_metadata, backup_metadataremove, remove_format, remove_custom_column, restore_database, fts_index reindex on full library--with-library.search (or list --search).show_metadata or list --for-machine.list/search/show_metadata.bashexport CALIBRE_LIBRARY="/path/to/Calibre Library" calibredb list --with-library "$CALIBRE_LIBRARY" --fields id,title,authors,formats --limit 20
Machine output:
bashcalibredb list --with-library "$CALIBRE_LIBRARY" --fields id,title,authors,tags,formats --for-machine
bashcalibredb search --with-library "$CALIBRE_LIBRARY" "title:python"
Use IDs in follow-up commands.
bashcalibredb show_metadata --with-library "$CALIBRE_LIBRARY" 123
As OPF:
bashcalibredb show_metadata --with-library "$CALIBRE_LIBRARY" --as-opf 123
bashcalibredb set_metadata --with-library "$CALIBRE_LIBRARY" 123 \ --field title:"Example Book" \ --field tags:"python,reference"
bashcalibredb add --with-library "$CALIBRE_LIBRARY" "/path/to/book.epub" calibredb export --with-library "$CALIBRE_LIBRARY" 123 --to-dir "/tmp/export"
bashcalibredb check_library --with-library "$CALIBRE_LIBRARY"
To target a running Calibre Content server:
bashcalibredb list --with-library "http://hostname:8080/#library_id" --username <user> --password <pass>
From docs: use special #- library id to list server libraries.
Security note: a literal --password <pass> value is passed as a process argument and may be visible to other users on shared machines via process-listing tools. Prefer --password '<stdin>' with the password piped from a password manager, or --password '<f:/path/to/file>' with a 0600 credential file stored outside the repository. Prefer local or trusted hosts for authenticated Content server commands, and redact credentials from shell history, logs, and task transcripts.
references/command-matrix.mdreferences/safe-workflows.mdOther measured skills in the registry, with their headline benchmark lift.