alayarenderer-generative-world — Claude Code skill: G-buffer rendering
An agent skill that walks you through AlayaRenderer: splitting RGB video into G-buffers and restyling footage from a text prompt.
npx skills add reason-machines/trending-skills --skill alayarenderer-generative-world -a claude-codeWhat alayarenderer-generative-world does
AlayaRenderer works in two stages. The Inverse Renderer takes ordinary RGB footage and pulls out five channels: albedo, normal, depth, roughness and metallic. Game Editing then takes those G-buffers plus a text prompt and produces a restyled clip.
The skill covers the whole setup for your agent. You clone the repo with submodules, create two conda environments on Python 3.10, and pull weights with huggingface-cli. The models differ in size — Cosmos-Transfer1-DiffusionRenderer 7B handles inverse rendering, Wan2.1 1.3B does the stylization — and their dependencies clash, which is why the two environments stay apart. Weights land in inverse_renderer/checkpoints/Diffusion_Renderer_Inverse_Cosmos_7B and game_editing/models/train/Wan2.1-T2V-1.3B_gbuffer.
Game Editing inference runs through examples/wanvideo/model_inference/inference_gbuffer_caption.py, driven by flags such as --style, --prompt, --gbuffer_dir, --num_frames, --height and --width. Frame counts must follow the 8n+1 pattern; anything else and the run fails. The G-buffer directory is built by hand: five subfolders of per-frame PNGs.
What it helps with
- split RGB footage into albedo, normal, depth, roughness and metallic maps
- turn a gameplay recording into a snowy or night scene from text
- set up two conda environments for models with clashing dependencies
- download Cosmos-Transfer1 and Wan2.1 weights into the right paths
- lay out a G-buffer folder of per-frame PNGs for inference
Example prompts for the agent
- Run the inverse renderer on
gameplay_video.mp4and write the G-buffers totest_dataset/ - Generate a game editing clip with style
snowy_winterand a prompt about a frozen forest - Help me set up the
game_editingenvironment and fetch theBrian9999/stylerendererweights
How to install alayarenderer-generative-world
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill alayarenderer-generative-world -a claude-code2Manually: put the files in place
~/.claude/skills/alayarenderer-generative-world/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/alayarenderer-generative-world/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill alayarenderer-generative-world -a codex2Manually: put the files in place
.agents/skills/alayarenderer-generative-world/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill alayarenderer-generative-world -a cursor2Manually: put the files in place
.cursor/skills/alayarenderer-generative-world/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills alayarenderer-generative-world2Manually: put the files in place
.github/skills/alayarenderer-generative-world/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill alayarenderer-generative-world -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/alayarenderer-generative-worldManually: put the files in place
.devin/skills/alayarenderer-generative-world/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill alayarenderer-generative-world -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about alayarenderer-generative-world
How do I install alayarenderer-generative-world in Claude Code?
Run npx skills add reason-machines/trending-skills --skill alayarenderer-generative-world -a claude-code. The skill is then at ~/.claude/skills/alayarenderer-generative-world/SKILL.md.
What does alayarenderer-generative-world do?
It guides your agent through installing and running AlayaRenderer: inverse rendering video into G-buffers, then restyling it from a text prompt.
Why does AlayaRenderer need two conda environments?
The Inverse Renderer and Game Editing models have conflicting dependencies, so they are kept separate as inverse_renderer and game_editing.