Install
openclaw skills install @act-chao/green-screen-cutout-assetsGenerate green-screen raster subject assets with an image model and convert them into transparent PNGs with robust chroma-key cutout. Use when Codex needs pet stickers, character sprites, eggs, props, icons, collectibles, UI decorations, or other foreground image assets that must sit over app backgrounds without blocking them; includes green-screen prompt guidance, batch cutout scripting, QA reports, and contact sheets.
openclaw skills install @act-chao/green-screen-cutout-assetsUse this skill for foreground bitmap assets that need transparent backgrounds. Typical targets: pets, eggs, NPCs, stickers, props, collectibles, hand-drawn UI decorations, and app/game sprites.
Do not use this skill for full scene backgrounds, photos that should remain rectangular, native SVG/vector icons, or layout-only UI work.
imagegen skill/tool is available, use it for the raster generation.public/assets/source-green-screen/<name>-source.pngpublic/assets/source-green-screen/eggs/<name>-egg-source.pngscripts/chroma_key_cutout.py from this skill.Always ask for a plain green-screen background, but never assume the model will use exact #00ff00. Keep the subject isolated and avoid shadows touching the image edges.
Core prompt clause:
plain solid chroma green background for cutout, isolated full body centered with generous padding, no shadow touching edges, no text, no watermark
Warm hand-drawn journal style clause:
warm hand-drawn journal sticker style, cozy mobile app asset, soft paper texture, pastel warm colors, no hard outline
Avoid clause:
Do not use green inside the subject unless specifically requested. Do not crop ears, tail, paws, feet, hair, fur, props, or transparent-safe edges.
For detailed prompt templates, read references/prompt-cookbook.md.
Script path:
python C:\Users\19540\.codex\skills\green-screen-cutout-assets\scripts\chroma_key_cutout.py --help
Batch example:
python C:\Users\19540\.codex\skills\green-screen-cutout-assets\scripts\chroma_key_cutout.py `
--input-dir public/assets/source-green-screen `
--out-dir public/assets `
--report public/assets/cutout-report.json `
--contact-sheet public/assets/cutout-contact-sheet.png
Single image example:
python C:\Users\19540\.codex\skills\green-screen-cutout-assets\scripts\chroma_key_cutout.py `
--input .\source.png `
--out .\transparent.png
Useful options:
--category pets|eggs|generic|auto: force output folder category when batch-processing.--padding 24: crop to subject alpha while retaining transparent padding.--feather 1.2: soften the alpha edge.--edge-contract 1: remove an extra pixel of green screen if source has stubborn fringes.--fail-on-warning: exit nonzero if any item has QA warnings.The script installs pillow and numpy if missing. It estimates the key color from image borders, removes only edge-connected green regions, feathers alpha, despills green fringes, crops to content, writes a report, and builds a contact sheet on a checkerboard/matte preview.
Treat a cutout as usable only when:
processing_failed, corners_not_transparent, low_transparent_area, low_subject_area, or cropped_subject_too_small warnings;If QA fails, try in this order:
no green accessories, no green reflections, no shadow touching edges, generous padding.--edge-contract 1 for stubborn exterior fringe.--feather if fine details are being washed out.wolf.png, not wolf-candidate-2.png.npm run lint and npm run build for web apps.