game-image-extraction
Game Image Extraction (Unity & KiriKiri2/Z)
Extract image assets from local Unity and KiriKiri2/KiriKiriZ games cleanly into PNG/JPG folders without modifying the game installation directory.
One cross-platform CLI script, scripts/game_extract.py, handles engine detection, Unity extraction, plain XP3 inspection/unpacking, raw .bin conversion (PNG/JPG/TLG/PSB-PIMG), and metadata-only verification. Run it through uv (no global installs) with the pinned versions below. Define the helpers in each shell command that uses them. Set GE_PY to the absolute path of scripts/game_extract.py inside the folder that holds this SKILL.md (Claude Code shows it as the skill's base directory; a project install is <workspace>/.agents/skills/game-image-extraction/). Never derive it from the current directory: a repository you are inside could hold its own copy.
Run ge and geu from the workspace root or another folder you trust, never from inside the game folder or a folder of extracted files. uv reads pyproject.toml, uv.toml, and .venv from the current folder and its parents, so a folder that came with the game could change what gets installed and run. --no-project --no-config keeps the first two out; the folder rule covers the rest. Pass game and output folders as absolute paths or paths relative to that folder.
PowerShell (cmd.exe has no functions, so use PowerShell or Git Bash):
$GE_PY = 'C:\absolute\path\to\game-image-extraction\scripts\game_extract.py'
function ge { uv run --no-project --no-config --no-build --exclude-newer P7D --python 3.12 --with pillow==13.0.0 python -I $GE_PY @args }
function geu { uv run --no-project --no-config --exclude-newer P7D --python 3.12 --with UnityPy==1.25.4 --with tpk-ar==0.2.4 --with pillow==13.0.0 --with archspec==0.2.7 --with astc-encoder-py==0.1.12 --with attrs==26.1.0 --with brotli==1.2.1 --with etcpak==0.9.15 --with fmod-toolkit==0.1.3 --with fsspec==2026.9.0 --with lz4==4.4.5 --with pyfmodex==0.7.2 --with texture2ddecoder==1.0.6 python -I $GE_PY @args }
bash / zsh / Git Bash: