Use strict typing and type hints for vars/params/returns.
Annotate Variant sources explicitly: var x: Variant = get_variant(); use = (not :=) for untyped defaults.
Keep code readable: meaningful names, related members grouped, and short docstrings on anything non-trivial. 
Keep functions focused (aim ~≤100 lines) and keep files modular: target ≤500 lines (≤1000 only if truly unavoidable). 
Before adding code, ask if it belongs in this file or should be a new component/scene. 
Follow Godot naming consistently: files/vars/functions in snake_case, classes and nodes in PascalCase, constants in ALL_CAPS_SNAKE_CASE, signals in past-tense snake_case. 
Prefer composition over inheritance and use signals (or direct calls) to reduce tight coupling. 
Always handle failure paths: validate resources, provide graceful fallbacks, use assert() for dev-time checks, and log errors appropriately in production. 
Ensure cleanup: free nodes properly, avoid dangling references, and release/stop resources in _exit_tree() when relevant.