Godot Web Export
Use this skill for Web-specific export, deployment, and runtime troubleshooting.
1) Mandatory Web DoD
Run in order:
make export-webmake web-smoke
If repository lacks these targets, run equivalent commands and document mapping. Use template script if needed:
assets/templates/tools/web_smoke_test.sh
2) Thread Decision (Mandatory)
Default to Use Threads = off.
Enable threads only when deployment guarantees secure context plus COOP/COEP headers, or verified PWA workaround behavior.
See references/10-threads-decision.md.
3) Deployment Contract
- Confirm wasm MIME (
application/wasm). - Configure COOP/COEP only when threads are enabled.
- Configure compression for wasm/pck/js where supported.
- Apply explicit cache and versioning policy for predictable rollouts and rollback.
See:
references/20-server-headers.mdreferences/30-loading-cache-versioning.md
4) Incident Playbook
When black-screen, no input, or no audio appears:
- Check console/network evidence
- Check threads/header state
- Check asset paths and custom shell mismatches
- Output minimal reproducible URL and browser version
See references/90-web-debug-playbook.md.
5) Handoff Requirements
Always provide:
- Export command and preset used
- Smoke/deploy verification commands and results
- Header/MIME/cache decisions applied
- Residual compatibility risks
6) Escalate to Other Subskills
- Use
$godot-corefor non-Web architecture and gameplay refactor. - Use
$godot-mini-gamefor mini-game constraints and release criteria.
Resource Map
references/10-threads-decision.md: thread enablement decision gate.references/20-server-headers.md: MIME/header/compression checks.references/30-loading-cache-versioning.md: cache and rollout policy.references/90-web-debug-playbook.md: incident diagnosis checklist.assets/templates/tools/web_smoke_test.sh: local web smoke script template.