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
- Open https://github.com/moskoo/xxg-portrait-rebuild-light and read the skill instructions and the L and E recipe tables.
- 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.
- Review the returned image for changed facial structure, pose, or framing.
- 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
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