/godot-export:godot-exportfrom godot-export
Godot 4 export and builds. Export templates, export_presets.cfg, headless CLI exports (--export-release, --export-pack), Web threads and COOP/COEP, Android keystores and AAB, iOS and macOS signing, dedicated-server builds, PCK patches, CI export jobs. Use for "build for Windows/Web/Android/iOS" or export errors.
Ships in godot-export. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn a Godot project into platform builds from the editor, the CLI or CI. Written for Godot 4.x, checked against 4.7. Version-gated facts are tagged inline (4.5+); per-minor changes live in the godot skill's version notes.
Not for: uploading to Steam or itch.io (steamcmd, butler, depots, store pages; game-publish); the networking code of a server (godot-multiplayer); C# project and .csproj setup (godot-csharp); writing shaders (godot-shaders); running tests in CI (godot-testing).
config/features in project.godot (and the renderer: Web supports only Compatibility; C# projects can't export to Web).export_presets.cfg: preset name=, platform=, export_path=, filters, [preset.N.options]. Confidential options (keystore and codesign passwords, the encryption key) live in .godot/export_credentials.cfg, which is not committed, so a fresh clone or CI runner lacks them; supply them through environment variables.godot on PATH, a GODOT env var, or the CI setup step). Exports need an editor build, not an export template, and installed templates of exactly the same version, including -stable, -rc or .mono flavor.Install templates: Editor > Manage Export Templates > Download, or install the .tpz offline. In CI let the setup action install them.
Create presets in Project > Export (prefer the editor over hand-writing export_presets.cfg), set the export path, icons, features and resource filters, and commit export_presets.cfg.
Export:
mkdir -p build/linux # the target directory must already exist
godot --headless --path . --export-release "Linux" build/linux/game.x86_64
godot --headless --path . --export-debug "Windows Desktop" build/win/game.exe
godot --headless --path . --export-pack "Linux" build/game.pck # .pck or .zip by extension
The preset argument is the exact name= (case- and space-sensitive; quote names with spaces). A relative output path is relative to the directory holding project.godot, not the shell's cwd. On a fresh checkout, export implies an import pass; run godot --headless --path . --import first when you want import errors separated from export errors.
Check the result: the command's exit code, that the file exists, and a smoke run of the build (./build/linux/game.x86_64 --headless --quit-after 300 for a non-interactive start; --quit-after counts frames).
Full flag list, preset structure, feature tags, PCK patches, encryption and desktop platform options: references/presets-and-cli.md. Android and iOS: references/mobile.md. GitHub Actions matrix, version injection and secrets: references/ci.md.
.exe icon and version metadata natively from application/* preset options, so drop any rcedit step. Code signing uses SignTool on Windows or osslsigncode elsewhere (GODOT_WINDOWS_CODESIGN_* env vars).codesign on a Mac or rcodesign from Linux and Windows, notarize with notarytool or rcodesign, then staple. "Built-in (ad-hoc only)" signing helps local testing only. A .app exported from Windows loses its executable bit; finish it on macOS or Linux.Linux (the old Linux/X11 name is 3.x; some docs examples still show it). chmod +x the binary when the archive step loses permissions.variant/thread_support) or Extensions Support requires cross-origin isolation: Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp. If the host can't send them, the PWA option Ensure Cross Origin Isolation Headers injects them through a service worker. Serve over HTTP(S), never file://; keep index.html and don't rename exported files. Web audio defaults to Sample playback (no audio effects).dedicated_server feature tag and forces headless. Run it on an export template binary, not the editor. Detect at runtime with OS.has_feature("dedicated_server"), or DisplayServer.get_name() == "headless" when started with --headless.func _ready() -> void:
if OS.has_feature("dedicated_server"):
_start_server()
elif OS.has_feature("web"):
_apply_web_settings()
if OS.has_feature("demo"): # a custom tag added in the preset's Features
_limit_content()
Feature tags are case-sensitive. Custom tags apply only to exported builds, not to editor runs. res:// is read-only in exports; write saves and settings to user://.
[runnable_presets] section of export_presets.cfg (old files still load; expect runnable= lines to vanish on save). Android drops built-in OBB expansion files (use AAB with Play Asset Delivery, or the separate OBB plugin). An APK or AAB can be a base pack for patch PCKs. Sparse (patch) PCKs can encrypt their index. PCKPacker.add_file_from_buffer() packs bytes without a temp file. Use Gradle Build is no longer experimental.Per-preset Shader Baker > Enabled pre-compiles shaders into the PCK for faster first launch, most on Direct3D 12 and Metal. Limits that bite in CI:
--headless, because it needs the GPU. Baking in CI needs a runner with a GPU and a display server (for example a virtual display), exporting without --headless.name= exactly; list names with grep '^name=' export_presets.cfg..json, .txt, .csv) are excluded unless matched by the preset's "Filters to export non-resource files" (for example *.json). Files loaded only by path string may be excluded under "export selected scenes" mode.mkdir -p first..godot/export_credentials.cfg; set the GODOT_* environment variables instead (Android keystore, Windows codesign, GODOT_SCRIPT_ENCRYPTION_KEY).--export-debug builds include the debugger and debug checks; ship --export-release.export_presets.cfg layout, feature tags, PCK patches and DLC, encryption, desktop options and the dedicated-server preset.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin godot-export