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): state real C# export targets and the .NET 9 requirement for Android

Kiro Crew4b3c26d98e73
diff --git a/skills/godot/godot-csharp/SKILL.md b/skills/godot/godot-csharp/SKILL.md
index 0f30f05..30103b1 100644
--- a/skills/godot/godot-csharp/SKILL.md
+++ b/skills/godot/godot-csharp/SKILL.md
@@ -24,7 +24,8 @@ the **Godot .NET build** + the .NET SDK installed; the standard build can't run
## Core workflow
-1. **Use the Godot .NET editor build** and install the matching .NET 8 SDK. Creating the first C#
+1. **Use the Godot .NET editor build** and install a .NET SDK: 8 or later, and 9 or later if
+ you export to Android. Creating the first C#
script generates a `.csproj`/`.sln`. Build with the editor or `dotnet build`.
2. **Every node script is a `partial` class** extending a Godot type (the source generator
relies on `partial`). The file/class name should match the node script.
@@ -148,13 +149,14 @@ private void OnDied() => GD.Print("entity died");
- **Value-type structs.** `Vector2`, `Color`, `Transform2D` are structs — mutate a local
copy (`var v = Velocity; v.X = ...; Velocity = v;`); editing `Velocity.X` directly won't
compile/persist.
-- **Needs the .NET build + SDK.** The non-.NET editor can't run C#; mismatched/missing
- .NET SDK causes build failures. Godot 4.7 targets .NET 8; check current platform
- export notes because Android and other AOT targets can require newer SDK tooling.
+- **Needs the .NET build + SDK.** The non-.NET editor can't run C#; a missing .NET SDK
+ causes build failures. Godot 4.7 projects target `net8.0`, but the generated `.csproj`
+ switches to `net9.0` for Android, so Android exports fail without the .NET 9 SDK.
- **`QueueFree()` vs `Free()`** — same rules as GDScript; prefer `QueueFree()`. Disposed
objects throw `ObjectDisposedException` if used after freeing.
-- **Export to some platforms differs for .NET** (e.g. extra steps for web/mobile); check
- the .NET export notes for your target.
+- **C# projects cannot export to the web** in Godot 4 — keep web builds in GDScript.
+ Android and iOS exports are supported but experimental, and iOS can only be exported
+ from macOS.
## References
diff --git a/skills/godot/godot-csharp/references/csharp-setup-and-interop.md b/skills/godot/godot-csharp/references/csharp-setup-and-interop.md
index a75fb34..d249478 100644
--- a/skills/godot/godot-csharp/references/csharp-setup-and-interop.md
+++ b/skills/godot/godot-csharp/references/csharp-setup-and-interop.md
@@ -5,9 +5,12 @@ Depth companion to `godot-csharp`.
## Project setup
- Use the **Godot .NET** editor build (labeled ".NET"/"Mono").
-- Install the matching **.NET SDK** (Godot 4.7 targets **.NET 8**).
-- The first C# script creates `<Project>.csproj` and `<Project>.sln`. The `.csproj` sets
- `<TargetFramework>net8.0</TargetFramework>` and references `GodotSharp`.
+- Install a **.NET SDK**: Godot 4.7 needs **.NET 8** or later, and **.NET 9** or later to
+ export to Android.
+- The first C# script creates `<Project>.csproj` and `<Project>.sln`. The `.csproj` uses
+ `<Project Sdk="Godot.NET.Sdk/4.7.x">` (which brings in the GodotSharp API), sets
+ `<TargetFramework>net8.0</TargetFramework>`, and adds a second `net9.0` value that applies
+ only when `GodotTargetPlatform` is `android`. Keep that condition when editing the file.
- Build via the editor (it builds on play) or `dotnet build`. Editor Settings let you pick
an external editor (VS, VS Code, Rider).
- Add NuGet packages by editing the `.csproj` `<ItemGroup>` and rebuilding.
@@ -101,7 +104,9 @@ GDScript via `Call`/`Get`/`Set` and connects with `Callable.From(method)` or
## Build/export notes
-- Release exports compile C# ahead-of-time per target. Some platforms (web, mobile) have
- extra .NET export requirements/steps — check the current .NET export docs for your
- target before shipping.
+- Supported export targets: Windows, Linux, macOS, plus Android and iOS (both
+ experimental). Desktop exports ship the .NET runtime with the game; Android uses the
+ Mono runtime; iOS is compiled with NativeAOT and must be exported from a Mac.
+- **Web is not supported** for C# projects in Godot 4 — the export fails. Use GDScript
+ for a web build.
- Keep generated `obj/`, `bin/`, and `.godot/` out of version control (`.gitignore`).