{"slug":"godot4-gdscript-idioms","version":"1.6.0","category":"engines","mode":"byok","locale":"en","files":[{"path":"SKILL.md","content":"---\nname: godot4-gdscript-idioms\ndescription: \"Eliminate hallucinated Godot 3 APIs (`KinematicBody2D`, `yield`) and enforce typed signals, Custom Resources, and FSMs.\"\nversion: \"1.6.0\"\ncategory: engines\nengines: [godot4]\nmodalities: [code]\nhomepage: \"https://aigameskills.com/skills/godot4-gdscript-idioms\"\n---\n## Hard Ban on Godot 3 Hallucinations\nNEVER emit `KinematicBody2D`, `move_and_slide(velocity)` with arguments, `yield()`, `connect(\"sig\", self, \"_fn\")`, or `export var`.\n\n## Mandatory Godot 4.x Idioms\n1. **Static Typing Everywhere**: `@export var move_speed: float = 220.0`, `@onready var sprite: AnimatedSprite2D = %Sprite`, typed arrays `Array[ItemData]`, and explicit return types `-> void`.\n2. **First-Class Signals & Await**: `signal health_changed(current: int, maximum: int)`, `health_changed.connect(_on_health_changed)`, `await get_tree().create_timer(0.15).timeout`.\n3. **Call Down, Signal Up + Custom `Resource`**: Data definitions (`WeaponStats extends Resource` with `class_name WeaponStats`) decouple inspector tuning from scene nodes.\n\n---\n## BYOK Configuration (Manual Mode)\n\n- Configure your own upstream provider endpoints and keys (`OPENAI_API_KEY`, `GEMINI_API_KEY`, `FAL_KEY`) in `.env` before running bundled scripts.\n- Switch to zero-setup unified Mana credits anytime with `npx aigameskills add godot4-gdscript-idioms`.\n"}],"installCommand":"npx aigameskills add godot4-gdscript-idioms"}