Skip to content

77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.

fix(godot): correct Linux preset name, web thread defaults and PCK encryption requirements

Kiro Crewc9ab4edbd1cc
diff --git a/skills/godot/godot-export/SKILL.md b/skills/godot/godot-export/SKILL.md
index ea9c5da..7f89620 100644
--- a/skills/godot/godot-export/SKILL.md
+++ b/skills/godot/godot-export/SKILL.md
@@ -26,15 +26,17 @@ networking code of a server → `godot-multiplayer` (this skill covers building
1. **Install export templates** matching your engine version: Editor menu >
*Manage Export Templates* (download), or install the `.tpz` offline. Versions must
- match the editor exactly.
+ match the editor exactly. Since 4.7 the downloader can fetch templates for a single
+ platform or architecture instead of the full set.
2. **Add export presets** in *Project > Export*: pick a platform (Windows Desktop, macOS,
Linux, Web, Android, iOS), set the export path, icons, features, and resource
include/exclude filters. Presets are saved to `export_presets.cfg`.
3. **Export from the editor** with *Export Project* (release) or *Export PCK/ZIP*.
4. **Or export headless from the CLI** for automation/CI using
`--export-release "<preset name>" <output path>`.
-5. **Per platform:** Web needs cross-origin isolation (COOP/COEP) for threads; Android
- needs the SDK/keystore; macOS/iOS need signing for distribution.
+5. **Per platform:** Web needs cross-origin isolation (COOP/COEP) only if the preset's
+ *Thread Support* is on (off by default); Android needs the SDK/keystore; macOS/iOS need
+ signing for distribution.
6. **Smoke-test the build** on the target before shipping — exported builds use `res://`
read-only; write to `user://`.
@@ -46,14 +48,17 @@ networking code of a server → `godot-multiplayer` (this skill covers building
# Preset name must match exactly what's in Project > Export (quote it).
# Run from the project directory (where project.godot lives).
godot --headless --export-release "Windows Desktop" build/windows/game.exe
-godot --headless --export-release "Linux/X11" build/linux/game.x86_64
+godot --headless --export-release "Linux" build/linux/game.x86_64
godot --headless --export-release "Web" build/web/index.html
# Debug build (includes debug symbols / remote debug):
godot --headless --export-debug "Windows Desktop" build/windows/game_debug.exe
# Export only the data pack (no executable):
-godot --headless --export-pack "Linux/X11" build/game.pck
+godot --headless --export-pack "Linux" build/game.pck
+
+# Export only files changed since the given base pack(s):
+godot --headless --export-patch "Linux" build/patch1.pck --patches build/game.pck
```
### 2. Run a project headless (dedicated server / tests)
@@ -94,11 +99,12 @@ func _ready() -> void:
beta/rc). Re-download via *Manage Export Templates* after upgrading Godot.
- **Preset name mismatch in CLI.** `--export-release "Windows"` fails if the preset is
named `"Windows Desktop"`. Names are case- and space-sensitive; quote them.
-- **Web build shows a blank page / threads error.** HTML5 builds that use threads require
- the server to send `Cross-Origin-Opener-Policy: same-origin` and
- `Cross-Origin-Embedder-Policy: require-corp` (cross-origin isolation for
+- **Web build shows a blank page / threads error.** Builds with the preset's *Thread
+ Support* option enabled require the server to send
+ `Cross-Origin-Opener-Policy: same-origin` and `Cross-Origin-Embedder-Policy: require-corp` (cross-origin isolation for
`SharedArrayBuffer`). Must be served over HTTP(S), not opened as a `file://`. itch.io has
- a "SharedArrayBuffer support" toggle for this.
+ a "SharedArrayBuffer support" toggle for this. If the host cannot set headers (GitHub
+ Pages), leave *Thread Support* off — the default since 4.3.
- **Writing to `res://` at runtime fails** in exports (read-only, packed). Use `user://`.
- **Missing resources in the build.** Non-resource files (e.g. external `.json`, `.txt`)
are not auto-included — add them via the preset's *Resources > Filters to export
diff --git a/skills/godot/godot-export/references/presets-and-cli.md b/skills/godot/godot-export/references/presets-and-cli.md
index 7ccbed2..de926b4 100644
--- a/skills/godot/godot-export/references/presets-and-cli.md
+++ b/skills/godot/godot-export/references/presets-and-cli.md
@@ -35,8 +35,11 @@ godot --headless run without a window/GPU
--path <dir> project directory (where project.godot is)
--export-release "<preset>" <out> export a release build
--export-debug "<preset>" <out> export a debug build
- --export-pack "<preset>" <out> export only the .pck/.zip data
- --quit-after <frames|seconds> auto-quit (smoke tests)
+ --export-pack "<preset>" <out> export only the .pck/.zip data (extension decides)
+ --export-patch "<preset>" <out> export only files changed vs. the base packs
+ --patches <a.pck,b.pck> base packs for --export-patch (comma-separated)
+ --install-android-build-template install the Gradle template before exporting
+ --quit-after <frames> auto-quit after N main-loop iterations (smoke tests)
--main-pack <file.pck> run a specific data pack
--verbose detailed logging
-- <args> pass args to your game (OS.get_cmdline_user_args())
@@ -55,13 +58,16 @@ Add tags under a preset's *Features* (or `custom_features`) and branch at runtim
## Web (HTML5) specifics
- Output is `index.html` + `.js`/`.wasm`/`.pck`. Serve over HTTP(S).
-- Threaded builds need **cross-origin isolation**:
+- *Thread Support* (`variant/thread_support`) is **off by default** since 4.3; a
+ single-threaded build runs on any static host. Threaded builds need **cross-origin
+ isolation**:
- `Cross-Origin-Opener-Policy: same-origin`
- `Cross-Origin-Embedder-Policy: require-corp`
Without these, `SharedArrayBuffer` is unavailable and the engine errors or falls back.
- itch.io: enable "This file will be played in the browser" and the SharedArrayBuffer
- support option. GitHub Pages can't set the headers — use a host that can, or a service
- worker shim.
+ support option. GitHub Pages can't set the headers — keep threads off, use a host that
+ can, or enable the PWA option *Ensure Cross Origin Isolation Headers*, whose service
+ worker adds them.
- Reduce size: enable compression, trim unused features, and consider the
"Extensions Support" toggle only if needed.
@@ -88,11 +94,17 @@ Export extra content as a separate `.pck` and load it at runtime:
var ok := ProjectSettings.load_resource_pack("user://dlc1.pck") # mounts into res://
```
-A patch pack can override or add files. Use `--export-pack` to produce packs in CI.
+A patch pack can override or add files. Use `--export-pack` to produce packs in CI, or
+`--export-patch "<preset>" out.pck --patches base.pck` to pack only files that changed since
+the base pack.
## Encryption
-Set a 64-hex-char script encryption key (Project > Export, or `GODOT_SCRIPT_ENCRYPTION_KEY`
-env for CLI) and enable "Encrypt Exported PCK". Note: client-side encryption deters casual
+PCK encryption does **not** work with the official templates: the game fails to load its
+data at startup. You must compile your own export templates with the same key in the
+`SCRIPT_AES256_ENCRYPTION_KEY` environment variable and select them as custom templates.
+Then set the 64-hex-char key in the preset's *Encryption* tab (or
+`GODOT_SCRIPT_ENCRYPTION_KEY` for CLI exports), enable "Encrypt Exported PCK", and add
+include filters — with empty filters nothing is encrypted. Client-side encryption deters casual
inspection but cannot fully protect assets on a user's machine — don't store true secrets
in the build.