godot-gdscript-mastery

Installation
SKILL.md

GDScript Mastery

Expert guidance for writing performant, maintainable GDScript following official Godot standards.

NEVER Do

  • NEVER use dynamic typing for performance-critical code — var x = 5 is 20-40% slower than var x: int = 5. Type everything.
  • NEVER call parent methods from children ("Call Up") — Use "Signal Up, Call Down". Children emit signals, parents call child methods.
  • NEVER use get_node() in _process() or _physics_process() — Caches with @onready var sprite = $Sprite. get_node() is slow in loops.
  • NEVER access dictionaries without .get() default — dict["key"] crashes if missing. Use dict.get("key", default) for safety.
  • NEVER skip class_name for reusable scripts — Without class_name, you can't use as type hints (var item: Item). Makes code harder to maintain.

Available Scripts

MANDATORY: Read the appropriate script before implementing the corresponding pattern.

advanced_lambdas.gd

Higher-order functions in GDScript: filter/map with lambdas, factory functions returning Callables, typed array godot-composition, and static utility methods.

Installs
3
GitHub Stars
3
First Seen
May 2, 2026