DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5
221 stars · Python

How to use XXG Portrait Rebuild Light: what you can do with it

What is XXG Portrait Rebuild Light? xxg-portrait-rebuild-light is a Python image-edit skill that relights existing portrait photos and repairs skin texture while keeping the person's identity, pose, and framing.

How do I use it? Open https://github.com/moskoo/xxg-portrait-rebuild-light and read the skill instructions and the L and E recipe tables; then give the agent the source portrait and state the light you want, for example soft natural window light or natural backlight; let the agent choose one L light code and one E exposure code, and check that the prompt uses the four core lines EDIT, LIGHT, SKIN, and AVOID. Full steps below.

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

· GitHub stats as of

4 use cases

  • Relight a flat or weak backlit portrait

    Rebuild key light, shadows, and highlights in an existing portrait without redrawing the person.

    View prompt
    Using the xxg-portrait-rebuild-light skill from moskoo/xxg-portrait-rebuild-light, relight the portrait at <path to source image> with soft natural window light, choosing one L light code and one E exposure code. Return the edited image, and verify that the face size, position, pose, and camera view match the source.
  • Restore natural skin texture in a smoothed portrait

    Replace plastic-looking skin with clean, low-contrast photographic microtexture while leaving lighting alone.

    View prompt
    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.
  • Give a portrait a film or camera-device look

    Apply a color grade and capture response such as 35mm negative or instant film while keeping the view and focus.

    View prompt
    Using the xxg-portrait-rebuild-light skill from moskoo/xxg-portrait-rebuild-light, apply G7 color grade and D3 capture response to the portrait at <path to portrait>, keeping viewpoint and depth of field. Return the edited image, and verify that the crop, focus, and skin tone match the source apart from the requested grade.
  • Pull a multi-round AI portrait edit back to its root

    Remove accumulated color drift, noise, and seams after repeated AI edits by comparing against the first source.

    View prompt
    Use the xxg-portrait-rebuild-light skill from moskoo/xxg-portrait-rebuild-light to run a Q5 consolidation on <path to latest edit>, using <path to root source image> as the root base. Return one consolidated image, and verify that identity and unchanged colors match the root while the banding and seams are gone.

Quick start with XXG Portrait Rebuild Light

  1. Check you have what it needs: 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.
  2. Open moskoo/xxg-portrait-rebuild-light on GitHub and read the README and license.
  3. Open https://github.com/moskoo/xxg-portrait-rebuild-light and read the skill instructions and the L and E recipe tables.
  4. Give the agent the source portrait and state the light you want, for example soft natural window light or natural backlight.
  5. Let the agent choose one L light code and one E exposure code, and check that the prompt uses the four core lines EDIT, LIGHT, SKIN, and AVOID.
  6. Review the returned image for changed facial structure, pose, or framing.

These steps come from our top use case, Relight a flat or weak backlit portrait, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for moskoo/xxg-portrait-rebuild-light

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Content

About this repo

  • Who it is forPhotographers, retouchers, and creators with an AI agent that can edit images who need to fix or restyle lighting and skin in an existing portrait.
  • Why it is hot221 stars on GitHub as of Nov 6, 2026, launched Aug 11, 2026
  • LanguagePython
  • Sourcegithub.com/moskoo/xxg-portrait-rebuild-light · Back to Hot repos

Requirements

  • 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

Add this badge to your README

Maintain XXG Portrait Rebuild Light? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/moskoo/xxg-portrait-rebuild-light.svg)](https://dedupedai.com/use-cases/moskoo-xxg-portrait-rebuild-light/?utm_source=github&utm_medium=badge&utm_campaign=moskoo-xxg-portrait-rebuild-light)

HTML

<a href="https://dedupedai.com/use-cases/moskoo-xxg-portrait-rebuild-light/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=moskoo-xxg-portrait-rebuild-light"><img src="https://dedupedai.com/badge/moskoo/xxg-portrait-rebuild-light.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about XXG Portrait Rebuild Light

What is XXG Portrait Rebuild Light?

xxg-portrait-rebuild-light is a Python image-edit skill that relights existing portrait photos and repairs skin texture while keeping the person's identity, pose, and framing. It is an open-source project on GitHub: https://github.com/moskoo/xxg-portrait-rebuild-light.

How do I use XXG Portrait Rebuild Light?

Open https://github.com/moskoo/xxg-portrait-rebuild-light and read the skill instructions and the L and E recipe tables; then give the agent the source portrait and state the light you want, for example soft natural window light or natural backlight; let the agent choose one L light code and one E exposure code, and check that the prompt uses the four core lines EDIT, LIGHT, SKIN, and AVOID. The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is XXG Portrait Rebuild Light for?

Photographers, retouchers, and creators with an AI agent that can edit images who need to fix or restyle lighting and skin in an existing portrait.

What can I do with XXG Portrait Rebuild Light?

4 use cases so far, for example: Relight a flat or weak backlit portrait; Restore natural skin texture in a smoothed portrait; Give a portrait a film or camera-device look. Each has steps and a copy-paste agent prompt.

What do I need to run XXG Portrait Rebuild Light?

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.

What are alternatives to XXG Portrait Rebuild Light?

Other hot AI repos in Content: Impeccable, Hallmark, OpenMontage, Prompts Chat, Marketingskills.

Is XXG Portrait Rebuild Light safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.