agentleFS
nexaiadvisorsnexaiadvisors/claude-skills/expression-bank/SKILL.md

expression-bank

Skill0 starsChanged 33 days agoMITView on GitHub

Builds a vetted bank of portrait photos of the user making different expressions and poses (skeptical, surprised, worried, excited, pointing, holding a phone...) from a few good photos of them, for thumbnails, flyers, ads and video covers. Generates with GPT Image and/or Gemini, checks every face against the user's own photos with a free local face match, and hands back a labelled bank sheet of only the images that still look like them. Use for "make photos of me looking surprised", "expression bank", "I need pictures of me for a flyer/thumbnail", "my AI photos don't look like me".

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Every image is scored against their own photos.

    line 21
  2. Very specific:

    Spend is capped: Default cap \$3 per run. A run never spends past it: retries stop at the cap.

    line 30
  3. Very specific:

    If it says a key or package is missing, walk the user through setup and stop until they have done it.

    line 39
  4. Distinctive:

    Ask for a folder of 3-12 photos of the person (real photos or AI headshots), then:

    line 44
  5. Distinctive:

    Ask: "Are these photos of you, or of someone who agreed to this?" Only on yes:

    line 65
  6. Very specific:

    If the user has only one key, run that engine alone with --engines gpt or --engines gemini.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Expression Bank

Turn 3-12 good photos of one person into a set of expression portraits that still look like them. Every image is scored against their own photos; a face that drifted into a stranger never reaches the sheet as a keeper. All logic is in scripts/expression_bank.py (run it with python3 -I).

Rules that do not bend:

  • Only the user's own face, or a person who agreed to it. Never build a bank of a celebrity, a client who did not agree, a child, or anyone from a scraped photo. run refuses without --consent; ask the user, do not add the flag for them.
  • No key, no run. The script refuses when no API key is set. Never ask the user to paste a key into chat, and never print, log or commit one.
  • Spend is capped. Default cap $3 per run. A run never spends past it: retries stop at the cap. When the first pass alone is over it, show the estimate and get the user's yes before adding --yes.

Steps

1. Setup

python3 -I scripts/expression_bank.py setup

If it says a key or package is missing, walk the user through setup and stop until they have done it. They put the key in the file themselves. Accept when: it prints SETUP OK.

2. Check the reference photos

Ask for a folder of 3-12 photos of the person (real photos or AI headshots), then:

python3 -I scripts/expression_bank.py check-refs --refs <folder>

It flags every weak photo right away: too small (face under 200 px), blurry, dark or turned away, more than one main face, or a face that does not match the others (a different person). Tell the user which photos were flagged and why, in plain words, and what makes a good one (see setup). Accept when: it prints REFS OK. On STOP, nothing runs until the user swaps in better photos.

3. Pick the shots and show the cost

The default set is 8 shots: skeptical, surprised, worried, frustrated, exhausted, excited (pointing), curious (palms up) and confident (holding a phone). For other needs, write a shots file (see shots) and pass --shots <file>.

python3 -I scripts/expression_bank.py plan --refs <folder> --out <out-folder> [--engines gpt,gemini] [--shots <file>]

Show the user the plan line: shots, engines, estimated cost and worst case with retries. Accept when: the user agreed to the shots and the cost. At or under the cap, their go-ahead to run is enough.

4. Confirm consent, then run

Ask: "Are these photos of you, or of someone who agreed to this?" Only on yes:

python3 -I scripts/expression_bank.py run --refs <folder> --out <out-folder> --consent [--engines ...] [--shots <file>] [--retries 1]

Each shot is generated on every chosen engine; a shot that misses KEEP is retried up to --retries times. Each image is scored locally against the user's photos:

VerdictScoreMeaning
KEEP0.72+looks like them
REVIEW0.55-0.72check by eye before using
REJECTunder 0.55a different-looking person; do not use

Accept when: it prints SHEET <path> and scores.json exists in the out folder.

5. Hand over the bank

Open bank-sheet.jpg yourself first and look at every face: the score cannot see a sixth finger or a warped hand. Then send the sheet to the user with one line per shot (verdict, score). The best image per shot is in <out-folder>/bank/<shot>.png. Say plainly which shots are KEEP, which need their eye (REVIEW), and offer to re-roll REJECT or REVIEW shots (a new spend, same cap). Accept when: the user has the sheet and the bank folder path.

Notes

  • GPT Image usually holds identity better than Gemini (2026-11 run: GPT 6 of 8 KEEP, Gemini 3 of 8). If the user has only one key, run that engine alone with --engines gpt or --engines gemini.
  • The face models (OpenCV YuNet and SFace, about 40 MB) download once to ~/.config/expression-bank/models and are checked against pinned SHA-256 hashes. Faces never leave the computer for scoring; they do go to OpenAI or Google for generation, under the user's own account.
  • Generated photos are AI images. If the user publishes them where rules apply (YouTube altered content, ad platforms), remind them to label them as AI-generated.

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.