gpt-image-2-style-libr…
Choose GPT-Image2 / gpt-image-2 visual styles and industrial prompt templates from the awesome-gpt-image-2 style library. Use…
Edit an existing JPG, JPEG, PNG, or WebP portrait to rebuild physically coherent light, exposure, color, capture style, clean optical skin, and frame quality without changing the person. Use for plastic-skin or AI-look removal, dirty synthetic texture, banding, edit seams, color
Claude Code
$ npx -y skills add moskoo/xxg-portrait-rebuild-light --skill xxg-portrait-rebuild-light --agent claude-code
Codex
$ npx skills add moskoo/xxg-portrait-rebuild-light --skill xxg-portrait-rebuild-light -a codex -y
Cursor
$ npx skills add moskoo/xxg-portrait-rebuild-light --skill xxg-portrait-rebuild-light -a cursor -y
Gemini CLI
$ npx skills add moskoo/xxg-portrait-rebuild-light --skill xxg-portrait-rebuild-light -a gemini-cli -y
GitHub Copilot
$ npx skills add moskoo/xxg-portrait-rebuild-light --skill xxg-portrait-rebuild-light -a github-copilot -y
OpenCode
$ npx skills add moskoo/xxg-portrait-rebuild-light --skill xxg-portrait-rebuild-light -a opencode -y
Windsurf
$ npx skills add moskoo/xxg-portrait-rebuild-light --skill xxg-portrait-rebuild-light -a windsurf -y
name: xxg-portrait-rebuild-light description: "Edit an existing JPG, JPEG, PNG, or WebP portrait to rebuild physically coherent light, exposure, color, capture style, clean optical skin, and frame quality without changing the person. Use for plastic-skin or AI-look removal, dirty synthetic texture, banding, edit seams, color drift, multi-round quality loss, tone or white-balance correction, camera/film/device emulation, backlight, prism, blind shadows, candlelight, neon, golden hour, rim light, rain-wet low key, studio light, or silhouettes."
Treat the input as the same photograph, never as a reference for a replacement portrait. Improve illumination, exposure, color rendering, capture character, skin response, and generation quality while retaining identity, facial geometry and natural asymmetry, expression, pose, camera view, framing, and subject scale. Preserve source optics unless the user explicitly requests an optical restyle.
Build realism from three separable signals:
1. clean low-frequency skin tone and broad transitions; 2. source-driven diffuse/specular response with highlights confined to plausible light-facing areas; 3. fine, region-specific microdetail limited by face scale, focus, and illumination.
Do not manufacture realism with dirt, darkness, coarse pores, uniform grain, random color patches, or exaggerated facial lines. The result must first read as a clean photograph at normal size.
Never let texture repair become relighting, tone correction become a new light source, device emulation become a new pose/viewpoint, or quality cleanup become global smoothing or an unauthorized regrade.
1. Inspect the source and read the host's native image-generation or image-editing skill. 2. Discover the actual callable in the tool registry. In Codex, inspect `ALL_TOOLS` and prefer the exact discovered name `image_gen__imagegen`. 3. For a local source in Codex, use the discovered tool and its real arguments:
const result = await tools.image_gen__imagegen({
referenced_image_paths: ["/absolute/path/source.png"],
prompt: "compact English image-edit prompt"
});
generatedImage(result);Never guess `tools.image_gen` or `input_image`. Correct wrong members, arguments, or `TypeError` from the registered signature and retry. In Claude, OpenClaw, or another host, use the equivalent native image-edit action explicitly exposed by that host.
For base-anchored or multi-round repair, pass exactly `[CURRENT_EDIT, ROOT_BASE]` and state: Image 1 is the edit target; Image 2 is the original root reference for declared locked axes only. Do not attach every intermediate round.
| Observed state | Required action | | --- | --- | | Compatible image tool discovered | Invoke it. A small face, dense text, complex props, or edge contact lowers detail ambition but never blocks generation. | | Correct image tool returns a real error | Report the actual error, enter `prompt-only`, and return a complete compact prompt. | | Discovery completes with no compatible callable | Enter `invocation-handoff` and return a complete compact prompt. | | Result is nearly unchanged, changes identity, creates artificial skin, or misses the light | State that the result did not achieve the requested improvement, enter `prompt-handoff`, and recompile from the source. |
Reading a skill, inspecting an image, creating a task, or announcing generation is not an image-tool invocation.
Do not use Pillow, NumPy, OpenCV, ImageMagick, FFmpeg, `sips`, or custom raster scripts to relight, grade, retouch, sharpen, add texture, resize, crop, extend, composite, repair, or produce the delivered image. Use them only for read-only aspect-ratio, mask, and result audits. See `requirements.txt`.
Read [the V2.3 prompt compiler](references/prompt-recipes.md), [the lighting and skin recipes](references/lighting-skin-color-temperature-recipes.md), [the tone/exposure/style/device recipes](references/tone-exposure-style-device-recipes.md), and [the qual
`xxg-portrait-rebuild-light` is an image-edit skill for existing portrait photos. It reconstructs the key light, fill, shadows, and background atmosphere with a director-led lighting workflow while restoring clean, healthy, low-contrast photographic skin microtexture.
Choose GPT-Image2 / gpt-image-2 visual styles and industrial prompt templates from the awesome-gpt-image-2 style library. Use…
Remove visible Gemini image watermarks from local image files by calling the project's CLI. Use when the user wants an agent to…
Create Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures,…
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference…