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.
mdr add superdesigndev/treg/portrait-clone@git:20260915.e0d336dPins 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
mdr add superdesigndev/treg/portrait-clone@sha256:9d24e9a52637bcf4The 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.
[](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.
Audit of the latest version
- 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
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.