portrait-clone
यह क्या करती है
यह स्किल संदर्भ इमेज को इमेज मॉडल के लिए एक लॉक्ड JSON प्रॉम्प्ट में बदलती है, ताकि हर बनी इमेज में वही व्यक्ति लगभग एक जैसा दिखे। यह उन क्रिएटर्स और डिज़ाइनरों के लिए है जिन्हें इमेजों में एक जैसा किरदार चाहिए।
कब इस्तेमाल करें
- ✓जब आप किसी व्यक्ति का रूप कई बनाई गई इमेजों में दोहराना चाहते हों।
- ✓जब आपको एक श्रृंखला की इमेजों या वीडियो के लिए एक जैसा किरदार चाहिए।
- ✓जब आप बनी इमेज की संदर्भ से तुलना करके प्रॉम्प्ट में सुधार करना चाहते हों।
Skill का लिंक
https://github.com/superdesigndev/treg/blob/main/.agents/skills/portrait-clone/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे किरदार की इन तीन तस्वीरों से एक लॉक्ड प्रॉम्प्ट बना सकते हैं, जिससे मिलती-जुलती इमेजें बनें?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट संदर्भ इमेज का अध्ययन करता है और एक विस्तृत JSON प्रॉम्प्ट लिखता है, जिसमें हर दिखने वाली विशेषता एक ही मान पर तय होती है। वह ऐसी विशेषताएँ सूचीबद्ध करता है जो नहीं दिखनी चाहिए, de-slop चरण लगाता है, और केवल JSON ब्लॉक लौटाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
क्या आउटपुट में JSON के अलावा कुछ होता है?
नहीं। स्किल कहती है कि ठीक एक JSON कोड ब्लॉक लौटाएँ और कुछ नहीं।
यह क्यों बताना चाहिए कि क्या नहीं है?
स्किल कहती है कि इमेज मॉडल अतिरिक्त चीज़ें जोड़ देते हैं, जब तक आप उन्हें साफ़ तौर पर none न लिखें।
क्या स्कीमा में और फ़ील्ड जोड़ सकते हैं?
हाँ। स्कीमा न्यूनतम है, और ज़्यादा लॉक्ड फ़ील्ड बेहतर हैं।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 7.0k
- रैंकिंग में स्थान
- #13700
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
code-quality
7.0kयह आपके एजेंट को साफ़ कोड के नियम सिखाती है: टूल से नियम लागू करना, टिप्पणियाँ कम रखना, टेस्ट को विफल होने योग्य बनाना, और दस्तावेज़ छोटे रखना।
google-ads
7.0kयह आपके एजेंट को Google Ads रिपोर्ट और बदलाव सुरक्षित रूप से करने में मदद करती है, API संस्करण और बजट की आम गलतियों से बचते हुए जो पैसा बर्बाद करती हैं।
google-analytics
7.0kयह आपके एजेंट को Google Analytics 4 से सही ट्रैफ़िक, कन्वर्ज़न और राजस्व के आँकड़े देने में मदद करती है, अधूरे दिनों और झूठे शून्य से बचते हुए।
google-search-console
7.0kयह आपके एजेंट को Search Console से ऑर्गेनिक सर्च क्लिक, इंप्रेशन और रैंकिंग की रिपोर्ट करने में मदद करती है, हाल के अधूरे दिनों को गिरावट न मानते हुए।
मिलती-जुलती skills
gifgrep
394kयह आपके एजेंट को GIF लाइब्रेरी में खोजने, नतीजों का पूर्वावलोकन करने, GIF डाउनलोड करने, और उससे एक फ़्रेम या फ़्रेम्स की शीट निकालने देती है।
meme-maker
394kयह आपके एजेंट को मीम टेम्पलेट चुनने, अपने कैप्शन जोड़ने और मीम को SVG या PNG इमेज के रूप में बनाने देती है।
ios-icon-gen
280kआपके एजेंट को iOS ऐप्स के लिए icons बनाने देता है। यह Apple symbols या दूसरे स्रोतों के आइकन इस्तेमाल करके सही files बनाता है।