agentleFS
drolosoftdrolosoft/immich-photo-manager/skills/people-report/SKILL.md

people-report

Skill51 starsChanged 3 months agoMITView on GitHub

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

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 0 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    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 19
  2. Very specific:

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

    line 20
  3. Very specific:

    Use the list_people MCP tool to get all people with pagination:

    line 45
  4. Very specific:

    Use list_people with with_hidden=True to surface hidden clusters, and get_person_thumbnail to visually inspect unnamed ones:

    line 108
  5. Very specific:

    Flag unnamed clusters: use get_person_thumbnail to show faces and ask user to name them

    line 176
  6. Very specific:

    Name a cluster: use update_person(person_id, name="...") to name an unnamed cluster directly via MCP

    line 178
  7. Very specific:

    Merge duplicates: use merge_people(person_id="<person-to-keep>", merge_ids=["<dup-1>", "<dup-2>"]) to fold duplicate clusters into the one …

    line 179
  8. Very specific:

    Fix misidentified faces: use reassign_face(face_id, person_id) to correct wrong assignments

    line 180

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

People Report

⚠️ 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 Immich's face recognition data to generate a report on people in the library: who appears most, unnamed face clusters, co-occurrence patterns, and recognition quality.

Prerequisites

  • Immich's face detection and recognition must be enabled (Machine Learning container running)
  • Face detection job should have completed at least once
  • For best results, some people should already be named in Immich

Analysis Workflow

Step 1: Face Recognition Overview

Use the list_people MCP tool to get all people with pagination:

# Get all people (including hidden clusters)
result = list_people(page=1, size=200, with_hidden=true)
# Repeat with page=2, 3, ... until result.hasNextPage is false

# Named: people where name is not empty
named = [p for p in result.people if p.name]
# Unnamed: people where name is empty
unnamed = [p for p in result.people if not p.name]

# Top named people by face count (result includes a faceCount field)
top_named = sorted(named, key=lambda p: p.faceCount, reverse=True)[:20]

# Unnamed clusters worth naming (more than 5 faces)
big_unnamed = [p for p in unnamed if p.faceCount > 5]
big_unnamed.sort(key=lambda p: p.faceCount, reverse=True)

Step 2: Co-Occurrence Analysis

Find people who appear together most often using get_asset_faces:

# For a sample of assets (e.g. from search_metadata), call get_asset_faces
# to find which people appear in the same photo
co_occurrence = {}  # (person_a_id, person_b_id) → count

for asset_id in sample_asset_ids:
    faces = get_asset_faces(asset_id=asset_id)
    person_ids = [f.personId for f in faces if f.personId]
    for i, a in enumerate(person_ids):
        for b in person_ids[i+1:]:
            key = tuple(sorted([a, b]))
            co_occurrence[key] = co_occurrence.get(key, 0) + 1

# Sort and present top 15 pairs
top_pairs = sorted(co_occurrence.items(), key=lambda x: x[1], reverse=True)[:15]

Step 3: Per-Person Profiles

Per-person data comes from list_people and get_person; to get the photos of a person, pass their id to search_metadata(person_ids=["<id>"]). The same filter works on search_smart when the query is visual:

# get_person returns name, birthDate, faceCount, and hidden status
profiles = []
for person in named:
    details = get_person(person_id=person.id)
    profiles.append({
        "name": person.name,
        "face_count": person.faceCount,
        "birth_date": details.birthDate,
        # Deep link for browsing that person's full photo timeline in Immich:
        "immich_url": f"{IMMICH_URL}/people/{person.id}",
    })

For first and last appearance, call get_timeline_buckets(person_id="<id>"): the oldest and newest buckets give the first and last month the person appears, and the counts per month show when they appear most. For per-person browsing (every photo, in order) link the user to the person's page in the Immich web UI (/people/{id}).

Step 4: Recognition Quality

Use list_people with with_hidden=True to surface hidden clusters, and get_person_thumbnail to visually inspect unnamed ones:

# Hidden clusters, often low-confidence or suppressed by Immich
all_people = list_people(page=1, size=500, with_hidden=True)
hidden = [p for p in all_people.people if p.isHidden]

# For each unnamed cluster worth reviewing, fetch a thumbnail to show the user
for cluster in big_unnamed[:10]:
    thumb = get_person_thumbnail(person_id=cluster.id)
    # Present thumbnail so user can decide whether to name or merge
    display(thumb)

# Report recognition quality tiers based on faceCount
large_clusters  = [p for p in unnamed if p.faceCount > 50]   # almost certainly real people
medium_clusters = [p for p in unnamed if 10 < p.faceCount <= 50]
small_clusters  = [p for p in unnamed if p.faceCount <= 10]   # may be noise

Step 5: Generate Report

PEOPLE REPORT
═══════════════════════════════════════

OVERVIEW
  Total face clusters:    287
  Named people:            42
  Unnamed clusters:       245 (85%)
  Total faces detected:  18,432

TOP PEOPLE (by face count)
  1. María          2,341 faces
  2. Juan           1,892 faces
  3. Carlos           634 faces
  4. Ana              412 faces
  5. Pedro            287 faces
  ...
  (browse any person's full timeline via their Immich page: /people/{id})

UNNAMED CLUSTERS WORTH NAMING
  Cluster #45:  189 faces, likely a real person
  Cluster #112:  87 faces
  Cluster #78:   64 faces
  ...12 more clusters with >20 faces

  → Naming these 15 clusters would increase named coverage from 58% to 82%

CO-OCCURRENCE (people appearing together)
  María & Juan:       1,204 photos together
  María & Carlos:       287 photos together
  Juan & Pedro:         156 photos together
  ...

RECOGNITION GAPS
  Photos with faces but no person assigned: 2,341
  Very small faces (<100px): 4,521 (may have lower accuracy)

RECOMMENDATIONS
  1. Name the top 15 unnamed clusters → big coverage improvement
  2. Review 2,341 unassigned faces in Immich UI
  3. Consider merging similar unnamed clusters
  4. 4,521 small faces may produce false matches, review if face groups seem wrong

Actions Available

  • Export people list: CSV with name, face count, birth date (if set), Immich URL
  • Flag unnamed clusters: use get_person_thumbnail to show faces and ask user to name them
  • Co-occurrence graph: HTML visualization showing people connections (optional)
  • Name a cluster: use update_person(person_id, name="...") to name an unnamed cluster directly via MCP
  • Merge duplicates: use merge_people(person_id="<person-to-keep>", merge_ids=["<dup-1>", "<dup-2>"]) to fold duplicate clusters into the one to keep. The first call only previews the names; repeat with confirm=true once the user agrees
  • Fix misidentified faces: use reassign_face(face_id, person_id) to correct wrong assignments

Important Notes

  • This skill can now name people, merge duplicates, and reassign faces using MCP tools. Always confirm with the user before modifying.
  • Co-occurrence analysis can be slow on libraries with many faces (>50K), so sample assets rather than scanning all
  • Privacy consideration: face data is sensitive, so reports should not be shared without consent

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.