Update Godot Gdextension Interface
Developmentupdate-godot-gdextension-interfaceUpdate Godot Gdextension Interface is an Agent Skill for development published in the godot-go/godot-go repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Update Godot GDExtension C header files and json metadata.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/godot-go/godot-go/blob/HEAD/.pi/skills/update-godot-gdextension-interface/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/update-godot-gdextension-interface, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Run godot --version to determine the godot version:
% godot --version
4.5.1.stable.custom_build.f62fdbde1
Update godot_headers/ Files
Run make update_godot_headers_from_binary if the extension_api.json doesn't match the godot version:
...
"header": {
"version_major": 4,
"version_minor": 5,
"version_patch": 1,
"version_status": "stable",
"version_build": "custom_build",
"version_full_name": "Godot Engine v4.5.1.stable.custom_build",
"precision": "single"
},
...
This does 2 things
- GDExtension header file "gdextension_interface.h". This file is the base file required to implement a GDExtension.
- Generate a JSON dump of the Godot API for GDExtension bindings named "extension_api.json" in the current folder.
Generate Go Codegen wrapping the godot_headers files
Run make generate