agentleFS
sandraschisandraschi/calibremcp/skills/library_health/SKILL.md

library_health

Skill45 starsChanged 16 months agoMITView on GitHub

Description: Analyze Calibre library health: duplicate detection, missing metadata, orphaned records, format coverage, tag consistency, cover completeness, and integrity validation. "Check my library for duplicates and missing metadata." → manage_analysis(operation="duplicates") → merge confirmed dupes → manage_analysis(operation="health") → fix 12 missing authors → manage_tags(operation="list") → merge "sci-fi"/"scifi" → report results.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Duplicate sweep: Run manage_analysis(operation="duplicates") first.

    line 27
  2. Very specific:

    Health report: Run manage_analysis(operation="health") for an overview.

    line 28
  3. Very specific:

    Tag hygiene: Run manage_tags(operation="list").

    line 29
  4. Very specific:

    Integrity validation: Run manage_library_operations(operation="integrity_check").

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Library Health

Description: Analyze Calibre library health: duplicate detection, missing metadata, orphaned records, format coverage, tag consistency, cover completeness, and integrity validation.

Trigger Phrases

  • "Check my library for issues"
  • "Find duplicate books"
  • "What books are missing covers?"
  • "Validate my library integrity"
  • "Clean up my metadata"
  • "Show me library health report"
  • "Find books with missing authors or tags"

Tools

  • manage_analysis(operation="duplicates") — Detect duplicate entries by title similarity + author match. Returns grouped duplicate candidates with merge suggestions.
  • manage_analysis(operation="health") — Full library health report: total books, missing metadata count, format distribution, cover coverage, tag frequency.
  • manage_library_operations(operation="integrity_check") — Database integrity scan: checks calibre database for orphaned records, broken format links, missing files.
  • manage_metadata(operation="show", book_id=...) — Inspect individual book metadata for quality assessment.
  • manage_tags(operation="list") — List all tags in use. Shows frequency; reveals typos and inconsistent capitalization.
  • manage_metadata(operation="update", book_id=..., field=..., value=...) — Fix individual metadata issues.
  • Bulk metadata tools — Apply fixes across multiple books at once.

Workflow

  1. Duplicate sweep: Run manage_analysis(operation="duplicates") first. Review grouped candidates. Merge or delete duplicates.
  2. Health report: Run manage_analysis(operation="health") for an overview. Note missing covers, authors, or tags.
  3. Tag hygiene: Run manage_tags(operation="list"). Look for variants: "sci-fi" vs "scifi" vs "science-fiction". Normalize via bulk metadata update.
  4. Format audit: Health report shows format distribution (epub, mobi, pdf, azw3). Identify books missing your preferred format. Use Calibre conversion tools to fill gaps.
  5. Cover recovery: Books missing covers: use manage_metadata(operation="download_cover", book_id=...) for each, or batch via agentic workflow.
  6. Integrity validation: Run manage_library_operations(operation="integrity_check"). Fix any broken format links or dangling orphans.

Example

"Check my library for duplicates and missing metadata." → manage_analysis(operation="duplicates") → merge confirmed dupes → manage_analysis(operation="health") → fix 12 missing authors → manage_tags(operation="list") → merge "sci-fi"/"scifi" → report results.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.