Skip to content
julien-calibre logo

Calibre Library Management

julien-calibre

Complete Calibre library management - add/remove books, convert PDF to EPUB, metadata editing, library analysis, cleanup, and e-reader sync (Sony PRS-T1). Use for any ebook or Calibre operation.

SKILL.md

Full skill instructions

Calibre Library Management

Complete ebook library management with Calibre.

Configuration

PropertyValue
CalibreC:\Program Files\Calibre2\
LibraryC:\Users\julien\OneDrive\Calibre\Calibre Library
E-ReaderSony PRS-T1 (EPUB, PDF, TXT)

IMPORTANT: Close Calibre before using CLI commands.


1. Add Books

Add Local File

& 'C:\Program Files\Calibre2\calibredb.exe' add 'PATH\TO\BOOK.epub' --library-path 'C:\Users\julien\OneDrive\Calibre\Calibre Library'

Add with Metadata

calibredb add "book.epub" --title "Title" --authors "Author" --library-path "..."

Add Folder Recursively

calibredb add "C:\Folder" --recurse --library-path "..."

Download from Project Gutenberg

  1. Search: WebSearch: "TITLE AUTHOR site:gutenberg.org/​ebooks"
  2. Extract ID from URL (/​ebooks/​24850 → 24850)
  3. Download: curl -L "https://www.gutenberg.org/​ebooks/​24850.epub3.images" -o "book.epub"
  4. Add to Calibre

2. Remove Books

Remove by ID

calibredb remove 123 --permanent --library-path "..."

Remove Multiple

calibredb remove 98,99,100,101 --permanent --library-path "..."

Remove Format Only (keep book)

calibredb remove_format 123 PDF --library-path "..."

Search Then Remove

# Find IDs
calibredb search "author:Zola" --library-path "..."
# Remove
calibredb remove ID1,ID2 --permanent --library-path "..."

3. Convert PDF to EPUB

Basic Conversion

& 'C:\Program Files\Calibre2\ebook-convert.exe' 'input.pdf' 'output.epub'

With Heuristics (better quality)

ebook-convert 'input.pdf' 'output.epub' --enable-heuristics

Add EPUB to Existing Book

calibredb add_format BOOK_ID 'output.epub' --library-path "..."

Find Books Without EPUB

calibredb list --search 'formats:PDF NOT formats:EPUB' --fields id,title,formats --library-path "..."

PDF Types

TypeQualityNotes
Text PDFGoodDirect conversion
Scanned/​ImagePoorNeeds OCR
MixedVariableUse heuristics

4. Metadata Management

View Metadata

calibredb show_metadata BOOK_ID --library-path "..."

Set Metadata

calibredb set_metadata BOOK_ID -f 'title:New Title' --library-path "..."
calibredb set_metadata BOOK_ID -f 'authors:Author Name' --library-path "..."
calibredb set_metadata BOOK_ID -f 'languages:fra' --library-path "..."
calibredb set_metadata BOOK_ID -f 'tags:Fiction, Classic' --library-path "..."

Set Cover

calibredb set_metadata BOOK_ID -c 'cover.jpg' --library-path "..."

Extract from File

& 'C:\Program Files\Calibre2\ebook-meta.exe' 'book.epub'

5. Library Analysis

List All Books

calibredb list --library-path "..."

Search by Language

calibredb list --search 'language:eng' --library-path "..."

Find Duplicates

calibredb list --search 'formats:PDF AND formats:EPUB' --fields id,title --library-path "..."

Analysis Scripts

python scripts/​analyze/​find_empty_books.py      # Books with no format
python scripts/​analyze/​find_books_without_epub.py  # PDF-only
python scripts/​analyze/​find_english_books.py    # Filter by language
python scripts/​analyze/​analyze_library.py       # Format statistics

6. Library Cleanup

Workflow

# 1. Close Calibre + OneDrive
Stop-Process -Name calibre,OneDrive -Force -ErrorAction SilentlyContinue

# 2. Analyze
python scripts/​analyze/​find_empty_books.py

# 3. Remove
calibredb remove ID1,ID2 --permanent --library-path "..."

# 4. Clean orphaned folders
python scripts/​force_delete_orphans.py

# 5. Reopen Calibre

Remove PDF When EPUB Exists

# Find books with both formats
calibredb list --search 'formats:PDF AND formats:EPUB' --fields id,title --library-path "..."

# Remove PDF format
calibredb remove_format BOOK_ID PDF --library-path "..."

7. E-Reader Sync

Device: Sony PRS-T1

  • Formats: EPUB (preferred), PDF, TXT

Check Connection

Get-PnpDevice | Where-Object { $_.FriendlyName -like "*Sony*" -or $_.FriendlyName -like "*Reader*" }

Transfer Books

Use Calibre GUI (no CLI for device sync):

  1. Connect e-reader
  2. Select books in Calibre
  3. Right-click → "Send to device"

Troubleshooting

IssueSolution
Device not detectedUnplug, wait 5s, replug
"No suitable format"Convert to EPUB first
Transfer failsCheck device storage

Scripts Reference

ScriptPurpose
scripts/​analyze/​find_empty_books.pyBooks with no format
scripts/​analyze/​find_books_without_epub.pyPDF-only books
scripts/​analyze/​find_english_books.pyFilter by language
scripts/​manage/​remove_books.pyBatch removal
scripts/​convert/​batch_convert.pyBatch conversion
scripts/​force_delete_orphans.pyClean orphaned folders

Quick Reference

# Add book
calibredb add "book.epub" --library-path "..."

# Remove book
calibredb remove ID --permanent --library-path "..."

# Convert PDF
ebook-convert "input.pdf" "output.epub" --enable-heuristics

# View metadata
calibredb show_metadata ID --library-path "..."

# Set metadata
calibredb set_metadata ID -f 'title:New Title' --library-path "..."

# List all
calibredb list --library-path "..."

# Search
calibredb search "author:Name" --library-path "..."

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View