Who it is forA retoucher or creator whose portrait looks over-smoothed or waxy and needs skin fixed without changing the light.
The problemHeavy smoothing or AI generation has left plastic skin, and a full relight would change more than the skin.
The outcomeA portrait with healthy skin microtexture and the source lighting, color, focus, and depth of field kept as they were.
What you need first
- An AI agent with image-generation or image-editing capability, since the README says the skill uses the current agent's own capability by default and needs no separate API
- The source portrait image file, which the skill treats as the root base for color and identity
- The skill instructions from https://github.com/moskoo/xxg-portrait-rebuild-light, read before running
- A clear goal, such as a lighting change, a skin texture repair, or a film look
Steps
- Open the repo at https://github.com/moskoo/xxg-portrait-rebuild-light and read the texture-only fidelity and S and P recipe sections.
- Give the agent the portrait and say the request is texture-only, so the agent sets lighting, exposure, color, and atmosphere to their source defaults.
- Ask the agent to choose one S skin scale code that fits the shot size, such as S1 for a medium shot or S2 for a high-resolution close-up.
- Ask for P0 to keep the source diffuse and specular response, then check that pores, hair, and fabric detail are preserved and not exaggerated.
Prompt for your agent
Use the xxg-portrait-rebuild-light skill from moskoo/xxg-portrait-rebuild-light to run a texture-only skin repair on <path to portrait>, with S1 scale and P0 finish. Return the edited image, and verify that the lighting, color, and focus match the source while the skin looks clean and not plastic.
Caveat. The README says the skill keeps the source look for skin-only requests, but you still need to check the output yourself for over-sharpening or grain.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for moskoo/xxg-portrait-rebuild-light and "Restore natural skin texture in a smoothed portrait"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer