Skip to content
Back to skills

Likeness Preservation

ASecurity

Preserve the creator's exact facial identity when generating or editing images. Triggered whenever an image is meant to include a real person.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 7, 2026
ai-agentspythongoexpress

Security analysis

A100/100

Scanned October 7, 2026

npx -y skills add lorena-bordonaba-pau/youtube-agent --skill likeness-preservation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Likeness Preservation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Likeness Preservation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lorena-bordonaba-pau-likeness-preservation/badge)](https://www.skillsdirectory.com/skills/lorena-bordonaba-pau-likeness-preservation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: likeness-preservation
description: Preserve the creator's exact facial identity when generating or editing images. Triggered whenever an image is meant to include a real person.
---

# Facial identity preservation

## WHEN

Any image that should include the creator, or any real person. Load it
**before** generating, not after seeing the face come out wrong: a lost
identity is not recovered by iterating the prompt.

**If a face was not explicitly asked for, do not put one in.** When in doubt:
objects, text, graphics or abstract. An invented person in the thumbnail of a
channel with a recognisable face breaks the brand.

## EXECUTION ORDER

1. **Get a sharp facial reference.** In order of quality:
   - A photo the creator provides in this conversation.
   - An image generated earlier in this conversation where the face came out
     well.
   - One of their own thumbnails with the face clear and large:
     ```
     python3 tools/yt_recent_videos.py --limit 15 --stats
     python3 tools/yt_thumbnails.py --video ID
     ```
     And **open it** to confirm the face is visible. A blurred, profile or
     obscured face guarantees a bad result.

2. **Do not proceed without a confirmed reference.** If there is none, say so
   and ask for a photo. Generating "something similar" is worse than not
   generating.

3. **Label it with the `likeness` role**
   ```
   python3 tools/generate_image.py --prompt "..." --type thumbnail \
     --ref path_to_the_face.jpg:likeness
   ```
   The role does two things: it places the reference **first** and it activates
   the exact-identity clause in the prompt. Without the role, neither happens.

4. **When refining**, the image to edit goes in `--image` and the face in
   `--ref face.jpg:likeness`. Never the other way round.

5. **Verify by opening the result.** The criterion:

   | Acceptable | Not acceptable |
   |---|---|
   | Different pose, different angle | Different facial features |
   | Different expression | Someone who "looks like them" |
   | Different light, different clothes | A clearly generated face |

   If it is not recognisably the same person, redo it with a better reference.
   Do not deliver it saying "it came out close".

## WHAT THE TOOL ALREADY DOES

When `generate_image.py` detects a reference with the `likeness` role, it
prepends the exact-identity clause and the prohibition on cropping at the neck.
There is no need to repeat it in `--prompt`; verify it with `--dry-run`.

## SOURCES

`source: generated`. A well-preserved face is still an artefact, not a
photograph: if it is used publicly, say so.

## OUTPUT

1. The generated image, after opening it and checking the identity against the
   table above.
2. Which reference was used as `likeness`.
3. If the face is not recognisably the creator: say so plainly and ask for a
   better reference instead of delivering it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.