Godot Gdscript logo

Godot Gdscript

Community
EL4CTEO
godot-gdscript

Write correct, statically typed GDScript for Godot 4.7 - script layout, typing (typed arrays and dictionaries), signals and await, setters, @export annotations, @abstract and variadic functions, lambdas, match, static members, error fixes, plus a real-engine compile check of all .gd files. Use when writing, reviewing or fixing any .gd file.

Overview

PublisherEL4CTEO
Repositorygodot-skills
Skill namegodot-gdscript
Stars
60
Forks
6
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by EL4CTEO on GitHub. Read the source before you install it.

Installation

Install the Godot Gdscript AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-gdscript
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-gdscript .claude/skills/godot-gdscript
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot Gdscript in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Godot Gdscript on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Godot Gdscript is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

GDScript (4.7)

Check after every edit: python scripts/gd_check.py [paths] compiles every .gd file with the real engine and returns {file, line, msg} errors. Autoloads and class_names resolve like they do at runtime. Look up any engine API with ../godot-core/scripts/api_lookup.py before you use it.

Script layout (official style guide order)

@tool / @icon / @abstract  →  class_name  →  extends  →  ## doc comment
signals → enums → constants → static vars → @export vars → vars → @onready vars
_static_init → _init → _enter_tree → _ready → _process/_physics_process → other virtuals
public methods → _private methods → inner classes

Use snake_case for files, functions and variables, PascalCase for classes and nodes, CONSTANT_CASE for constants and enum values. Indent with tabs. Prefix private members with _.

Typing rules (always typed: safer, and up to ~2x faster)

  • var speed := 5.0 infers the type. Use var target: Node3D when there's no initializer. Use : Variant only on purpose.
  • Typed containers: Array[Enemy], Dictionary[StringName, int] (4.4+). Typed arrays reject wrong element types at runtime.
  • Give every function a return type, including -> void. In 4.7, an override of a typed-return method must return on every path.
  • node as Enemy returns null when the cast fails, for objects. is tests the type. Use is_instance_valid(x) after any await that might outlive x.
  • Enforce typing project-wide with debug/gdscript/warnings/untyped_declaration = 2 (Error). Keep inference_on_variant at its default of Error.
  • int / int is integer division. Write float(a) / b when you mean a fraction.

Signals and await

  • Declare typed signals: signal health_changed(current: int, maximum: int). Emit with health_changed.emit(hp, max_hp).
  • Connect a Callable: button.pressed.connect(_on_pressed). Add arguments with .bind(id) and one-shot behavior with connect(f, CONNECT_ONE_SHOT). Avoid string forms like connect("x", self, "y").
  • Connections made in code don't need manual cleanup when either object is freed. Disconnect explicitly only when you'll reconnect, or when the source is a long-lived autoload and the target is a lambda capturing a freed node.
  • await sig suspends the function. The caller gets control back immediately unless it also awaits. Any function containing await is a coroutine, so the caller must await it to get its return value.
  • Prefer await get_tree().create_timer(0.5).timeout and await get_tree().process_frame/physics_frame to busy waits.
  • "Call down, signal up": parents call methods on children, children emit signals. Cross-scene events go through an autoload event bus (see godot-architecture).

Language features you should use

  • Properties: var hp: int = 10: followed by an indented set(value): hp = clampi(value, 0, max_hp), or set = _set_hp.
  • @export variants (check them with api_lookup.py @export_range): @export_range(0, 100, 1, "or_greater"), @export_enum, @export_flags_3d_physics, @export_file("*.json"), @export_group("Movement"), @export_subgroup, @export_category, @export_storage, @export_custom, @export_tool_button("Bake", "Bake") (4.4+).
  • @onready var label: Label = %ScoreLabel uses a scene-unique name (%). That's safer than long $A/B/C paths.
  • @abstract class_name Weapon with @abstract func fire() -> void (4.5+). Variadic arguments: func log_all(...parts: Array) -> void (4.5+).
  • Lambdas: var double := func(x: int) -> int: return x * 2. They capture locals by value. Mutate shared state through an Array or Dictionary, or through a member variable.
  • match handles literals, [a, b, ..], {"k": v}, var x bindings and when guards (4.3+).
  • static var/static func, const PRELOADED := preload("res://x.tscn"), &"string_name", ^"Node/Path".
  • Doc comments: ## above members (shown in the editor's help and by --gdscript-docs).

Pitfalls (with fixes)

SymptomCause, then fix
Invalid access ... on a base object of type 'null instance'Wrong node path, or used before _ready. Use @onready/%Unique, and get_node_or_null when a node is optional.
previously freedAn await or deferred call outlived the node. Check is_instance_valid() or is_inside_tree().
Physics or tree changes during a callback error outUse call_deferred("add_child", n), set_deferred("disabled", true) or queue_free().
Cyclic reference / Could not resolve classclass_name cycles between preloads. Use type hints with load() at runtime, or split the shared type into its own script.
A signal callback never firesConnected in _ready of a node that isn't in the tree yet, signature mismatch, or a typo in the signal name. Typed sig.connect() catches typos at parse time.
Exported var resetsValue set in _init gets overwritten by the scene file. Initialize in the declaration or in _ready.
Mixed tabs and spacesTabs only. Godot rejects mixed indentation.

Deeper patterns, all compiled by the test suite: references/patterns.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Godot Gdscript AI skill do?

Write correct, statically typed GDScript for Godot 4.7 - script layout, typing (typed arrays and dictionaries), signals and await, setters, @export annotations, @abstract and variadic functions, lambdas, match, static members, error fixes, plus a real-engine compile check of all .gd files. Use when writing, reviewing or fixing any .gd file.

Why use Godot Gdscript on TypingMind?

Because you install it once and use it with any model. Godot Gdscript is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Godot Gdscript in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-gdscript. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Godot Gdscript?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Godot Gdscript?

As many as you like. As long as a model supports skills, you can use Godot Gdscript with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Godot Gdscript AI skill free?

Yes. It is published on GitHub by EL4CTEO under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇