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.
Python agent-skillsai-agentsantigravityawesome-listclaude-codeclinecodexcursorgame-devgame-developmentgamedevgemini-cligithub-copilotgodotkirooh-my-piskillsunityunrealwindsurf
fix(unity): add verified physics, navmesh and tilemap gotchas
Kiro Crew77c2600e3fe3
diff --git a/skills/unity/unity-build-pipeline/SKILL.md b/skills/unity/unity-build-pipeline/SKILL.mdindex 01b5241..a1cd06a 100644--- a/skills/unity/unity-build-pipeline/SKILL.md+++ b/skills/unity/unity-build-pipeline/SKILL.md@@ -32,7 +32,10 @@ platform-NDA territory. Storefront submission → `steam-publish` / `itch-publis(`BuildTarget` / `EditorUserBuildSettings`).3. **Choose the scripting backend** (Player Settings): **Mono** (fast iteration, desktop) vs**IL2CPP** (AOT C++; required for many platforms, better perf, harder to reverse). IL2CPP- needs the platform's C++ toolchain installed.+ needs the platform's C++ toolchain installed. (Forward note: Unity is developing a+ **CoreCLR** backend as a modern .NET runtime successor to Mono, but it is *experimental*,+ desktop-only, and not production-ready as of Unity 6.7 — so for 6.3 LTS the choice stays+ Mono vs IL2CPP.)4. **Tune size/perf:** set Managed Stripping Level (Disabled → Minimal → Low → Medium → High)and protect reflection-only code with a `link.xml`. Set Quality Settings per platform.5. **Script the build** with `BuildPipeline.BuildPlayer(BuildPlayerOptions)` and **inspect the@@ -114,7 +117,9 @@ Unity -batchmode -quit -nographics \argument parsing, exit codes) and an Addressables content-build call, read`references/ci-build-script.md`.- Primary docs: `ScriptReference/BuildPipeline.BuildPlayer`, Unity Manual build sections- (player settings, managed code stripping).+ (player settings, managed code stripping). For the forward-looking CoreCLR backend, see the+ experimental note at+ `https://docs.unity3d.com/6000.7/Documentation/Manual/scripting-backends-coreclr.html`.## Related skillsdiff --git a/skills/unity/unity-navmesh/SKILL.md b/skills/unity/unity-navmesh/SKILL.mdindex cb39623..2c55a7b 100644--- a/skills/unity/unity-navmesh/SKILL.md+++ b/skills/unity/unity-navmesh/SKILL.md@@ -102,6 +102,16 @@ public void RebuildNav() => surface.BuildNavMesh();// navmesh so agents route around it; remove/disable it to reopen the path — no re-bake needed.```+### 5. Connect separate mesh pieces with a NavMeshLink (jumps, doors, gaps)++```csharp+// Two baked surfaces that don't touch (a ledge and the floor below, two platforms across a+// gap) are separate islands — an agent can't path between them. Add Component > Navigation >+// NavMesh Link to bridge them: assign Start/End Transforms, set Width (0 = point-to-point),+// and toggle Bidirectional for one-way vs two-way. NavMeshLink lives in Unity.AI.Navigation.+// It replaces the deprecated built-in OffMeshLink (see pitfalls).+```+## Pitfalls- **Looking for the Navigation window** — it no longer exists in Unity 6. Use the AI Navigation@@ -116,11 +126,23 @@ public void RebuildNav() => surface.BuildNavMesh();type, it gets stuck in gaps or floats; keep them consistent.- **Agents jitter against each other** — tune `avoidancePriority` and quality, or use anobstacle for truly static blockers rather than relying on agent avoidance.+- **Reaching for `OffMeshLink`** — the built-in `OffMeshLink` component is **deprecated** in+ AI Navigation 2.0 and can no longer be added from the Add Component menu. Use a+ **`NavMeshLink`** (from the package, `Unity.AI.Navigation`) instead — it adds Transform-based+ endpoints and a runtime `activated` property. Migrate any existing `OffMeshLink`s.+- **`CalculatePath` returns `PathPartial`** — the destination sits on a *different* baked+ island than the agent (a gap the mesh doesn't cross). Bridge the two with a `NavMeshLink`+ (pattern 5) or extend the geometry so one surface covers both; a partial path only reaches+ the near edge.## References- Primary docs: AI Navigation package manual- (`https://docs.unity3d.com/Packages/[email protected]/manual/index.html`) and+ (`https://docs.unity3d.com/Packages/[email protected]/manual/index.html`),+ the `NavMeshLink` page+ (`https://docs.unity3d.com/Packages/[email protected]/manual/NavMeshLink.html`)+ and its "What's new" note on the `OffMeshLink` deprecation+ (`https://docs.unity3d.com/Packages/[email protected]/manual/whats-new.html`), plus`ScriptReference/AI.NavMeshAgent`, `ScriptReference/AI.NavMesh`.## Related skillsdiff --git a/skills/unity/unity-physics/SKILL.md b/skills/unity/unity-physics/SKILL.mdindex 402ca1e..227a4d3 100644--- a/skills/unity/unity-physics/SKILL.md+++ b/skills/unity/unity-physics/SKILL.md@@ -118,15 +118,35 @@ private void FixedUpdate() => _rb.MovePosition(_rb.position + Vector3.right * (2- **`Rigidbody.velocity` doesn't exist in Unity 6.3 LTS** — use `linearVelocity` (and`angularVelocity` is unchanged).- **Setting `transform.position` on a dynamic Rigidbody** — teleports it, skips collision.- Use `MovePosition` (kinematic/interpolated) or apply forces.+ Use `MovePosition` (kinematic/interpolated) or apply forces. If you *do* write the transform,+ physics queries (`Raycast`, `OverlapSphere`) see the old position until the next physics step+ — call `Physics.SyncTransforms()` once before a same-frame query, never every frame.+- **`OnCollisionEnter` never fires on a `CharacterController`** — `CharacterController.Move`+ bypasses the Rigidbody system; it reports hits via `OnControllerColliderHit(ControllerColliderHit)`+ instead. Don't add a Rigidbody to "fix" it — the two are mutually exclusive movement modes.+- **`Physics.Raycast` ignores triggers by default** — a ray won't report a trigger collider+ unless you pass `QueryTriggerInteraction.Collide` (or flip the global `Physics.queriesHitTriggers`+ / Project Settings → Physics → Queries Hit Triggers). It also returns `false` when the ray+ origin starts *inside* the target collider.+- **A resting Rigidbody stays put after you move or disable what it rests on** — below the+ Sleep Threshold a body goes to sleep. Collisions and `AddForce` wake it automatically, but+ moving a *static* collider (no Rigidbody) via its Transform may not, so the crate hangs in+ mid-air when the floor slides away. Call `Rigidbody.WakeUp()` on the affected bodies.- **Applying forces in `Update`** — frame-rate-dependent and jittery. Physics goes in`FixedUpdate`.- **Trigger callbacks never fire** — triggers need a `Rigidbody` on at least one of the twocolliders, and both colliders enabled; two static triggers don't report overlaps.-- **Fast objects pass through walls (tunnelling)** — set the Rigidbody's Collision Detection- to `Continuous` (or `Continuous Dynamic`) for bullets/fast movers.+- **Fast objects pass through walls (tunnelling)** — raise the Rigidbody's Collision Detection+ from `Discrete`. Note `Continuous` sweeps against **static colliders only** (it falls back to+ Discrete against other dynamic bodies); `Continuous Dynamic` also sweeps against other+ continuous dynamic bodies; `Continuous Speculative` works against everything and is cheaper.+ For bullets, also consider a `SphereCast`/`Raycast` along the trajectory instead of a collider.- **Non-uniform-scaled `MeshCollider`s or scaled colliders** misbehave; prefer primitivecolliders and keep scale uniform.+- **A concave `MeshCollider` on a moving body** — Mesh colliders are concave by default, and+ concave ones can only be static or kinematic; two concave colliders never collide at all.+ For a dynamic Rigidbody enable **Convex** on the MeshCollider, or build a compound collider+ from primitives.- **Everything collides with everything** — wasted cost; assign layers and prune the LayerCollision Matrix.@@ -136,7 +156,11 @@ private void FixedUpdate() => _rb.MovePosition(_rb.position + Vector3.right * (2joints (`FixedJoint`, `HingeJoint`, `ConfigurableJoint`, breakable joints), read`references/raycasting-and-joints.md`.- Primary docs: Unity Manual "Physics" section and `ScriptReference/Rigidbody`,- `ScriptReference/Physics.Raycast`.+ `ScriptReference/Physics.Raycast`. For the added gotchas: `ScriptReference/CollisionDetectionMode`,+ `ScriptReference/Physics-queriesHitTriggers`, `ScriptReference/MonoBehaviour.OnControllerColliderHit`,+ `ScriptReference/Physics.SyncTransforms`, `ScriptReference/Rigidbody.WakeUp`, and the Manual+ pages "Introduction to rigid body physics" (sleeping) and "Introduction to Mesh colliders"+ (concave vs convex).## Related skillsdiff --git a/skills/unity/unity-tilemap-2d/SKILL.md b/skills/unity/unity-tilemap-2d/SKILL.mdindex 30c0748..34d2fe6 100644--- a/skills/unity/unity-tilemap-2d/SKILL.md+++ b/skills/unity/unity-tilemap-2d/SKILL.md@@ -29,7 +29,8 @@ moves over the tiles → `platformer` / `unity-physics`.## Core workflow-1. **Create the grid:** GameObject → 2D Object → Tilemap → Rectangular. This makes a `Grid`+1. **Create the grid:** GameObject → 2D Object → Tilemap → Rectangular (the `Grid`'s **Cell+ Layout** also offers Hexagonal and Isometric for hex/iso levels). This makes a `Grid`with a child `Tilemap` (+ `TilemapRenderer`). Use one Tilemap per layer (background,ground, foreground) and set each renderer's sorting.2. **Open the Tile Palette** (Window → 2D → Tile Palette), drag in a sliced sprite sheet to@@ -111,8 +112,9 @@ tilemap.RefreshTile(cell); // re-evaluate just this cell's rule/animated nei- Primary docs: Unity Manual "Tilemaps"(`https://docs.unity3d.com/Manual/tilemaps/work-with-tilemaps/tilemap-reference.html`),`ScriptReference/Tilemaps.Tilemap`, and the 2D Tilemap Extras package manual- (`https://docs.unity3d.com/Packages/[email protected]/manual/index.html`) for- Rule Tiles.+ (`https://docs.unity3d.com/Packages/[email protected]/manual/index.html`) for+ Rule Tiles. (`@6.0` is the version that ships with Unity 6.3 LTS; the old `@1.6` docs are+ for Unity 2021-era projects.)## Related skills