godot-gdscript

Provide GDScript 4.x syntax reference for writing and reviewing Godot code.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/dragoscirjan/opencode-config --skill godot-gdscript-dragoscirjan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: godot-gdscript
Source: https://github.com/dragoscirjan/opencode-config/tree/main/skills/godot-gdscript
Command: npx skills add https://github.com/dragoscirjan/opencode-config --skill godot-gdscript-dragoscirjan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write, review, and troubleshoot Godot 4 GDScript without having to memorize language rules, engine conventions, or common API patterns.

Core Features & Use Cases

  • Syntax Reference: Covers identifiers, literals, operators, control flow, functions, classes, annotations, strings, arrays, dictionaries, and type checking.
  • Godot Patterns: Includes practical examples for signals, node references, animation, input handling, movement, navigation, tweening, file I/O, and custom drawing.
  • Use Cases: Ideal for checking whether GDScript code is valid, translating gameplay ideas into engine-ready scripts, and reviewing code for idiomatic Godot 4 usage.

Quick Start

Ask for a GDScript 4.x syntax check or a ready-to-use code example for the mechanic you are building.

Frequently Asked Questions about godot-gdscript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write type-safe GDScript 4.x syntax for nodes and signals?▼

GDScript 4.x syntax requires precise type checking for nodes and signals. You can write type-safe code by using strict typing for variables and connecting signals with specific callable patterns to ensure engine-ready gameplay scripts.

What is the correct way to define arrays and dictionaries in Godot 4?▼

In Godot 4, arrays and dictionaries are defined using literal brackets. You can enforce type-safe patterns by using typed arrays like `Array[int]` to ensure your data structures strictly contain expected values during gameplay and editor scripts.

How do I translate gameplay ideas into valid Godot 4 patterns?▼

Translate gameplay ideas into valid Godot 4 patterns by referencing common engine API examples for movement, input handling, and tweening. Check your code against idiomatic GDScript rules for node references and annotations to ensure valid execution.

Can I use GDScript for both gameplay mechanics and editor scripts?▼

Yes, GDScript supports both gameplay mechanics and editor scripts. The language provides annotations and engine patterns suitable for custom drawing, file I/O, and navigation, allowing you to build and extend functionality across the Godot 4 environment.

Why does my GDScript code fail type checking with engine API examples?▼

GDScript code fails type checking when strict types are mismatched with engine API examples. Review your identifiers, operators, and function signatures against Godot 4 language rules to ensure your classes and control flow are completely type-safe.