Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Godot Export?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tipoli5890-godot-export)
---
name: godot-export
description: >-
Ship a Godot game: export presets, export templates, desktop, web and mobile builds, exports in
CI, pck and patch files, signing.
---
# godot-export — presets, templates and builds
An export needs a preset and the export templates of the exact engine version; without them it
fails with exit 1, while `--export-pack` still works. Lint the presets before Godot runs, prove
the content with a pack, and treat everything that needs a template, a signing identity or a
device as unverified until it has run on the target.
## Load what the situation needs
| The situation | Read |
|---|---|
| A new project's first presets; one per platform | `templates/export_presets.cfg`, then `reference/presets.md` |
| What a key in `export_presets.cfg` does; an export that prints ERROR and exits 0 | `reference/presets.md` |
| `No export template found at the expected path`; which template files a preset needs | `reference/templates.md` |
| Checking an export's content without templates; a `.pck` or a patch | the pack check below, `reference/templates.md` |
| A web build: threads, headers, serving | `reference/web.md` |
| Exports in CI; signing passwords | `reference/ci.md`, `reference/presets.md` → "Secrets" |
| Project settings before the first export (renderer, features) | `godot-new-project` |
| A C# project's export | `godot-csharp` |
| Flags and running the binary in general | `godot-cli` |
## The three checks
```bash
python3 scripts/export_check.py lint . # no Godot
python3 scripts/export_check.py pack . --preset Linux --out build/courier_run.pck --expect COURIER_READY
python3 scripts/export_check.py templates . --preset Linux # what a real export lacks
```
| Check | Passes when | Fails on |
|---|---|---|
| `lint` | every preset numbered from 0, named once, on a known platform, with `export_filter`, `include_filter`, `exclude_filter` and a non-empty options section; no password in the file | each of those, printed as a `FAIL` line |
| `pack` | `--export-pack` exits 0 with no marker line, the pack is listed and run headless with `--main-pack`, every `--expect` line appears, every `--expect-file` is in it, no `--forbid-file` is | a marker line in the export or the run, a non-zero export, a missing line or file |
| `templates` | `--export-debug` (or `--release`) of the preset runs: the templates are installed | each template path the engine looks for, printed as `MISSING` |
Exit 0 pass, 2 fail, 3 nothing verified (no binary, a timeout, no sentinel), 1 usage. Every
Godot run is `--headless -l en` under a wall-clock timeout.
## What exits how
| Command | Result |
|---|---|
| `--export-release` / `--export-debug` without templates | exit 1, `No export template found at the expected path:` per file |
| a preset name that does not exist | exit 1, `Invalid export preset name`, and the presets it found |
| a preset missing `include_filter` (or `exclude_filter`, `export_filter`) | exit 0, an `ERROR:` line per missing key, every export |
| an empty `[preset.N.options]` section | exit 0, `ERROR: Cannot get keys from nonexistent section` |
| a platform name from Godot 3 (`"HTML5"`) | the preset is dropped without a message |
| `--export-pack` | exit 0 without templates: the project's data, no engine |
So an export is judged by its exit code **and** its marker lines.
## The template
`templates/export_presets.cfg` holds six presets, Linux, Windows, macOS, Web, Android and iOS,
each with the keys whose absence prints an error, `exclude_filter="addons/*, tests/*"` (editor
plugins' scripts are exported otherwise), an output under `build/<platform>/`, and the options a
first build of that platform sets (architecture, texture formats, identifiers, version codes).
The identifiers are placeholders (`com.example.courierrun`). Copy it to the project root, rename
the presets if the team prefers, and fill in the identifiers; keep `build/` in `.gitignore`.
## A pack is a content check, not a build
`--export-pack` writes the scenes, scripts and resources exactly as an export would: scenes
binary under `.godot/exported/` with a `.remap`, scripts as `.gdc`, `project.godot` as
`project.binary`. `export_check.py pack` runs it on the editor binary, so `OS.has_feature()` there
reports `editor` and not `template`: a path that branches on export features is not exercised.
Whether the exported binary starts on its target OS, GPU and display is only known by running it
there.
## Discipline
- **Lint before exporting.** The missing-key and empty-section errors exit 0.
- **Name presets and pass the name exactly**; `--export-release NAME PATH` with `PATH` relative
to the project and its folder already there.
- **Pin one engine version for editors, CI and templates.** The templates folder is named after
the exact version and status, and a neighbour release is not found.
- **No secrets in `export_presets.cfg`.** Passwords come from the CI environment.
- **Exclude what the game does not need**: `addons/*` for editor-only plugins, test folders,
source art.
- **Say what was not verified**: a real build, signing, notarisation, web and mobile runtime.
## Scope — what this skill does NOT do
| Not here | Go to |
|---|---|
| `project.godot`, the renderer, folders, git ignores | `godot-new-project` |
| C# builds and their export limits | `godot-csharp` |
| The command line, finding the binary, timeouts | `godot-cli` |
| Whether the game works before it is exported | `godot-verify` |