/immich-photo-manager:album-managerfrom Photo Manager for Immich
Creates, curates, and publishes Immich albums organized by geography, theme, or custom criteria. Organizes photos by place rather than date.
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.
Read when SKILL.md points to them.
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 running (
./immich-mcp-server)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 album creation and curation for Immich photo libraries. Organizes photos geographically by default: albums represent places, not dates.
Geography first, chronology second. A user who visited Mexico twice gets one "Mexico" album (or sub-albums by city), not "Mexico 2018" and "Mexico 2023". Dates are metadata shown inside the album, never the organizing principle.
Use the Immich MCP tools for all API interactions:
search_metadata: Search by city, state, country, camera make/model, date range (taken_after/taken_before), favorites, or asset typesearch_smart: CLIP semantic search from a natural language description (e.g. "Colosseum Rome Italy")get_map_markers: Get GPS markers (up to 500) for all geotagged assets; filter by coordinates client-sidecreate_album: Create a new album with name and descriptionadd_assets_to_album: Add photos/videos to an album by asset IDsremove_assets_from_album: Remove assets from an albumlist_albums: List albums with asset counts. On large libraries use name_contains to find one by name or page + size to page; compact=true trims each album to id, name and countget_album: Get album details including all assetsdelete_album: Delete an album (does NOT delete the photos)create_shared_link: Create a public shared link for an album (makes it visible in Gallery)get_asset_info: Get full metadata for a specific asset (GPS, EXIF, dates)get_statistics: Get library statistics (total photos, videos, storage)get_asset_thumbnail: Get base64 thumbnail for an asset (used for gallery HTML generation)create_stack / list_stacks: Group near-identical shots under one cover asset instead of dropping them; the album shows the stack as a single itemget_download_info: Size of the zip an album would make, before building itdownload_archive: Write the album's originals to a zip on the machine running the serverThere is no radius/coordinate search parameter, so combine these four approaches:
# Location text search (most reliable, uses EXIF reverse-geocoded names)
search_metadata(city="Roma")
search_metadata(country="Italy")
# CLIP semantic search (when geocoded names are missing or inconsistent)
search_smart(query="Colosseum Rome Italy")
# GPS clustering via map markers (returns up to 500 markers with lat/lon)
get_map_markers()
# Then filter the returned coordinates yourself, e.g. keep markers
# within ~0.5° of Rome (41.90, 12.49) and collect their asset IDs
# Date-based (supplement, trip windows)
search_metadata(taken_after="2023-06-01", taken_before="2023-06-15")
# Combined: location text + date window
search_metadata(city="Roma", taken_after="2023-06-01", taken_before="2023-06-15")
From the search results, filter out:
Near-duplicates do not have to be dropped. When several shots are the same moment, create_stack(asset_ids=[...]) groups them behind the best one: the album shows one photo and nothing is deleted. The first id passed becomes the cover.
Prefer photos that:
Target: 20-50 photos per album for optimal gallery experience. Can go up to 100 for major destinations.
Naming convention:
[Country emoji] Place, Country
Examples:
🇮🇹 Cinque Terre, Italia
🇪🇬 Cairo & Luxor, Egypt
🇲🇽 Chiapas, México
🏝️ Lanzarote
🌴 La Palma
🏙️ Barcelona
For the description, include:
After creating the album, create a shared link to make it visible in the Gallery frontend:
create_shared_link(album_id="{id}", show_metadata=true, allow_download=false)
Confirm the album appears correctly:
When creating multiple albums at once (e.g., "create albums for all my trips"):
get_map_markers data to understand what locations existAlways err on the side of creating MORE albums: the user can merge or delete later. It's easier to remove an unwanted album than to discover a missing one.
Many photos (especially older ones or screenshots) lack GPS coordinates. Strategy:
search_metadata with city/country) for photos that have ittaken_after/taken_before) to find photos taken during the same tripsearch_smart: "beach Lanzarote", "pyramid Egypt")When asked to update or refine an existing album:
When the user asks to "show me photos from [album]", "generate a gallery for [album]", "show me [album name]", or any variation of viewing/displaying album contents visually, generate an interactive HTML gallery page.
Use the gallery template at assets/viewer-template.html (from the plugin root). This is a self-contained, single-file HTML gallery with:
The template uses these placeholders that MUST be replaced:
| Placeholder | Description | Example |
|---|---|---|
{{ALBUM_NAME}} | Display name of the album | Lanzarote Verde |
{{ALBUM_TOTAL}} | Total number of photos in the album | 273 |
{{SEARCH_QUERY}} | The query or description used to find photos | “green landscapes in Lanzarote” |
{{IMMICH_URL}} | Immich server base URL | https://your-immich-server.com |
{{PAGE_SIZE}} | Number of photos per lazy-load page | 20 |
{{PHOTO_COUNT}} | Total photos in the gallery (limit ~50 for file size) | 50 |
{{PHOTO_ENTRIES}} | The photo data entries (see format below) | See below |
{{ALBUMS_JSON}} | JSON array of album links | See below |
The Cowork viewer runs in an about: protocol sandbox that blocks ALL external network requests. Thumbnails MUST be embedded as base64 data: URIs.
Each entry in {{PHOTO_ENTRIES}} includes the full thumbnail data:
{src:'data:image/jpeg;base64,/9j/4AAQ...',id:'<asset-id>',name:'<filename>',date:'<ISO-date>'}
src: Base64 data URI of the thumbnail (from get_thumbnails_batch, size=thumbnail, ~250px, ~15-25KB each)id: The Immich asset ID (for linking to Immich web UI)name: Original filename (displayed as label)date: ISO date string from the asset metadataAlways use size="thumbnail" (250px), never preview (1440px). Thumbnails average ~18KB each, so 50 photos ≈ 0.9MB HTML file.
Entries are comma-separated, one per line.
{{ALBUMS_JSON}} is injected raw into JS. It can be either a JSON array [{...}] or a single object {...}, and the template handles both. Use standard JSON with quoted keys:
[{"id":"<album-id>","name":"<Album Name>","total":<count>}]
Each album object needs: id (string), name (string), total (integer).
get_album to get the album ID, name, and full asset list (IDs, filenames, dates)get_thumbnails_batch(asset_ids=[...], size="thumbnail", limit=50), in batches of 50 if neededassets/viewer-template.html from the plugin root{{...}} placeholders{{PHOTO_ENTRIES}}: {src:'data:...',id:'...',name:'...',date:'...'} for each asset with base64 thumbnail<album-name-slug>.html (~0.9MB for 50 photos)computer://get_thumbnails_batch is REQUIRED. The Cowork sandbox blocks all external requests, so base64 is the only way.
{{PAGE_SIZE}}, {{PHOTO_COUNT}}, {{ALBUM_TOTAL}}: Must be plain integers (e.g. 200, not 200+ or "200"). These are injected directly into JavaScript.{{ALBUM_NAME}}, {{SEARCH_QUERY}}, {{IMMICH_URL}}: Can be any string (they are placed inside HTML or JS string literals).{{PHOTO_ENTRIES}}: Must be valid JS object literals, comma-separated.{{ALBUMS_JSON}}: Must be comma-separated JSON objects (NOT wrapped in array brackets, the template adds [...]). Example: {"id":"abc","name":"My Album","total":50}. If no related albums, use empty string.The {{ALBUMS_JSON}} placeholder must ONLY contain real, user-created albums. Never fabricate album entries. Never create temporary albums to populate this field.
When generating a gallery for an album, find OTHER real albums that are related (e.g., same country, same trip) and list them as Related Albums. If there are no related albums, use [].
get_thumbnails_batch(size="thumbnail"), ~18KB avg eachUser: "Show me photos from Lanzarote Verde"
1. list_albums() -> find "Lanzarote Verde" album (id: abc123, 273 photos)
2. get_album(album_id="abc123") -> get full asset list with IDs, names, dates
3. Read assets/viewer-template.html
4. Replace:
- {{ALBUM_NAME}} -> "Lanzarote Verde"
- {{ALBUM_TOTAL}} -> 273
- {{SEARCH_QUERY}} -> "Lanzarote Verde"
- {{IMMICH_URL}} -> "https://your-immich-server.com"
- {{PAGE_SIZE}} -> 20
- {{PHOTO_COUNT}} -> 50 (first 50 of 273)
- {{PHOTO_ENTRIES}} -> {src:'data:image/jpeg;base64,...',id:"abc",name:"IMG_001",date:"2023-06-15"},{src:'data:...',id:"def",...}
- {{ALBUMS_JSON}} -> {"id":"abc123","name":"Lanzarote Verde","total":273}
5. Save as lanzarote-verde.html (~0.9MB)
6. Present computer:// link
references/geographic-search-patterns.md: Location names and GPS reference coordinates of common destinations, plus search strategiesassets/index-template.html: Dashboard template listing all saved gallery HTML filesassets/viewer-template.html: Self-contained HTML gallery template with dark/light themes, multiple view modes, slideshow, Cowork Actions Panel, and keyboard navigationWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
immich, photo-albums, album-creation, photo-curation, geographic-albums
13 skills in this plugin
/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.
npx claudepluginhub drolosoft/immich-photo-manager --plugin immich-photo-managerOther plugins' skills for the same job