portrait-clone SKILL.md skillB

portrait-clone from superdesigndev/treg is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add superdesigndev/treg/portrait-clone@git:20260915.e0d336d

Pins git:20260915.e0d336d in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 16 of 17 checks passed
Kind
SKILL.md skill
Repository
superdesigndev/treg
Path
.agents/skills/portrait-clone/SKILL.md
Versions recorded
1
Latest version
git:20260915.e0d336d, committed Sep 15, 2026
Size
22,017 bytes
Repository stars
7,162
License
a license file GitHub does not identify

Turn any n reference images (with at least one person) into one exhaustively locked, always de-slopped, JSON-only AIGC image prompt whose every variable is pinned so each generation is nearly identical. Use for replicating a person's look, extracting portrait features into a prompt, locking a character, or revising such a JSON after comparing a generated image to the reference.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Portrait Clone

Convert n reference images (at least one contains a person) into ONE AIGC image prompt in JSON.

**The single goal: pin down every variable an image model could otherwise choose, so the same prompt yields a nearly identical, non-AI-looking image on every run.** Any detail left unspecified is a detail the model will randomize. Stability is measured by how little freedom the model has left.

## Non-negotiables

1. **Lock everything.** Every visible or inferable attribute gets exactly one concrete value. Never write "or", ranges ("20-30"), "e.g.", "optional", "[slot]", "various", "some", "natural-looking" without specifics, or any alternative.
2. **Lock absence too.** Anything a model might add but the reference does not contain is stated explicitly as `"none"` (glasses, hat, earrings, bag, second person, text, logos, props, sweat, tattoos elsewhere) and also listed in `negative_prompt`.
3. **Fields are open-ended.** The Schema below is a minimum floor, not a limit. Add any key, nested object or array needed to pin a variable. Prefer splitting one vague field into several precise sub-fields. More locked fields is always better than fewer.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add superdesigndev/treg/portrait-clone@sha256:9d24e9a52637bcf4

The line at the top of this page pins the label git:20260915.e0d336d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_l44wvdyoiflnlx7e.svg)](https://markdownregistry.com/a/art_l44wvdyoiflnlx7e)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Sep 15, 2026.

versioncommittedcommitsizeaudit
git:20260915.e0d336d latest2026-09-15 e0d336d 22,017 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No curl or wget piped into a shell (matched: curl -fsSL https://treg.to/install.sh | sh)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (22017 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

superdesigndev/treg · 7,162 stars · license a license file GitHub does not identify · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_l44wvdyoiflnlx7e
GET https://markdownregistry.com/api/v1/resolve?ref=superdesigndev/treg/portrait-clone
GET https://markdownregistry.com/api/v1/blob/9d24e9a52637bcf4a1b5ff3b0c49abd01d1aa749c1607f331ef91714ae650be5

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from superdesigndev/treg

add-oauth-provider SKILL.md skill
superdesigndev/treg · .agents/skills/add-oauth-provider/SKILL.md · Add a provider to treg's OAuth registry (the ones treg holds its own approved app for). Use when asked to "add…
git:20261102.c3b5407 · audit A · 7,162 stars
code-quality SKILL.md skill
superdesigndev/treg · .agents/skills/code-quality/SKILL.md · Use when writing or reviewing code, comments, tests, or docs.
git:20261015.d4c34b8 · audit A · 7,162 stars
dev-local SKILL.md skill
superdesigndev/treg · .agents/skills/dev-local/SKILL.md · One-command local dev stack for tools-registry. Use when asked to "start the dev server", "run treg locally", "test…
git:20260928.ce916f2 · audit A · 7,162 stars
google-ads SKILL.md skill
superdesigndev/treg · .agents/skills/google-ads/SKILL.md · Traps when running Google Ads through treg — the API requirements and cleanup semantics that cost round-trips or money…
git:20260817.6541167 · audit A · 7,162 stars
google-analytics SKILL.md skill
superdesigndev/treg · .agents/skills/google-analytics/SKILL.md · Traps to avoid when querying Google Analytics 4 through treg — cases where the GA4 Data API returns a confident wrong…
git:20260723.9d1ab49 · audit A · 7,162 stars
google-search-console SKILL.md skill
superdesigndev/treg · .agents/skills/google-search-console/SKILL.md · Traps to avoid when querying Google Search Console through treg — cases where the API returns a confident wrong answer…
git:20260723.9d1ab49 · audit A · 7,162 stars
tools-registry-context SKILL.md skill
superdesigndev/treg · .agents/skills/tools-registry-context/SKILL.md · tools-registry context + doc upkeep. Use to warm up a fresh session (orient on the architecture + recent commits) or…
git:20260928.ce916f2 · audit A · 7,162 stars
ugc-talking-head-video SKILL.md skill
superdesigndev/treg · .agents/skills/ugc-talking-head-video/SKILL.md · Turn a locked character image (from portrait-clone) into a UGC-style 9:16 talking-head video: pick a voice-reference…
git:20260915.e0d336d · audit B · 7,162 stars
vendor-listing SKILL.md skill
superdesigndev/treg · .agents/skills/vendor-listing/SKILL.md · Onboard a vendor who wants their API listed in the treg catalog. Use whenever someone asks "how do we get listed on…
git:20261102.c3b5407 · audit A · 7,162 stars
write-provider-skill SKILL.md skill
superdesigndev/treg · .agents/skills/write-provider-skill/SKILL.md · Build a treg provider skill — the endpoint map + mistake map that lets an agent do real work on a platform API through…
git:20260928.ce916f2 · audit A · 7,162 stars
AGENTS.md AGENTS.md file
superdesigndev/treg · AGENTS.md
git:20261105.e8d8edd · audit A · 7,162 stars
CLAUDE.md CLAUDE.md file
superdesigndev/treg · CLAUDE.md
git:20260905.8031c83 · audit A · 7,162 stars

Every file in superdesigndev/treg

Browse by kind, by grade B, or by owner.