Agent skill

Face Matching

by swyxio in swyxio/skills

Diagnose, improve, or operate person-centered face matching across photo libraries, video, social profiles, directories, events, and other media when reference discovery, identity verification…

MITAuto-check passedMedia & Creative

Install Face Matching

skills CLI
$ npx skills add swyxio/skills --skill face-matching -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install swyxio/skills face-matching --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/swyxio/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/face-matching .claude/skills/face-matching && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
face-matching
GitHub stars
176
Token cost
~2.2k tokens
SKILL.md length
1,020 words
Files
4 (incl. references)
Skills in repo
89
Repo updated
First seen
Licence
MIT

At a glance

Diagnose, improve, or operate person-centered face matching across photo libraries, video, social profiles, directories, events, and other media when reference discovery, identity verification…

  • Works in 5 steps: Identity coverage: Do we even know that… → Person identity: Does a profile,… → Reference utility: Do we have one or… → …
  • Face recognition and face-reference sourcing
  • SKILL.md covers Distinguish the five problems, Fast path for ordinary cases, Last-mile escalation and Source and privacy boundaries, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Face Matching is an agent skill from swyxio/skills. Diagnose, improve, or operate person-centered face matching across photo libraries, video, social profiles, directories, events, and other media when reference discovery, identity verification, detection failures, unknown people, or safe face-to-person assignment are involved. Use for face recognition and face-reference sourcing; not for generic image editing, image generation, or galleries without an identity-matching problem.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/implementation-and-operations.md`, `references/resources-and-source-strategies.md` and `references/worldsfair-2026-journey.md`).

It sits in Media & Creative, covering Image editing and Image generation. The repository describes itself as: Agent skills for Claude Code and other AI agents. The licence is MIT.

When your agent uses it

  • Face recognition and face-reference sourcing
  • Not for generic image editing
  • Image generation
  • Galleries without an identity-matching problem

Example prompts

  • “/face-matching”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Identity coverage: Do we even know that this person belongs in the searchable population? The source might be a customer directory…
  2. Person identity: Does a profile, document, media item, or candidate name actually refer to the right individual? Similar names, employers…
  3. Reference utility: Do we have one or more trustworthy images of that person, and does any image contain a detectable usable face?
  4. Biometric comparison: Does an unknown or query face resemble that person strongly enough while remaining clearly separated from competing…
  5. Contextual assignment: Do independent time, place, nearby frames, co-occurring known people, captions, source provenance, or prior human…

What it can do on your machine

Read from SKILL.md and the folder at commit 038ef34. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Face Matching loads about 2.2k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 111 tokens; SKILL.md has 1,020 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~111
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from swyxio/skills at commit 038ef34, republished under its MIT licence (© swyxio). 1,020 words, ~2,202 tokens.

Download SKILL.mdSave it as .claude/skills/face-matching/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
face-matching
description
Diagnose, improve, or operate person-centered face matching across photo libraries, video, social profiles, directories, events, and other media when reference discovery, identity verification, detection failures, unknown people, or safe face-to-person assignment are involved. Use for face recognition and face-reference sourcing; not for generic image editing, image generation, or galleries without an identity-matching problem.

Face Matching

Match real faces to the right people while preserving uncertainty, consent, source boundaries, and existing correct assignments. Keep the ordinary path simple for people who already have a good reference; spend additional retrieval and inference only on unresolved cases.

Read supporting material only when it helps the task:

  • references/resources-and-source-strategies.md: inventory of usable person records, LinkedIn/X/GitHub, employer/personal pages, public search, existing photo collections, video, transcripts, timestamps, browser access, and relevant installed skills/tools.
  • references/worldsfair-2026-journey.md: detailed real-world case study, concrete incorrect matches, identity corrections, production counts, failed hypotheses, and eight benchmarked padding recoveries.
  • references/implementation-and-operations.md: existing SCRFD/SFace implementation, image-quality gates, operational commands, repository paths, regression checks, and release verification.

Distinguish the five problems

  1. Identity coverage: Do we even know that this person belongs in the searchable population? The source might be a customer directory, employee roster, contact list, event program, cast list, photo metadata, video title, caption, or prior human review.
  2. Person identity: Does a profile, document, media item, or candidate name actually refer to the right individual? Similar names, employers, public aliases, organizations, and historical affiliations are evidence, not identity by themselves.
  3. Reference utility: Do we have one or more trustworthy images of that person, and does any image contain a detectable usable face?
  4. Biometric comparison: Does an unknown or query face resemble that person strongly enough while remaining clearly separated from competing identities?
  5. Contextual assignment: Do independent time, place, nearby frames, co-occurring known people, captions, source provenance, or prior human confirmation justify assigning or expanding a match?

A verified profile can contain an unusable avatar. A clear-looking screenshot can still fail the actual detector. A face cluster proves visual recurrence, not a person's name. A match score is not a probability.

Fast path for ordinary cases

  1. Use the requested collection's authoritative person ID and existing verified reference image. Keep customer, organization, event, collection, and authorization boundaries explicit.
  2. Reject cartoons, logos, obvious placeholders, ambiguous group portraits, unknown provenance, and unsupported images.
  3. Detect and validate the face: appropriate image size, exactly one reference face, detector confidence, usable landmarks, reasonable face area, and finite embedding.
  4. Compare normalized descriptors against verified enrolled identities. Require both minimum similarity and sufficient separation from the runner-up. Treat near ties as ambiguous.
  5. Preserve existing human-reviewed identities, exact-only exceptions, denied assignments, and unknown results.
  6. Match additional photos or video frames only when the same identity is independently corroborated; never let an inferred assignment become its own proof.

Do not add authenticated browsing, web search, video downloading, expensive alternate models, or multi-source investigation to every successful ordinary match.

Last-mile escalation

For people who remain unresolved, use the smallest next step that might materially improve the result:

  1. Reuse available information. Inspect existing directories, original record fields, previous source links, captions, filenames, human-reviewed examples, and collection metadata before launching fresh searches.
  2. Preserve candidate evidence. Keep stable subject ID, authoritative name, corroborated aliases, company/project/event where relevant, source URLs, candidate images, per-candidate outcomes, and explicit uncertainty. Do not erase previously found links between runs.
  3. Search identity-bearing sources. Prioritize verified official profiles and existing organizer/company links, then appropriate LinkedIn, X/Twitter, GitHub, employer team/author pages, personal websites, interviews, recordings, captions, or reviewed photos. Follow access boundaries and use the user's existing signed-in browser only when justified.
  4. Corroborate aliases. Resolve Alex/Alexander, Jeff/Jeffrey, Jess/Jessica, Leo/Leonard, spelling variants, or changed surnames only when another independent signal supports the same person.
  5. Evaluate multiple verified images. Retain many identity-vetted candidates, but promote exactly one passing reference for a single-reference workflow. Rank identity strength first, then actual real-detector utility. A source-priority break before detection can silently discard every useful alternative.
  6. Repair framing conservatively. For a tightly cropped trusted portrait, retry with an approximately 20% neutral border. For a confidently detected undersized face, retry a bounded face-centered crop. A padded detection may need that same crop afterward. Reapply all original quality, one-face, confidence, landmarks, and embedding gates.
  7. Use contextual triangulation. Compare timestamps, source album, location, session or scene, neighboring camera frames, transcript/video timing, recognized co-occurring people, and conservative repeated-person clusters. Do not infer names or identity from race, nationality, body shape, skin tone, glasses, age, or similar appearance alone.
  8. Escalate uncertain cases honestly. Request a human decision, more reliable image, or separately authorized benchmark when existing evidence remains ambiguous. Keep false matches out of the index.
Show full SKILL.md (298 more words)Show less

The documented event case study demonstrated that all fifteen tested alternative portraits still failed the detector, while a simple border plus existing face-centered crop recovered eight rejected trusted portraits without weakening the existing 0.80 acceptance threshold. These are measured historical examples, not a promise that any particular production system is already fixed.

Source and privacy boundaries

  • Unknown is a valid result. Never silently force a closed-set match to the nearest enrolled face.
  • Treat public profiles, authenticated pages, private albums, customer records, PII, biometric embeddings, provider credentials, and generated output according to the most restrictive source involved.
  • Never inspect or persist browser cookies, session stores, access tokens, signed media URLs, unrestricted private payloads, or unrelated people merely because an authenticated page is available.
  • Preserve only task-appropriate canonical identity URLs, authorized image bytes, safe hashes, minimal provenance, explicit human decisions, and necessary scoped IDs.
  • A person, organization, employer, brand, and project are distinct entities. Record relationships; merge only explicitly verified equivalent identities.
  • In multi-person images, preserve (image_id, person_id) assignments rather than assuming one image has one owner.
  • Never use reviewed exact-only photos, poisoned galleries, quarantined identities, rejected clusters, uncertain inferred labels, or disallowed propagation as reusable identity seeds.
  • Respect the user's actual authorization: read access does not imply permission to republish media, scrape at scale, change production data, or deploy.

Verify observable outcomes

Measure coverage, false-positive risk, unknown count, newly recovered face/person assignments, and every lost historical assignment separately. Record why candidates failed: link_known_not_processed, identity_unverified, reference_missing, face_not_detected, low_confidence, multiple_faces, ambiguous_match, or human_review_required.

Run the actual detector on real representative image bytes when changing preprocessing; mocked detections and source-ranking tests do not prove real-world detection. Preserve user-confirmed regression cases, rerun appropriate tests, and verify actual user-visible behavior when that is within scope. Distinguish proposed, benchmarked, implemented, merged, deployed, and live-verified outcomes.

© swyxio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in face-matching of swyxio/skills.

  • SKILL.md
  • references/implementation-and-operations.md
  • references/resources-and-source-strategies.md
  • references/worldsfair-2026-journey.md

Open the folder on GitHubat commit 038ef34

Compare with similar skills

Face Matching next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Face Matching compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Face Matching this skillswyxio/skills176—~2.2kAutomated safety check: PassMIT
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
Generate Imageynulihao/AgentSkillOS61810 repos~1.7kAutomated safety check: NotesNone
GPT Image Generation CLIwuyoscar/GPT-Image2-Skill5.7k—~2.5kAutomated safety check: NotesMIT
BlockRun Image GenerationBlockRunAI/ClawRouter6.6k—~2.1kAutomated safety check: PassMIT
Native Transparent ImagegenZSeven-W/craft-skills2251 repos~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • Generate Image

    ynulihao/AgentSkillOS

    Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.

    618 GitHub starsUsed in 10 repos~1.7k tokens
    Media & CreativeAuto-check: notes
  • GPT Image Generation CLI

    wuyoscar/GPT-Image2-Skill

    Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.

    5.7k GitHub stars~2.5k tokensUpdated 10 days ago
    Media & CreativeAuto-check: notes
  • BlockRun Image Generation

    BlockRunAI/ClawRouter

    Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.

    6.6k GitHub stars~2.1k tokensUpdated 4 days ago
    Media & CreativeAuto-check passed
  • Native Transparent Imagegen

    ZSeven-W/craft-skills

    Generate new raster assets that must contain native pixel transparency, then verify the untouched PNG or WebP before delivery.

    225 GitHub starsUsed in 1 repo~1.1k tokens
    Media & CreativeAuto-check passed
  • Antigravity Gemini Image

    uluckyXH/OpenMOSS

    Generate or edit images using the Antigravity-hosted Gemini image model via the local gateway.

    1.3k GitHub stars~730 tokensUpdated 3 mo ago
    Media & CreativeAuto-check: notes

More from swyxio/skills

All 89 skills in this repo
  • Programmatic Agents

    swyxio/skills

    Run a selected coding-agent CLI programmatically, with latency, error, usage, cost, and trace logging.

    176 GitHub stars~2.2k tokensUpdated 5 days ago
    Auto-check passed
  • Design, implement, audit, or refresh protected username and handle namespaces for public products.

    176 GitHub stars~1.1k tokensUpdated 5 days ago
    Auto-check passed
  • New Mac Setup

    swyxio/skills

    Fully automated new Mac setup for fullstack web developers and AI engineers.

    176 GitHub stars~4.3k tokensUpdated 5 days ago
    Auto-check passed
  • Youtube API

    swyxio/skills

    Manage YouTube videos programmatically via the YouTube Data API v3 — upload video files, upload custom thumbnails, update video metadata (titles, descriptions, tags), and query video/channel info…

    176 GitHub stars~2.2k tokensUpdated 5 days ago
    Auto-check passed
  • Batch YouTube Studio upload workflow for videos sourced from Airtable, Google Drive, Loom, YouTube, or local files.

    176 GitHub stars~1.5k tokensUpdated 5 days ago
    Auto-check: warnings
  • Reconstruct and visually analyze paired agent, game, or policy trajectories to determine whether changed actions produced their intended effects.

    176 GitHub stars~1.8k tokensUpdated 5 days ago
    Auto-check passed

Questions about Face Matching

What does Face Matching do?

Diagnose, improve, or operate person-centered face matching across photo libraries, video, social profiles, directories, events, and other media when reference discovery, identity verification…. Face Matching is an agent skill from swyxio/skills. Diagnose, improve, or operate person-centered face matching across photo libraries, video, social profiles, directories, events, and other media when reference discovery, identity verification, detection failures, unknown people, or safe face-to-person assignment are involved.

When should I use Face Matching?

Face Matching fits situations like: face recognition and face-reference sourcing; not for generic image editing; image generation; galleries without an identity-matching problem.

How do I install Face Matching in Claude Code?

Run `npx skills add swyxio/skills --skill face-matching -a claude-code`. Or copy the skill folder (face-matching in swyxio/skills) into .claude/skills/face-matching in your project. Claude Code loads it when a task matches its description.

How do I install Face Matching in Codex?

Run `npx skills add swyxio/skills --skill face-matching -a codex`. Or copy the skill folder (face-matching in swyxio/skills) into .agents/skills/face-matching in your project. Codex loads it when a task matches its description.

Can I use Face Matching in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add swyxio/skills --skill face-matching -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/face-matching, .gemini/skills/face-matching, .github/skills/face-matching and .opencode/skills/face-matching in your project.

What does Face Matching need to run?

SKILL.md names no scripts, command-line tools or credentials: Face Matching is instructions for the agent only.

Does Face Matching access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Face Matching safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Face Matching use?

Face Matching is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Face Matching use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Face Matching?

Skills that share tags, products or a category with Face Matching: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), Generate Image (ynulihao/AgentSkillOS, 618 stars), GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars) and BlockRun Image Generation (BlockRunAI/ClawRouter, 6.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Face Matching?

swyxio (a GitHub user) maintains it in swyxio/skills, which has 176 GitHub stars. The repository holds 89 skills in this directory. The repository was last updated on October 5, 2026.

Source: swyxio/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.