/ai-video:chroma-key-transparencyfrom ai-video
Use when generating images that need transparent backgrounds, including game sprites, item icons, cutout characters, decals, and UI assets. Also use to remove a deliberately flat chroma-key background from an existing image.
Ships in ai-video. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate the artwork on an opaque, flat key color, then remove that color with image processing to produce actual alpha. Do not ask the image model for transparency or a checkerboard. This is the user's preferred transparency workflow; combine it with the available image-generation tool or skill for generation, and use code for the explicitly requested chroma removal. Respect higher-priority tool restrictions.
#00FF00 is a starting point, blue or magenta can suit green subjects. Do not change the subject's palette to fit the key.Use the bundled helper, or an available equivalent that supports a soft matte and edge-color decontamination. Paths below are relative to this skill's directory, not the user's project. Requires Python 3 and Pillow (python3 -m pip install Pillow in an appropriate environment if missing).
python3 scripts/remove_chroma.py source.png asset.png --key '#00FF00' --previews
The helper exports straight-alpha RGBA PNG without changing dimensions. It preserves the source and refuses to overwrite outputs. It uses RGB distance from the key: pixels within --inner (default 20) become transparent; pixels beyond --outer (default 150) retain their alpha; those between get a soft transition with key-color unmixing. These are starting parameters, not an automatic segmentation model. Read the emitted alpha counts and inspect the previews before accepting a result.
--inner and --outer together based on the actual image; excessive tolerance erases subject detail. Reprocess from the original, never a previously keyed output.--despill for pure #00FF00 or #0000FF keys. This caps excess of the key channel at the maximum of the other two channels, including opaque contaminated edge pixels. Only enable it when that color is absent from the intended subject; it operates globally and can alter legitimate colors. Compare to the original after applying it. For other keys use a suitable selective despill/matte tool.--hard --inner 30 for intentionally hard-edged pixel art; no soft alpha is introduced. Tune the threshold to the actual key..light.png, .dark.png, and .checker.png composites at intended display size and zoom into edges. Look for colored halos, dark rims, jagged edges, lost hair/thin parts, holes in the subject, clipped tips, and leftover key in internal gaps. View the files; counts alone do not establish quality.Prefer a targeted correction when quality fails. If repeated tuning damages the subject, stop eroding it and change the key/source or matting approach. Do not claim every asset is production-ready solely because this helper ran successfully.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bernatmv/ai-rules --plugin ai-video7 skills in this plugin
/ai-video-prompt-enhancerUse when the user wants to generate a single AI video clip and needs to turn a rough idea into a detailed, cinematic prompt that modern AI video models can execute well. For multi-shot videos (TikTok Reels, Ads, Explainers), use ai-video-storyboard instead./ai-video-storyboardUse when planning a multi-shot AI video (TikTok Reel, Instagram Ad, YouTube Shorts, product explainer) where the target duration exceeds what a single AI generation can produce (>15s), and you need a coordinated shot list with visually consistent prompts for each segment/character-design-sheetCharacter consistency across AI-generated images with reference sheets and LoRA techniques. Covers turnaround views, expression sheets, color palettes, and style consistency tricks. Use for: character design, game art, illustration, animation, comics, visual novels. Triggers: character design, character sheet, character consistency, character reference, turnaround sheet, expression sheet, character art, consistent character, character concept, reference sheet, character creation, oc design, character bible