/immich-photo-manager:metadata-fixerfrom Photo Manager for Immich
Scans Immich photo libraries for broken or missing EXIF metadata (dates, GPS, timezone offsets) and proposes corrections using folder structure and neighboring photos.
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.
Scan an Immich library for broken, missing, or suspicious metadata and propose corrections. Focuses on the most impactful fields: dates, GPS coordinates, and timezone offsets.
Common metadata problems in imported photo libraries:
Over the API: walk the library with get_timeline_buckets(), then get_timeline_bucket(time_bucket) for the months to check. Each row carries the asset date, city and country, which is enough to spot exact-noon and exact-midnight timestamps and the days where some photos have a place and others do not. get_asset_info fills in the rest for a candidate.
The queries below are an optional fallback that runs the same scan in one pass. The plugin never provides database access, so they only apply to a user who already has psql on their own Immich:
-- Suspicious timestamps (exactly midnight or noon)
SELECT
"id", "originalPath", "localDateTime",
"exifInfo"->>'dateTimeOriginal' as exif_date,
CASE
WHEN extract(hour from "localDateTime") = 0
AND extract(minute from "localDateTime") = 0 THEN 'MIDNIGHT'
WHEN extract(hour from "localDateTime") = 12
AND extract(minute from "localDateTime") = 0
AND extract(second from "localDateTime") = 0 THEN 'NOON'
END as issue_type
FROM asset
WHERE "deletedAt" IS NULL
AND type = 'IMAGE'
AND (
(extract(hour from "localDateTime") = 0 AND extract(minute from "localDateTime") = 0)
OR
(extract(hour from "localDateTime") = 12 AND extract(minute from "localDateTime") = 0
AND extract(second from "localDateTime") = 0)
);
-- Missing GPS where neighbors have GPS (same day, same source)
WITH daily_gps AS (
SELECT
date_trunc('day', "localDateTime") as day,
count(*) as total,
count(*) FILTER (WHERE "exifInfo"->>'latitude' IS NOT NULL) as with_gps
FROM asset WHERE "deletedAt" IS NULL AND type = 'IMAGE'
GROUP BY 1
)
SELECT day, total, with_gps,
total - with_gps as missing_gps,
round(100.0 * with_gps / total, 1) as gps_pct
FROM daily_gps
WHERE with_gps > 0 AND with_gps < total
ORDER BY missing_gps DESC
LIMIT 20;
-- Missing EXIF date entirely
SELECT count(*) as no_exif_date
FROM asset
WHERE "deletedAt" IS NULL
AND "exifInfo"->>'dateTimeOriginal' IS NULL;
| Issue | Severity | Fix Strategy |
|---|---|---|
| Noon timestamps | Medium | Infer from folder path or neighboring photos |
| Midnight timestamps | Medium | Same as noon |
| Missing GPS | Low | Copy from nearest photo (same day, same camera) |
| Wrong timezone | High | Detect from GPS location → timezone lookup |
| No EXIF date at all | Low | Use file creation date or folder path |
NEVER auto-fix. Present findings and proposed corrections:
METADATA ISSUES FOUND
═══════════════════════════════
SUSPICIOUS TIMESTAMPS: 1,204 photos
Noon (12:00:00): 892 photos (likely path-recovered dates)
Midnight (00:00:00): 312 photos
FIX STRATEGY: For each photo, check neighboring photos (±2 hours by
file order within same folder) and interpolate the time. If no neighbors,
keep the date but mark as "time unknown".
Example:
IMG_2847.jpg 2019-07-14 12:00:00 → 2019-07-14 15:23:41 (interpolated)
IMG_2848.jpg 2019-07-14 12:00:00 → 2019-07-14 15:25:12 (interpolated)
IMG_2849.jpg 2019-07-14 15:27:33 (has real EXIF, used as anchor)
MISSING GPS: 4,230 photos (on days where other photos have GPS)
Fixable by neighbor inference: ~2,800 (66%)
FIX STRATEGY: Copy GPS from nearest photo by timestamp on the same day,
same camera/source. Only applies when gap < 2 hours.
Proceed with fixes? [Timestamps / GPS / Both / None]
Use the update_asset_metadata MCP tool to apply corrections:
# Update timestamps
update_asset_metadata(
asset_id="uuid",
date_time_original="2019-07-14T15:23:41.000Z"
)
# Update GPS coordinates
update_asset_metadata(
asset_id="uuid",
latitude=41.3874,
longitude=2.1686
)
When a fix applies the same value to many photos (one day's GPS, one roll's date), use update_assets_metadata(asset_ids=[...], latitude=..., longitude=...) instead of looping: same fields, one call, and only the fields you pass are touched.
# One day's photos, all missing GPS, all from the same place
update_assets_metadata(
asset_ids=["uuid-1", "uuid-2", "uuid-3"],
latitude=41.3874,
longitude=2.1686
)
Keep update_asset_metadata (singular) for the fixes that differ per photo, such as an interpolated timestamp.
Known limitation: Immich writes a
.xmpsidecar when updating EXIF. If photos are in an external library with special characters (emojis) in the path, exiftool may fail silently. Photos uploaded directly through Immich work correctly.
Log every change for audit:
fix_log = {
"asset_id": "uuid",
"field": "dateTimeOriginal",
"old_value": "2019-07-14T12:00:00.000Z",
"new_value": "2019-07-14T15:23:41.000Z",
"strategy": "neighbor_interpolation",
"confidence": 0.85,
"anchor_asset": "uuid-of-neighbor"
}
After applying fixes, re-run the scan to confirm issue counts dropped.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.
/library-health-reportRun a full health check on an Immich photo library: asset counts, storage usage, metadata completeness, orphaned files, and quality indicators. Use when the user says "library health", "health report", "library status", "library audit", "how healthy is my library", "photo stats", "library overview", "what's in my library", "library report", or any variation of wanting a full overview of their photo library's state.
/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