# godot-scene-management

This skill covers Godot scene swaps, background loading, transitions, pooling, and state that must survive level changes.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 456 installs · ★ 893
- Author: thedivergentai
- License: LGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-scene-management/SKILL.md
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/skills/godot-scene-management

## What it does

The skill maps out threaded level loading with progress UI and a scene swap after `THREAD_LOAD_LOADED`. It uses `ResourceLoader.load_threaded_request()` to stage content while the game runs, while a transition manager can wrap the swap with a fade or wipe effect.

Its scripts cover async loading, scene pools, additive UI layers, `SubViewport` layouts, persistent data, and state restore. Other patterns handle `%UniqueName` references, transform-safe reparenting, and runtime script attachment.

Large scenes should not be loaded synchronously on the main thread, since that can cause hitches or a full freeze during a transition. State that must survive a swap belongs in an Autoload or persistent node because `change_scene_to_file()` removes the current scene and its local variables.

## Requirements
- Works with: Godot

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-scene-management -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/godot-scene-management/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/godot-scene-management/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-scene-management -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/godot-scene-management/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-scene-management -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/godot-scene-management/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install thedivergentai/Game-Dev-Agentic-Skills godot-scene-management
```

2. **Manually: put the files in place**
- File: `.github/skills/godot-scene-management/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-scene-management -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/thedivergentai/Game-Dev-Agentic-Skills --path skills/godot-scene-management
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/godot-scene-management/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-scene-management -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-scene-management/SKILL.md

## When to use it
- load a large level in the background with progress feedback
- stage the next scene while gameplay continues
- wrap a level swap in a fade transition
- reuse bullets, enemies, or VFX through object pooling
- preserve state across scene changes

## Example prompts
- Set up background loading with `ResourceLoader.load_threaded_request()` and switch scenes after `THREAD_LOAD_LOADED`.
- Add a fade transition between levels and place the manager in an Autoload.
- Replace repeated enemy `instantiate()` and `queue_free()` calls with a scene pool.

## Similar
- [orbit-card](https://affpapa.org/en/nevibecode/skills/orbit-card.md) — skill · 10000 installs
- [cad](https://affpapa.org/en/nevibecode/skills/cad.md) — skill · 14000 installs
- [step-parts](https://affpapa.org/en/nevibecode/skills/step-parts.md) — skill · 11200 installs
- [sdf](https://affpapa.org/en/nevibecode/skills/sdf.md) — skill · 10500 installs
- [urdf](https://affpapa.org/en/nevibecode/skills/urdf.md) — skill · 10500 installs
- [hatch-pet](https://affpapa.org/en/nevibecode/skills/hatch-pet.md) — skill · 3300 installs

From the same set: [thedivergentai/game-dev-agentic-skills](https://affpapa.org/en/nevibecode/by/thedivergentai/game-dev-agentic-skills.md) — 61 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
