agentleFS
drolosoftdrolosoft/immich-photo-manager/skills/auto-album-curator/SKILL.md

auto-album-curator

Skill51 starsChanged 3 months agoMITView on GitHub

Monitor 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.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    If ping succeeds → proceed with the skill normally.

    line 20
  2. Very specific:

    If ping fails or the MCP tools are not available → STOP.

    line 21
  3. Distinctive:

    After importing new photos from a trip/event

    line 38
  4. Distinctive:

    When the user notices new photos aren't in the right albums

    line 40
  5. Distinctive:

    After running a cleanup that might have removed album members

    line 41
  6. Very specific:

    Use the MCP tool list_albums to get all albums, then get_album for each to understand their contents:

    line 47
  7. Distinctive:

    If radius < 50km → "location-based album" (e.g., "Barcelona")

    line 64
  8. Distinctive:

    If radius > 500km → "trip album" or "theme album"

    line 65
  9. Very specific:

    Use search_smart (CLIP) with descriptive terms derived from album name

    line 75
  10. Distinctive:

    Only suggest candidates with score > 0.6.

    line 126
  11. Very specific:

    Use add_assets_to_album MCP tool to add approved photos.

    line 155
  12. Distinctive:

    Never adds photos automatically: always presents suggestions for approval

    line 182

≈ “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

Auto-Album Curator

⚠️ Connection Required: ALWAYS CHECK FIRST

Before doing ANYTHING else in this skill, call ping on the Immich MCP server.

  • If ping succeeds → proceed with the skill normally.
  • If 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:

  1. Your Immich server URL (e.g., http://192.168.1.100:2283)
  2. An Immich API key (how to create one)
  3. 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.

Analyze new photos against existing albums and suggest additions. Uses GPS proximity, CLIP visual similarity, and temporal patterns to find photos that belong in an album but haven't been added yet.

When to Use

  • After importing new photos from a trip/event
  • Periodic curation (weekly/monthly)
  • When the user notices new photos aren't in the right albums
  • After running a cleanup that might have removed album members

Curation Workflow

Step 1: Inventory Current Albums

Use the MCP tool list_albums to get all albums, then get_album for each to understand their contents:

for album in albums:
    album.photo_count = len(album.assets)
    album.date_range = (min(dates), max(dates))
    album.gps_center = average(gps_coordinates)
    album.gps_radius = max_distance_from_center
    album.themes = []  # populated by CLIP analysis

Step 2: Profile Each Album

For each album, build a profile:

GPS Profile:

  • Calculate the geographic center and radius of all geotagged photos
  • If radius < 50km → "location-based album" (e.g., "Barcelona")
  • If radius > 500km → "trip album" or "theme album"

Temporal Profile:

  • Date range of photos
  • Is it a single event (1-3 days) or ongoing collection?
  • For event albums, new photos should be within the date range
  • For collection albums, any date is valid
  • get_timeline_buckets(album_id=...) settles that question without fetching a single asset: one or two buckets means an event, buckets spread across years mean a collection

Visual Profile:

  • Use search_smart (CLIP) with descriptive terms derived from album name
  • Sample 5 representative photos and note their visual characteristics

Step 3: Find Candidate Photos

For each album, search for unassigned photos that match its profile:

candidates = []

# GPS-based matching (for location albums)
# There is no radius search parameter, so pull the map markers and
# filter by distance client-side (up to 500 geotagged assets)
if album.gps_center:
    markers = get_map_markers()
    nearby = [m for m in markers
              if haversine(m.lat, m.lon,
                           album.gps_center.lat, album.gps_center.lng)
              <= album.gps_radius * 1.5]  # slightly wider
    candidates.extend(nearby)
    # If the album maps to a known place name, also search geocoded EXIF:
    # search_metadata(city="Barcelona")

# CLIP-based matching (for theme albums)
if album.name:
    similar = search_smart(query=album.name)
    candidates.extend(similar)

# Date-based matching (for event albums)
if album.is_event:
    in_range = search_metadata(
        taken_after=album.date_range[0],
        taken_before=album.date_range[1]
    )
    candidates.extend(in_range)

# Filter: only photos NOT already in ANY album
candidates = [c for c in candidates if c.id not in all_album_asset_ids]

Step 4: Score and Rank Candidates

For each candidate, compute a relevance score:

SignalWeightDescription
GPS proximity0.4Distance from album's geographic center
Visual similarity0.3CLIP score against album's representative photos
Temporal fit0.2How well the date fits the album's range
Source match0.1Same camera/source as existing album photos

Only suggest candidates with score > 0.6.

Step 5: Present Suggestions

ALBUM CURATION SUGGESTIONS
═══════════════════════════════════════

📁 Barcelona (42 photos, last updated: 2024-08-15)
   3 new photos found:
   - IMG_4521.jpg (2024-12-20, GPS: 41.38°N 2.17°E, score: 0.92)
   - IMG_4523.jpg (2024-12-20, GPS: 41.39°N 2.18°E, score: 0.89)
   - DSC_0012.jpg (2025-01-05, GPS: 41.40°N 2.16°E, score: 0.78)

📁 Family Dinners (28 photos, ongoing collection)
   5 new photos found:
   - IMG_5102.jpg (2025-02-14, CLIP: "dinner table", score: 0.81)
   - IMG_5103.jpg (2025-02-14, CLIP: "family gathering", score: 0.77)
   ...

📁 Lanzarote 2024 (156 photos, event: Oct 2024)
   0 new photos, album appears complete

SUMMARY: 8 photos suggested for 2 albums
Add all? [Yes / Review one by one / Skip]

Step 6: Apply (User-Approved)

Use add_assets_to_album MCP tool to add approved photos.

Album Types

The curator handles different album types differently:

TypeDetectionCandidate Strategy
LocationAll photos within 50km radiusGPS proximity search
EventPhotos span 1-7 daysStrict date range matching
TripPhotos span 1-4 weeks, multiple locationsGPS along the route
ThemeNo GPS pattern, mixed datesCLIP visual similarity only
PeopleAlbum named after a personsearch_people(name=album.name) for the id, then search_metadata(person_ids=["<id>"])

Scheduled Mode

This skill can be configured to run periodically via the schedule skill:

"Run album curation every Sunday at 9am"
→ Scans for new photos added in the past week
→ Generates suggestions
→ Saves report for user review

Important Notes

  • Never adds photos automatically: always presents suggestions for approval
  • Respects album boundaries: won't suggest adding a screenshot to a travel album
  • For shared albums (published via Immich shared links), suggests additions but warns about public visibility
  • CLIP search requires the Immich ML container to be running
  • Large libraries (>50K) may take 2-5 minutes to analyze all albums
  • The scoring weights can be adjusted by the user if suggestions aren't relevant enough

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.