# godot-gdscript-mastery

Guides coding agents through GDScript pitfalls, enforcing static typing and safe node lifecycle patterns in Godot.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 612 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-gdscript-mastery/SKILL.md
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/skills/godot-gdscript-mastery

## What it does

The skill provides architectural decision trees and strict guardrails for Godot. It stops agents from making common runtime errors, such as pairing `@onready` with `@export` on the same variable. It also prohibits calling `get_node()` inside `_process()` and calling parent methods directly instead of signaling upward.

It outlines workflows for static typing opcodes, typed collections, and `Callable.bind` contexts. Instead of bloating Autoload singletons, it directs models to use `static var` declarations. Dedicated audit scripts like `type_checker.gd` and `signal_architecture_validator.gd` help check project boundaries.

Do not use this skill for engine version upgrades between Godot 3 and 4, because version migration requires a dedicated module. Its bundled utility tools belong in EditorScript workflows and will fail if treated as runtime gameplay code.

## Requirements
- Works with: Godot

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/godot-gdscript-mastery/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-gdscript-mastery
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-gdscript-mastery -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-gdscript-mastery/SKILL.md

## When to use it
- enforce static typing and typed collections across Godot scripts
- implement signal-up call-down node communication patterns
- prevent frame drops caused by dynamic node lookups in _process()
- clean up dictionary iteration and Callable argument binding

## Example prompts
- Review this enemy controller script against godot-gdscript-mastery guidelines.
- Refactor this signal handling and node lifecycle logic using static typing opcodes.
- Fix the Dictionary iteration and dynamic node calls inside my _process loop.

## Similar
- [godot-gdscript](https://affpapa.org/en/nevibecode/skills/godot-gdscript.md) — skill · 6500 installs
- [godot-gdscript-headless-testing](https://affpapa.org/en/nevibecode/skills/godot-gdscript-headless-testing.md) — skill · 3100 installs
- [godot-gdscript-patterns](https://affpapa.org/en/nevibecode/skills/godot-gdscript-patterns.md) — skill · 17396 installs
- [godot-best-practices](https://affpapa.org/en/nevibecode/skills/godot-best-practices.md) — skill · 2100 installs
- [cli-anything-godot](https://affpapa.org/en/nevibecode/skills/cli-anything-godot.md) — skill · 548 installs
- [godot-prompter](https://affpapa.org/en/nevibecode/plugins/godot-prompter.md) — plugin · ★ 867

From the same set: [thedivergentai/game-dev-agentic-skills](https://affpapa.org/en/nevibecode/by/thedivergentai/game-dev-agentic-skills.md) — 51 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
