DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to relight a flat or weak backlit portrait with XXG Portrait Rebuild Light

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

Short answer: 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. All steps.

  • Top pick
  • Content
  • Intermediate
  • 30 minutes
  • From the README
  • Any agent

Who it is forA photographer or retoucher whose portrait was shot with weak backlight or flat indoor window light and needs the light to read as physically plausible.

The problemThe source has flat lighting, crushed shadows, or highlights with no visible light source, which makes the portrait look unfinished.

The outcomeAn edited portrait with a director-led lighting change, with identity, pose, expression, and composition kept as in the source.

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

  1. Open https://github.com/moskoo/xxg-portrait-rebuild-light and read the skill instructions and the L and E recipe tables.
  2. Give the agent the source portrait and state the light you want, for example soft natural window light or natural backlight.
  3. 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.
  4. Review the returned image for changed facial structure, pose, or framing.
  5. If the edit misses the target, ask the agent for the single complete compact image-edit prompt the skill returns.

Prompt for your agent

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.

Caveat. The README excerpt does not list install steps, so setup depends on how your agent loads the skill from the repo.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for moskoo/xxg-portrait-rebuild-light and "Relight a flat or weak backlit portrait"

Add Deduped to Claude Code once

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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

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