Professional Portrait — 职业形象照精修
Turn one source photo into a polished, believable professional portrait. The
face should still look unmistakably like the same person; "more professional"
must not become "a different, AI-perfect person."
When to Use
- A casual photo needs to become a professional headshot or profile image.
- The user wants cleaner skin, brighter facial exposure, or a more polished
overall look without changing identity.
- A hat, stray hair, or distracting background should be repaired.
- The user is iterating with feedback such as "变化不明显", "更干净帅气一点",
or "只提亮面部".
- The user wants a before/after or progressive comparison after the edits.
Core Principle
Identity fidelity outranks beautification. Lock the following unless the user
explicitly requests a change:
- Face geometry, eyes, nose, lips, jaw, ears, and apparent age.
- Skin tone family and recognizable facial details.
- Expression, gaze, body proportions, pose, and camera perspective.
- Clothing, accessories, framing, and background.
Remove only temporary distractions by default. Preserve believable skin
texture, asymmetry, and age-appropriate detail.
Workflow (MANDATORY)
Step 1: Inspect the edit target
Identify the user's source photo as the edit target, not merely a style
reference.
- If the photo is a local file, view it with the runtime's image-viewing tool
before editing.
- Check face visibility, lighting, sharpness, crop, background, clothing,
accessories, hair boundaries, and compression artifacts.
- Never publish, upload as a public example, or add the user's portrait to a
repository unless the user separately asks for that.
Step 2: Infer the smallest sufficient brief
Do not ask the user to choose from a long style menu when the request already
has a clear outcome. Use these defaults:
| User intent |
Default treatment |
| "磨皮 / 干净一点" |
Light skin cleanup with visible pores |
| "提亮" |
Lift face exposure and eye clarity; preserve skin tone |
| "职业照 / 形象照" |
Natural retouch + balanced light + polished crop/background |
| "去帽子" |
Reconstruct only the hidden hair/head region |
| "帅气 / 精神" |
Improve grooming, contrast, posture impression, and catchlights without reshaping the face |
Ask one concise question only when the answer materially changes the result,
such as whether to replace the background or what hairstyle to reconstruct.
Use the user's prior messages and visible photo to infer everything else.
Step 3: Plan the passes
Use the fewest generative edits possible because every extra pass can drift
identity.
- Base pass — restrained retouch and lighting cleanup.
- Structural pass — only when requested: remove hat, rebuild hair, replace
background, or adjust wardrobe.
- Correction pass — one targeted fix after inspection, not another broad
makeover.
When multiple changes are requested together and the edit tool handles them
reliably, combine them into one identity-locked pass. Otherwise isolate the
structural change.
Step 4: Build the edit prompt
Classify the task as identity-preserve. Label the source image as:
Image 1: edit target and identity reference.
Every prompt must include:
- Intended use: professional profile photo or headshot.
- Exact requested changes.
- Identity and composition invariants.
- Realistic skin and hair requirements.
- A short avoid list.
Read references/prompts.md and use the closest recipe. Keep the prompt
specific to the current request; do not silently add wardrobe, background,
body, or facial changes.
Step 5: Edit with the native image tool
- Prefer the runtime's built-in generative image-editing tool.
- Include the inspected source photo as the edit target.
- Preserve source resolution and aspect ratio unless the user requests a crop.
- Save non-destructively. Default filename:
<source-stem>-professional-portrait-v1.png.
- If the user names a destination, save the selected final there.
- Do not substitute a text prompt, SVG mockup, or CSS filter for the requested
raster portrait.
Step 6: Inspect at full image and face crop
Read references/quality-gate.md. Check at least:
- Identity match.
- Natural skin texture and tone.
- Eyes, teeth, ears, jaw, and hairline integrity.
- Hat-removal seams or background edge artifacts.
- Coherent lighting, shadows, and sharpness.
- Professional framing without unrequested changes.
If a check fails, make one localized correction and repeat the gate.
Step 7: Handle iterative feedback precisely
Translate short feedback into one changed dimension:
- "没太大区别" → increase only the requested retouch/brightness strength.
- "脸不够干净" → refine blemishes and uneven tone; preserve pores and shape.
- "再亮一点" → lift face exposure and midtones; do not whiten globally.
- "风格变了" → restore original color, composition, clothing, and facial
character; reduce the edit scope.
- "更职业" → improve light, background discipline, crop, grooming, and finish;
do not make the person older, richer, or more corporate by assumption.
Repeat all identity invariants in every correction prompt.
Step 8: Deliver
Return:
- The final image inline when the runtime supports it.
- The saved file path for project-bound or local-file work.
- A concise list of intentional changes.
- A note confirming what was preserved.
If requested, create a separate before/after or progressive comparison board.
Do not bake labels, watermarks, or marketing text into the portrait itself.
Completion Criteria
The task is complete only when:
- The final is recognizably the same person at first glance.
- The requested improvement is visible at normal viewing size.
- Skin and hair remain photographic rather than plastic or painted.
- No unrequested identity, clothing, pose, or scene changes remain.
- The original file is untouched and the final path is reported.
1---2name: sgc-professional-portrait3description: Turn a single-person photo into a polished professional portrait while preserving the person's identity. Use restrained skin retouching, exposure cleanup, optional hat removal and hairstyle reconstruction, background polish, and an explicit quality gate. Trigger when the user asks for a professional headshot, business portrait, profile photo, skin retouch, brighter face, hat removal, or hairstyle cleanup. Also trigger on "职业照", "形象照", "证件形象照", "精修人像", "磨皮提亮", "去掉帽子", "换发型", "professional portrait", "headshot", "portrait retouch", and "remove hat".4license: MIT5---67# Professional Portrait — 职业形象照精修89Turn one source photo into a polished, believable professional portrait. The10face should still look unmistakably like the same person; "more professional"11must not become "a different, AI-perfect person."1213## When to Use1415- A casual photo needs to become a professional headshot or profile image.16- The user wants cleaner skin, brighter facial exposure, or a more polished17 overall look without changing identity.18- A hat, stray hair, or distracting background should be repaired.19- The user is iterating with feedback such as "变化不明显", "更干净帅气一点",20 or "只提亮面部".21- The user wants a before/after or progressive comparison after the edits.2223## Core Principle2425Identity fidelity outranks beautification. Lock the following unless the user26explicitly requests a change:2728- Face geometry, eyes, nose, lips, jaw, ears, and apparent age.29- Skin tone family and recognizable facial details.30- Expression, gaze, body proportions, pose, and camera perspective.31- Clothing, accessories, framing, and background.3233Remove only temporary distractions by default. Preserve believable skin34texture, asymmetry, and age-appropriate detail.3536## Workflow (MANDATORY)3738### Step 1: Inspect the edit target3940Identify the user's source photo as the **edit target**, not merely a style41reference.4243- If the photo is a local file, view it with the runtime's image-viewing tool44 before editing.45- Check face visibility, lighting, sharpness, crop, background, clothing,46 accessories, hair boundaries, and compression artifacts.47- Never publish, upload as a public example, or add the user's portrait to a48 repository unless the user separately asks for that.4950### Step 2: Infer the smallest sufficient brief5152Do not ask the user to choose from a long style menu when the request already53has a clear outcome. Use these defaults:5455| User intent | Default treatment |56|---|---|57| "磨皮 / 干净一点" | Light skin cleanup with visible pores |58| "提亮" | Lift face exposure and eye clarity; preserve skin tone |59| "职业照 / 形象照" | Natural retouch + balanced light + polished crop/background |60| "去帽子" | Reconstruct only the hidden hair/head region |61| "帅气 / 精神" | Improve grooming, contrast, posture impression, and catchlights without reshaping the face |6263Ask one concise question only when the answer materially changes the result,64such as whether to replace the background or what hairstyle to reconstruct.65Use the user's prior messages and visible photo to infer everything else.6667### Step 3: Plan the passes6869Use the fewest generative edits possible because every extra pass can drift70identity.71721. **Base pass** — restrained retouch and lighting cleanup.732. **Structural pass** — only when requested: remove hat, rebuild hair, replace74 background, or adjust wardrobe.753. **Correction pass** — one targeted fix after inspection, not another broad76 makeover.7778When multiple changes are requested together and the edit tool handles them79reliably, combine them into one identity-locked pass. Otherwise isolate the80structural change.8182### Step 4: Build the edit prompt8384Classify the task as `identity-preserve`. Label the source image as:8586```text87Image 1: edit target and identity reference.88```8990Every prompt must include:9192- Intended use: professional profile photo or headshot.93- Exact requested changes.94- Identity and composition invariants.95- Realistic skin and hair requirements.96- A short avoid list.9798Read `references/prompts.md` and use the closest recipe. Keep the prompt99specific to the current request; do not silently add wardrobe, background,100body, or facial changes.101102### Step 5: Edit with the native image tool103104- Prefer the runtime's built-in generative image-editing tool.105- Include the inspected source photo as the edit target.106- Preserve source resolution and aspect ratio unless the user requests a crop.107- Save non-destructively. Default filename:108 `<source-stem>-professional-portrait-v1.png`.109- If the user names a destination, save the selected final there.110- Do not substitute a text prompt, SVG mockup, or CSS filter for the requested111 raster portrait.112113### Step 6: Inspect at full image and face crop114115Read `references/quality-gate.md`. Check at least:1161171. Identity match.1182. Natural skin texture and tone.1193. Eyes, teeth, ears, jaw, and hairline integrity.1204. Hat-removal seams or background edge artifacts.1215. Coherent lighting, shadows, and sharpness.1226. Professional framing without unrequested changes.123124If a check fails, make one localized correction and repeat the gate.125126### Step 7: Handle iterative feedback precisely127128Translate short feedback into one changed dimension:129130- "没太大区别" → increase only the requested retouch/brightness strength.131- "脸不够干净" → refine blemishes and uneven tone; preserve pores and shape.132- "再亮一点" → lift face exposure and midtones; do not whiten globally.133- "风格变了" → restore original color, composition, clothing, and facial134 character; reduce the edit scope.135- "更职业" → improve light, background discipline, crop, grooming, and finish;136 do not make the person older, richer, or more corporate by assumption.137138Repeat all identity invariants in every correction prompt.139140### Step 8: Deliver141142Return:143144- The final image inline when the runtime supports it.145- The saved file path for project-bound or local-file work.146- A concise list of intentional changes.147- A note confirming what was preserved.148149If requested, create a separate before/after or progressive comparison board.150Do not bake labels, watermarks, or marketing text into the portrait itself.151152## Completion Criteria153154The task is complete only when:155156- The final is recognizably the same person at first glance.157- The requested improvement is visible at normal viewing size.158- Skin and hair remain photographic rather than plastic or painted.159- No unrequested identity, clothing, pose, or scene changes remain.160- The original file is untouched and the final path is reported.