Generate new raster assets that must contain native pixel transparency, then verify the untouched PNG or WebP before delivery. Use for transparent stickers, sprites, character cutouts, product assets, and furry or fine-edged subjects where background removal would be unacceptable. Do not use to remove a background from an existing opaque image, repair an opaque generation by masking or chroma key, or create ordinary opaque images.
npx skills add https://github.com/ZSeven-W/craft-skills --skill native-transparent-imagegen
Generate the asset with native alpha. Treat a visible checkerboard, a prompt that says
"transparent," and a successful tool call as unverified until the original file passes
alpha inspection.
transparency.
user explicitly requests an edit.
alpha synthesis to rescue an opaque output.
background-extraction workflow and disclose that it is an edit, not native generation.
is genuine pixel transparency with a real alpha channel.
Do not parallelize unless the current tool exposes an explicit per-request background
control and concurrent native-alpha behavior has been verified.
background: "transparent" and output_format: "png" or "webp".
resize, or otherwise alter the deliverable.
Read references/prompting-and-retry.md when preparing a
prompt, retrying a failed output, generating more than one asset, or reporting limitations.
Install the validator dependency only when it is missing:
python3 -m pip install -r \
"${CODEX_HOME:-$HOME/.codex}/skills/native-transparent-imagegen/scripts/requirements.txt"
Run the read-only validator on every requested deliverable:
python3 \
"${CODEX_HOME:-$HOME/.codex}/skills/native-transparent-imagegen/scripts/validate_alpha.py" \
--require-transparent-corners \
/path/to/original-output.png
The file passes the technical gate only when:
Then inspect the actual edges against contrasting viewer backgrounds. Alpha metadata cannot
prove that fine fur is clean or that the image lacks a broad translucent haze. Reject visible
checkerboards, matte halos, colored fog, unintended shadows, clipped strands, or missing
details even when the metadata gate passes.
output instruction.
more.
explicit API route only when available and authorized; never silently change models or use
background extraction.
For every accepted asset, report:
Keep generated, alpha-validated, edge-inspected, user-accepted, and published as
separate states.
Take zseven-w/native-transparent-imagegen from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.