/immich-photo-manager:photo-cleanupfrom Photo Manager for Immich
Detects and removes screenshots, duplicates, and low-quality photos from an Immich library using CLIP search, metadata analysis, and EXIF signals. Presents findings for user approval before deletion.
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.
Intelligent photo library cleanup for Immich. Identifies and helps remove screenshots, duplicates, and low-quality images while protecting valuable photos.
NEVER delete photos automatically. Always:
delete_assets(asset_ids, force=False) to send photos to trash (recoverable). Use restore_assets or restore_trash to undo. Only use force=True for permanent deletion when the user explicitly requests it.Screenshots are the #1 source of library bloat. Surface candidates with search_smart(query="screenshot") (CLIP) plus filename patterns (Screenshot*, Screen Shot*, Captura*) in search_metadata/list_assets results. Dimensions are NOT searchable. Then score each candidate by combining multiple signals (dimensions and EXIF come from get_asset_info, per asset):
| Signal | Weight | How to detect |
|---|---|---|
| Screen resolution | High | get_asset_info dimensions match known screen sizes exactly |
| No GPS data | Medium | EXIF GPS fields empty |
| No lens info | Medium | No focal length, aperture, or lens model |
| Filename pattern | Low | Contains "Screenshot", "Screen Shot", "Captura" |
| No camera make/model | Medium | Missing or generic device info |
Screen resolutions to flag (exact pixel matches):
iPhone screens: 750x1334, 1125x2436, 1170x2532, 1242x2688, 1284x2778, 1290x2796 Mac screens: 1920x1080, 2560x1440, 2560x1600, 2880x1800, 3024x1964, 3456x2234 Common Android: 1080x1920, 1080x2340, 1080x2400, 1440x2560, 1440x3200
A photo matching 2+ signals is a strong screenshot candidate. Report confidence level:
Sources of duplicates:
Detection strategy:
get_duplicates tool as a fast first pass, which returns groups of visually similar assets detected by Immich's ML engine. Resolve with resolve_duplicates.For 4 and 5, deleting is not the only option. create_stack(asset_ids=[...]) groups the shots behind the best one (the first id becomes the cover), so the library shows a single item and nothing is lost. Offer it before the trash: a stack is reversible with delete_stack, a deletion is not.
| Issue | Detection | Action |
|---|---|---|
| Very dark | Average brightness < 20 (if available) | Flag for review |
| Very blurry | Motion blur EXIF hints, very low sharpness | Flag for review |
| Tiny resolution | Under 640x480 | Flag for review |
| Corrupt/partial | File size anomalies, unreadable EXIF | Flag for review |
Important: Some intentionally dark or blurry photos are artistic. Always flag, never auto-remove.
search_smart(query="screenshot") and scan filenames (Screenshot*, Captura*) in search_metadata/list_assets results📊 Library: {total} assets ({size})
📱 Probable screenshots: ~{count} ({percentage}%)
🔄 Probable duplicates: ~{count} ({percentage}%)
📉 Low quality candidates: ~{count} ({percentage}%)
💾 Estimated space recoverable: {size}
After the quick scan, clean up category by category:
Screenshots first (highest confidence, biggest impact)
search_smart(query="screenshot") (CLIP) to surface visual screenshotssearch_metadata/list_assets for Screenshot*, Screen Shot*, Captura* patternsget_asset_info: no GPS + no lens info + dimensions matching known screen sizesdelete_assets(asset_ids, force=False) (moves to trash, recoverable)Duplicates second (requires more care)
delete_assets(asset_ids, force=False) to trash copies. For ML duplicates, use get_duplicates + resolve_duplicates first.Low quality last (most subjective)
The plugin keeps its own memory on each asset (review_assets, get_assets_notes), invisible in Immich and separate from tags. Use it so a second pass (days later, another session) does not redo the work:
get_assets_notes(asset_ids) and skip the assets that already have a last_verdict, unless the user asks to re-review them. Say how many were skipped.review_assets(asset_ids, verdict, reason) with keep, delete_candidate, duplicate_of or needs_check and a short concrete reason ("near-identical to IMG_6367, that one has the bystander"). Tag the delete candidates as well (a tag is what the user sees and selects in Immich; the note is the why).record_action(asset_ids, "trashed", reason) so the audit trail survives a restore.For large cleanups, report progress every 500 assets processed:
🧹 Scanning... {processed} / {total} ({percentage}%)
Found so far: {screenshots} screenshots, {duplicates} duplicates
Since Immich imports from specific folders, cleanup can target specific sources:
What SKILL.md sets; muted values are Claude Code's defaults
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.
/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.
Other plugins' skills for the same job