godot-performance-optimization — Claude Code skill guide
Blueprint for profiling and resolving frame drops, draw call spikes, and memory leaks in Godot. Guides agents to profile before optimizing.
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-performance-optimization -a claude-codeWhat godot-performance-optimization does
This skill provides strict performance rules for Godot projects. It enforces running the built-in Profiler (F3) first to diagnose hot spots across Time, Memory, and Physics tabs before touching code. Common mistakes are flagged immediately: calling get_node() in _process(), running unshielded print() statements in release builds, or spawning instances inside tight loops.
For rendering and physics workloads, the skill details specific architecture fixes. It prescribes MultiMesh and TextureAtlas to batch draw calls, direct space-state queries to replace clusters of RayCast nodes, and WorkerThreadPool to keep background calculations off the main thread. It also requires shader pre-warming when targeting the Compatibility renderer.
Texture compression breaks pixel art. The guide explicitly demands turning off VRAM compression for pixel assets to avoid rendering artifacts.
What it helps with
- profile frame drops and memory spikes using the Godot Profiler
- batch sprite and mesh draw calls with MultiMesh
- reuse spawned instances through object pooling
- disable off-screen processing via VisibleOnScreenNotifier2D
- offload heavy synchronous operations to WorkerThreadPool
Example prompts for the agent
- Inspect my Godot enemy script and cache all get_node calls using @onready.
- Help me set up an object pool for projectile spawning instead of instantiating in loops.
- How should I pre-warm shaders in Godot's Compatibility renderer to avoid frame hitches?
How to install godot-performance-optimization
1Skills CLI (Vercel)
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-performance-optimization -a claude-code2Manually: put the files in place
~/.claude/skills/godot-performance-optimization/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/godot-performance-optimization/
1Skills CLI (Vercel)
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-performance-optimization -a codex2Manually: put the files in place
.agents/skills/godot-performance-optimization/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-performance-optimization -a cursor2Manually: put the files in place
.cursor/skills/godot-performance-optimization/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install thedivergentai/Game-Dev-Agentic-Skills godot-performance-optimization2Manually: put the files in place
.github/skills/godot-performance-optimization/SKILL.md1Skills CLI (Vercel)
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-performance-optimization -a gemini-cli2Platform CLI
gemini skills install https://github.com/thedivergentai/Game-Dev-Agentic-Skills --path skills/godot-performance-optimizationManually: put the files in place
.devin/skills/godot-performance-optimization/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-performance-optimization -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 godot-performance-optimization
How do I install godot-performance-optimization in Claude Code?
Run npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-performance-optimization -a claude-code.
What does the godot-performance-optimization skill do?
It instructs coding agents to profile Godot games before altering code. It provides guidelines for object pooling, draw call batching, space-state physics queries, and off-screen entity culling.
What VRAM compression codecs does the skill recommend?
It advises S3TC or BPTC for desktop builds and ETC2 for mobile targets. Pixel art is an exception where compression should remain disabled to prevent visual degradation.