portrait-clone
Fungsinya
Skill ini mengubah gambar referensi menjadi prompt JSON terkunci untuk model gambar, sehingga orang yang sama tampak hampir identik di setiap gambar yang dibuat. Skill ini ditujukan untuk kreator dan desainer yang memerlukan karakter yang konsisten di banyak gambar.
Kapan dipakai
- ✓Saat Anda ingin mereplikasi tampilan seseorang di beberapa gambar yang dibuat.
- ✓Saat Anda memerlukan karakter yang konsisten untuk serangkaian gambar atau video.
- ✓Saat Anda ingin merevisi prompt setelah membandingkan gambar yang dibuat dengan referensi.
Link skill
https://github.com/superdesigndev/treg/blob/main/.agents/skills/portrait-clone/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Bisakah Anda mengubah ketiga foto karakter saya menjadi satu prompt terkunci yang bisa saya pakai untuk membuat gambar yang serupa?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mempelajari gambar referensi dan menulis prompt JSON rinci yang mengunci setiap atribut yang terlihat ke satu nilai. Agent mencantumkan fitur yang tidak boleh muncul, menerapkan langkah pembersihan, dan hanya mengembalikan blok JSON.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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
- 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.
- 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 innegative_prompt. - 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.
- Always de-slopped. Every output, version and revision applies the full De-slop step, regardless of the reference's style, medium or polish.
- JSON only. Reply with exactly one ```json code block and nothing else. Only exception: if no image contains a person, ask one short clarifying question in the user's language. Generating the image is a separate step that runs only after the user approves the JSON (§ Generate through treg).
- Top-level constraints.
critical_constraintsandnegative_promptare top-level keys, right afterprompt_id/prompt_language. - Complete output. Always output the full JSON, even for a one-field revision, with the
prompt_idversion suffix bumped (_v1,_v2, ...).
Conventions
- All JSON values in English.
- Quantify whenever possible: degrees for rotation and tilt, cm for sizes and distances, mm for small details (nail length, liner flick, chain thickness), percent for framing, ratios for proportions, counts for countable things (rings, visible teeth, buttons, strands over each shoulder), hex for every color.
- Left/right from the subject's own perspective ("her left wrist"); frame positions as "frame left" / "frame right".
- Positions of small items are given by anatomical landmark ("sitting 2 cm below the collarbones", "over the right front hip pocket").
Workflow
1. Inventory (internal, never output)
For each image note: shot type (face close-up / half body / full body / detail / scene / style reference), aspect ratio and pixel size, capture medium (video frame grab, phone photo, DSLR, film scan, render), and which traits it shows reliably.
2. Choose the anchor image
Pose, framing, lighting, camera, aspect ratio and resolution come from ONE anchor: the image the user names, otherwise the clearest medium shot. All other images only refine identity traits (face, hair, body, outfit construction, jewelry, marks). When images conflict, trust the sharpest, most frontal, least compressed evidence. Motion blur, compression and lens distortion are not traits of the person. Traits not visible in any image are still locked: choose the single most plausible value consistent with the rest and state it definitively.
3. Variable audit — pin every one
Walk this list and give each item a concrete value (or "none" / "not visible"). Add any further variable the specific images introduce.
- Subject: count of people, gender presentation, broad regional appearance (only if useful for rendering), apparent age as one number, height in cm, build (shoulder width, arm thickness, bust, waist-hip difference, hips), posture, weight distribution.
- Face geometry: shape, length/width ratio, forehead height, cheekbone height and width, midface flatness, jaw angle, chin shape, philtrum length, eye spacing, face asymmetry details.
- Eyes (highest drift risk — geometric): crease type and height, epicanthic fold, shape, tilt, size relative to face, height/width ratio, lid coverage, iris visibility fraction, open/blink state, smile deformation, iris hex, catchlight, liner length in mm, shadow, lash length and curl, under-eye.
- Brows: shape, height above eye, thickness, hex, hair density, stray hairs.
- Nose, mouth: nose bridge height and tip shape, nostril width; lip size, upper/lower ratio, colo
Pertanyaan umum
Apakah keluarannya berisi sesuatu selain JSON?
Tidak. Skill ini menyebutkan untuk membalas dengan tepat satu blok kode JSON dan tidak ada yang lain.
Mengapa perlu menyatakan apa yang tidak ada?
Skill ini menyebutkan bahwa model gambar menambahkan tambahan kecuali Anda secara eksplisit mencantumkannya sebagai none.
Bisakah saya menambahkan lebih banyak field ke skema?
Ya. Skema ini adalah minimum, dan semakin banyak field yang dikunci semakin baik.
Detail
Deskripsi asli dari pembuat
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.
repo: superdesigndev/treg
Popularitas
- Bintang GitHub
- 7.0k
- Peringkat
- #13700
- Lisensi
- —
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
code-quality
7.0kMengajari agent Anda standar kode yang jelas: menegakkan aturan dengan alat, menjaga komentar tetap jarang, membuat tes yang bisa gagal, dan menjaga dokumentasi tetap singkat.
google-ads
7.0kMembantu agent Anda menjalankan laporan dan perubahan Google Ads dengan aman, menghindari kesalahan versi API dan anggaran yang membuang uang.
google-analytics
7.0kMembantu agent Anda mendapatkan angka lalu lintas, konversi, dan pendapatan yang akurat dari Google Analytics 4, dengan menghindari hari yang belum lengkap dan nol palsu.
google-search-console
7.0kMembantu agent Anda melaporkan klik, impresi, dan peringkat pencarian organik dari Search Console tanpa salah mengira hari terbaru yang belum lengkap sebagai penurunan.
Skill serupa
gifgrep
394kMemungkinkan agent Anda mencari GIF, melihat pratinjau hasil, mengunduh GIF, dan mengambil satu bingkai diam atau lembar kontak darinya.
meme-maker
394kMemungkinkan agent Anda memilih templat meme, menambahkan teks sendiri, dan membuat meme sebagai gambar SVG atau PNG.
ios-icon-gen
280kMemungkinkan agent Anda membuat ikon untuk aplikasi iOS. Menggunakan simbol Apple atau ikon dari sumber lain untuk membuat file yang tepat.