/immich-photo-manager:library-health-reportfrom Photo Manager for Immich
Generates a full health assessment of an Immich photo library: asset counts, storage usage, metadata completeness, orphaned files, and quality indicators. Use for periodic checkups, after bulk imports, or before cleanup.
Ships in Photo Manager for Immich. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before doing ANYTHING else in this skill, call ping on the Immich MCP server.
ping succeeds → proceed with the skill normally.ping fails or the MCP tools are not available → STOP. Do not continue. Tell the user:❌ Immich is not connected. This plugin needs a running Immich MCP server to work.
Run /setup-immich-photo-manager to configure your Immich connection. You'll need:
- Your Immich server URL (e.g.,
http://192.168.1.100:2283)- An Immich API key (how to create one)
- The MCP server configured (see /setup-immich-photo-manager)
Nothing in this plugin will work until the connection is configured.
Do NOT skip this check. Do NOT try to run any other tool first. Always ping, always block if it fails.
Generate a full health assessment of an Immich photo library. Covers asset inventory, storage breakdown, metadata quality, and recommendations to act on.
Call get_capabilities once before anything else: it reports the server version, which features are switched on (OCR, smart search, facial recognition, map) and the quirks of that Immich major. A health report that says "GPS coverage 0%" is misleading when the map feature is simply off, and a section about OCR text makes no sense on a server without OCR. Mention the version in the report header.
Start with get_statistics. It is the official Immich count of photos, videos and storage used, in one call and with no database access. search_statistics(...) answers any narrower count ("how many videos", "how many favorites") with one more call.
The query below is an optional fallback for the columns the API does not expose, such as the trash breakdown by type. The plugin never provides database access, so it only applies if you already have psql on your own Immich:
-- Total assets by type
SELECT type, count(*) as total,
pg_size_pretty(sum(("exifInfo"->>'fileSizeInByte')::bigint)) as total_size
FROM asset
WHERE "deletedAt" IS NULL
GROUP BY type;
-- Trash contents
SELECT type, count(*) as trashed
FROM asset
WHERE "deletedAt" IS NOT NULL
GROUP BY type;
Present as:
ASSET INVENTORY
Photos: 39,596
Videos: 4,983
Total live: 44,579
In trash: 8,433
Storage used: ~180 GB
Identify where photos came from:
SELECT
CASE
WHEN "originalPath" LIKE '%Apple Fotos%' OR "originalPath" LIKE '%Apple Photos%' THEN 'Apple Photos'
WHEN "originalPath" LIKE '%Google Fotos%' OR "originalPath" LIKE '%Google Photos%' THEN 'Google Photos'
WHEN "originalPath" LIKE '%upload%' THEN 'Direct Upload'
ELSE split_part("originalPath", '/', 5)
END as source,
count(*) as total,
min("localDateTime") as earliest,
max("localDateTime") as latest
FROM asset WHERE "deletedAt" IS NULL
GROUP BY source ORDER BY total DESC;
Check for gaps in critical metadata fields:
-- GPS coverage
SELECT
count(*) as total,
count(*) FILTER (WHERE "exifInfo"->>'latitude' IS NOT NULL) as has_gps,
round(100.0 * count(*) FILTER (WHERE "exifInfo"->>'latitude' IS NOT NULL) / count(*), 1) as gps_pct
FROM asset WHERE "deletedAt" IS NULL AND type = 'IMAGE';
-- Date quality
SELECT
count(*) FILTER (WHERE "exifInfo"->>'dateTimeOriginal' IS NOT NULL) as has_exif_date,
count(*) FILTER (WHERE extract(hour from "localDateTime") = 12
AND extract(minute from "localDateTime") = 0) as suspicious_noon,
count(*) FILTER (WHERE extract(hour from "localDateTime") = 0
AND extract(minute from "localDateTime") = 0) as suspicious_midnight
FROM asset WHERE "deletedAt" IS NULL AND type = 'IMAGE';
-- Camera info
SELECT
count(*) FILTER (WHERE "exifInfo"->>'make' IS NOT NULL) as has_camera_make,
count(*) FILTER (WHERE "exifInfo"->>'lensModel' IS NOT NULL) as has_lens
FROM asset WHERE "deletedAt" IS NULL AND type = 'IMAGE';
Present as:
METADATA QUALITY
GPS coverage: 72.3% (28,616 of 39,596 photos)
EXIF dates: 89.1% (35,280 photos)
Suspicious dates: 1,204 (noon/midnight, likely recovered from paths)
Camera info: 68.4% (27,072 photos)
Lens info: 52.1% (20,623 photos)
get_timeline_buckets() returns one bucket per month with its asset count in a single call, which is the whole year-by-year picture already: sum the buckets per year and the low years stand out. get_calendar_heatmap(from_date=..., to_date=...) adds the per-day detail for a year that needs a closer look. Pass an explicit range: on Immich 2.x the counts are built from the timeline, one request per month in range, and an omitted bound falls back to the last 365 days.
The query below is the optional fallback when the photo/video split per year matters:
SELECT extract(year from "localDateTime") as year,
count(*) as photos,
count(*) FILTER (WHERE type = 'VIDEO') as videos
FROM asset WHERE "deletedAt" IS NULL
GROUP BY year ORDER BY year;
Highlight years with unusually low counts (potential missing imports).
SELECT
upper(split_part("originalPath", '.', -1)) as format,
count(*) as total,
pg_size_pretty(sum(("exifInfo"->>'fileSizeInByte')::bigint)) as size
FROM asset WHERE "deletedAt" IS NULL
GROUP BY format ORDER BY total DESC
LIMIT 15;
Based on findings, generate recommendations the user can act on:
The report can be presented as:
Always ask the user which format they prefer.
get_capabilities, get_statistics, search_statistics, get_timeline_buckets and get_calendar_heatmappsql against their own Immich. Never ask for database credentialsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
immich, photo-library, health-check, library-audit, metadata-quality
npx claudepluginhub drolosoft/immich-photo-manager --plugin immich-photo-manager13 skills in this plugin
/album-managerCreate, curate, and publish Immich albums organized by geography, theme, or custom criteria. Use when the user says "create an album", "organize my photos by location", "make a gallery album", "curate photos from Italy", "publish album", "geographic albums", "album from my trip to X", "share this album", or any variation of creating, managing, or publishing photo albums in Immich. Also triggers on "what albums do I have", "list albums", "album stats", "show me photos from", "generate gallery for", "show me the album".
/album-reportTurn an album or a selection into a PDF report: metadata per photo, frames per video, and Claude's own description of what is in each one. Use when the user says "PDF of the album", "album report", "export to PDF", "make a document with these photos", "catalog the album", "identify what is in each video and put it in a PDF", or any variation of wanting a printable report of a set of photos and videos.
/auto-album-curatorMonitor your Immich library for new photos that match existing albums and suggest additions. Keeps albums fresh by finding new photos that belong in existing collections based on GPS location, visual similarity (CLIP), and date patterns. Use when the user says "update my albums", "refresh albums", "new photos for albums", "curate albums", "auto-curate", "keep albums fresh", "album suggestions", "what new photos belong in my albums", "smart album update", or any variation of wanting to keep their albums up to date with recent imports.
/duplicate-reportRun a full duplicate analysis on an Immich photo library using perceptual hashing. Finds cross-source duplicates (e.g. Apple Photos vs Google Photos exports), internal duplicates, and generates a detailed report with removal recommendations. Use when the user says "find duplicates", "duplicate report", "how many duplicates", "library health check", "photo dedup report", "run duplicate analysis", "compare my photo sources", or any variation of wanting to understand duplicate photos across import sources.
/metadata-fixerScan for and fix broken or missing photo metadata: dates, GPS coordinates, timezone offsets, and camera info. Detects suspicious patterns (midnight/noon timestamps, missing GPS on geotagged trips) and proposes corrections using folder structure, neighboring photos, and EXIF inference. Use when the user says "fix metadata", "fix dates", "wrong dates", "missing GPS", "metadata repair", "exif fix", "photos have wrong time", "noon dates", "midnight timestamps", "fix my photo dates", "metadata fixer", or any variation of wanting to repair photo metadata.
/people-reportGenerate a report on people in your Immich photo library: unique faces detected, photos per person, unnamed faces, people appearing together, and face recognition quality. Use when the user says "people report", "faces report", "who's in my library", "unnamed faces", "face recognition", "how many people", "people stats", "who appears most", "tag my faces", "face cleanup", "person report", or any variation of wanting to understand the people in their photo library.
Other plugins' skills for the same job