CLI for splitting and recombining PNG alpha channels when prepping WoW textures for AI image generation. Use when working with texture alpha channels, stripping alpha for AI generation, or recombining generated textures with original alpha data.
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
npx agent-skills-cli listSkill Instructions
name: texprep description: CLI for splitting and recombining PNG alpha channels when prepping WoW textures for AI image generation. Use when working with texture alpha channels, stripping alpha for AI generation, or recombining generated textures with original alpha data.
texprep β PNG Alpha Channel Splitter/Combiner
Binary: texprep (installed via cargo install --path)
Source: /Users/alfred/git/svartkonst-wow/tooling/texprep
WoW textures encode non-visual data (heightmaps, masks) in the alpha channel. This tool strips alpha before AI generation and re-applies it after.
Commands
strip
Split a PNG into RGB and alpha components.
texprep strip <input.png>
texprep strip <input.png> -o <output_dir>
Produces <name>_rgb.png (RGB only) and <name>_alpha.png (alpha as grayscale).
If the image has no meaningful alpha (all 255), only the RGB file is created with a warning.
apply
Recombine an RGB image with a grayscale alpha image.
texprep apply <rgb.png> <alpha.png>
texprep apply <rgb.png> <alpha.png> -o <output.png>
Produces <rgb_name>_final.png by default. Errors if dimensions don't match.
Typical Workflow
# 1. Strip alpha before AI generation
texprep strip terrain_texture.png
# 2. Feed terrain_texture_rgb.png to AI tool, get back generated_rgb.png
# 3. Re-apply original alpha
texprep apply generated_rgb.png terrain_texture_alpha.png -o terrain_texture_final.png
More by KristalAlfred
View allBest practices for writing Claude Code skills and agents. Use when creating, improving, or troubleshooting SKILL.md or agent files.
WoW 3.3.5a (WOTLK) modding overview. Use when working on WoW mod tasks, client patching, texture work, DBC editing, MPQ archives, or AIO plugins. Pulls in relevant sub-skills.
wow-aio-plugin: API Definition for writing AIO plugins (which are lua plugins in the Wow WOTLK 3.3.5 client)
