[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79NT18N9VDP8ABVPSKF88MF":3,"skill-same:01M79NT18N9VDP8ABVPSKF88MF":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M79NT18N9VDP8ABVPSKF88MF","unity-navmesh",null,"Add AI navigation in Unity 6: bake a NavMesh with the AI Navigation package (NavMeshSurface), move agents with NavMeshAgent.SetDestination, and handle dynamic obstacles. Use when setting up pathfinding, making an enemy chase the player, baking navigation, or when the user mentions NavMesh, NavMeshAgent, NavMeshSurface, NavMeshObstacle, or Unity pathfinding.","mistervaibhav\u002Fskills","mistervaibhav","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F41189028?v=4","01M79KACH05EG9FMM6DQVHAVK9","Vaibhav Singh","01M79KACJB3431Y8CFJQ02MTTM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funity-navmesh\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unity-navmesh\ndescription: >\n  Add AI navigation in Unity 6: bake a NavMesh with the AI Navigation package (NavMeshSurface),\n  move agents with NavMeshAgent.SetDestination, and handle dynamic obstacles. Use when setting\n  up pathfinding, making an enemy chase the player, baking navigation, or when the user\n  mentions NavMesh, NavMeshAgent, NavMeshSurface, NavMeshObstacle, or Unity pathfinding.\nlicense: Apache-2.0\ncompatibility: Unity 6 (6000.0 LTS); AI Navigation package 2.x (com.unity.ai.navigation); UnityEngine.AI runtime.\nmetadata:\n  engine: unity\n  category: unity\n  difficulty: intermediate\n---\n\n# Unity NavMesh (AI Navigation)\n\nGive NPCs pathfinding in Unity 6: bake walkable surfaces and move agents around obstacles.\nTargets **Unity 6 (6000.0 LTS)** with the **AI Navigation package 2.x**.\n\n> **Version trap (Unity 2022+\u002F6):** the old built-in **Navigation window** (Object\u002FBake tabs)\n> is gone. Baking is now **component-based** via the **AI Navigation package**\n> (`com.unity.ai.navigation`): add a **NavMeshSurface** to your level geometry and click\n> **Bake**. The *runtime* `NavMeshAgent`\u002F`NavMesh` API stays in built-in `UnityEngine.AI`.\n\n## When to use\n\n- Use when an agent needs to walk\u002Fchase\u002Fpatrol to a target, when baking a navigable surface,\n  adding dynamic blockers (`NavMeshObstacle`), or checking whether a destination is reachable.\n- Use when the project has the AI Navigation package, a `NavMeshSurface` component, or scripts\n  using `UnityEngine.AI.NavMeshAgent`.\n\n**When *not* to use:** the *decision* logic of when\u002Fwhere to move (FSMs, behaviour trees,\nsteering) → `game-ai` (this skill is the Unity movement\u002Fpathing mechanism). Force-driven or\nkinematic movement that isn't pathfinding → `unity-physics`.\n\n## Core workflow\n\n1. **Install the AI Navigation package** (Package Manager → `com.unity.ai.navigation`).\n2. **Bake a surface:** select the static level geometry, **Add Component → Navigation → NavMesh\n   Surface**, set the agent type\u002Farea settings, and click **Bake**. Re-bake whenever geometry,\n   `NavMeshModifier`s, or agent settings change.\n3. **Add a `NavMeshAgent`** to each moving NPC; its radius\u002Fheight\u002Fspeed must match the baked\n   agent type, and it must spawn *on* the baked mesh.\n4. **Drive it from script** with `SetDestination(targetPos)`; the agent steers and avoids other\n   agents automatically. Detect arrival with `remainingDistance`\u002F`pathPending`.\n5. **Handle dynamic blockers** with `NavMeshObstacle` (carving) so closed doors\u002Fcrates block\n   paths without a full re-bake.\n6. **Verify** with the AI Navigation overlay (the baked mesh is drawn in the Scene view) and by\n   watching agents path around obstacles to the goal; check `NavMeshPath.status` for\n   unreachable targets.\n\n## Patterns\n\n### 1. Chase\u002Fseek with a NavMeshAgent\n\n```csharp\nusing UnityEngine;\nusing UnityEngine.AI;\n\n[RequireComponent(typeof(NavMeshAgent))]\npublic class Chaser : MonoBehaviour\n{\n    [SerializeField] private Transform target;\n    private NavMeshAgent _agent;\n\n    private void Awake() => _agent = GetComponent\u003CNavMeshAgent>();\n\n    private void Update()\n    {\n        if (target) _agent.SetDestination(target.position);   \u002F\u002F re-path toward the target\n    }\n\n    \u002F\u002F Arrived? pathPending guards the first frame before a path exists.\n    private bool HasArrived() =>\n        !_agent.pathPending && _agent.remainingDistance \u003C= _agent.stoppingDistance;\n}\n```\n\n### 2. Check reachability before committing\n\n```csharp\nusing UnityEngine.AI;\n\npublic bool CanReach(NavMeshAgent agent, Vector3 destination)\n{\n    var path = new NavMeshPath();\n    agent.CalculatePath(destination, path);\n    return path.status == NavMeshPathStatus.PathComplete;   \u002F\u002F vs Partial \u002F Invalid\n}\n```\n\n### 3. Bake at runtime (for procedurally built or streamed levels)\n\n```csharp\nusing Unity.AI.Navigation;   \u002F\u002F the package namespace (NavMeshSurface)\n\n[SerializeField] private NavMeshSurface surface;\n\n\u002F\u002F After spawning level geometry, build the navmesh in code.\npublic void RebuildNav() => surface.BuildNavMesh();\n```\n\n### 4. Dynamic obstacle that carves the mesh\n\n```csharp\n\u002F\u002F Add a NavMeshObstacle (Carve = true) to a door\u002Fcrate. While present it cuts a hole in the\n\u002F\u002F navmesh so agents route around it; remove\u002Fdisable it to reopen the path — no re-bake needed.\n```\n\n## Pitfalls\n\n- **Looking for the Navigation window** — it no longer exists in Unity 6. Use the AI Navigation\n  package's `NavMeshSurface` component + Bake.\n- **Agent doesn't move \u002F warps to origin** — it isn't on the baked mesh, or no surface was\n  baked. Bake the surface and spawn the agent on it (`NavMesh.SamplePosition` to snap).\n- **Agent ignores new geometry** — the navmesh is baked; runtime-spawned obstacles need a\n  `NavMeshObstacle` (carving) or a `surface.BuildNavMesh()` re-bake.\n- **`SetDestination` every frame is wasteful** — for a slow-moving target, re-path on a timer\n  (e.g. every 0.2s) instead of each frame.\n- **Agent radius\u002Fheight mismatch** — if the `NavMeshAgent`'s size differs from the baked agent\n  type, it gets stuck in gaps or floats; keep them consistent.\n- **Agents jitter against each other** — tune `avoidancePriority` and quality, or use an\n  obstacle for truly static blockers rather than relying on agent avoidance.\n\n## References\n\n- Primary docs: AI Navigation package manual\n  (`https:\u002F\u002Fdocs.unity3d.com\u002FPackages\u002Fcom.unity.ai.navigation@2.0\u002Fmanual\u002Findex.html`) and\n  `ScriptReference\u002FAI.NavMeshAgent`, `ScriptReference\u002FAI.NavMesh`.\n\n## Related skills\n\n- `game-ai` — engine-agnostic decision-making (FSM, behaviour trees, steering) that *uses* this.\n- `unity-csharp-scripting` — the MonoBehaviour structure around the agent.\n- `tower-defense` \u002F `fps-shooter` — genres that compose pathfinding with gameplay.\n","# Unity NavMesh (AI Navigation)\n\nGive NPCs pathfinding in Unity 6: bake walkable surfaces and move agents around obstacles.\nTargets **Unity 6 (6000.0 LTS)** with the **AI Navigation package 2.x**.\n\n> **Version trap (Unity 2022+\u002F6):** the old built-in **Navigation window** (Object\u002FBake tabs)\n> is gone. Baking is now **component-based** via the **AI Navigation package**\n> (`com.unity.ai.navigation`): add a **NavMeshSurface** to your level geometry and click\n> **Bake**. The *runtime* `NavMeshAgent`\u002F`NavMesh` API stays in built-in `UnityEngine.AI`.\n\n## When to use\n\n- Use when an agent needs to walk\u002Fchase\u002Fpatrol to a target, when baking a navigable surface,\n  adding dynamic blockers (`NavMeshObstacle`), or checking whether a destination is reachable.\n- Use when the project has the AI Navigation package, a `NavMeshSurface` component, or scripts\n  using `UnityEngine.AI.NavMeshAgent`.\n\n**When *not* to use:** the *decision* logic of when\u002Fwhere to move (FSMs, behaviour trees,\nsteering) → `game-ai` (this skill is the Unity movement\u002Fpathing mechanism). Force-driven or\nkinematic movement that isn't pathfinding → `unity-physics`.\n\n## Core workflow\n\n1. **Install the AI Navigation package** (Package Manager → `com.unity.ai.navigation`).\n2. **Bake a surface:** select the static level geometry, **Add Component → Navigation → NavMesh\n   Surface**, set the agent type\u002Farea settings, and click **Bake**. Re-bake whenever geometry,\n   `NavMeshModifier`s, or agent settings change.\n3. **Add a `NavMeshAgent`** to each moving NPC; its radius\u002Fheight\u002Fspeed must match the baked\n   agent type, and it must spawn *on* the baked mesh.\n4. **Drive it from script** with `SetDestination(targetPos)`; the agent steers and avoids other\n   agents automatically. Detect arrival with `remainingDistance`\u002F`pathPending`.\n5. **Handle dynamic blockers** with `NavMeshObstacle` (carving) so closed doors\u002Fcrates block\n   paths without a full re-bake.\n6. **Verify** with the AI Navigation overlay (the baked mesh is drawn in the Scene view) and by\n   watching agents path around obstacles to the goal; check `NavMeshPath.status` for\n   unreachable targets.\n\n## Patterns\n\n### 1. Chase\u002Fseek with a NavMeshAgent\n\n```csharp\nusing UnityEngine;\nusing UnityEngine.AI;\n\n[RequireComponent(typeof(NavMeshAgent))]\npublic class Chaser : MonoBehaviour\n{\n    [SerializeField] private Transform target;\n    private NavMeshAgent _agent;\n\n    private void Awake() => _agent = GetComponent\u003CNavMeshAgent>();\n\n    private void Update()\n    {\n        if (target) _agent.SetDestination(target.position);   \u002F\u002F re-path toward the target\n    }\n\n    \u002F\u002F Arrived? pathPending guards the first frame before a path exists.\n    private bool HasArrived() =>\n        !_agent.pathPending && _agent.remainingDistance \u003C= _agent.stoppingDistance;\n}\n```\n\n### 2. Check reachability before committing\n\n```csharp\nusing UnityEngine.AI;\n\npublic bool CanReach(NavMeshAgent agent, Vector3 destination)\n{\n    var path = new NavMeshPath();\n    agent.CalculatePath(destination, path);\n    return path.status == NavMeshPathStatus.PathComplete;   \u002F\u002F vs Partial \u002F Invalid\n}\n```\n\n### 3. Bake at runtime (for procedurally built or streamed levels)\n\n```csharp\nusing Unity.AI.Navigation;   \u002F\u002F the package namespace (NavMeshSurface)\n\n[SerializeField] private NavMeshSurface surface;\n\n\u002F\u002F After spawning level geometry, build the navmesh in code.\npublic void RebuildNav() => surface.BuildNavMesh();\n```\n\n### 4. Dynamic obstacle that carves the mesh\n\n```csharp\n\u002F\u002F Add a NavMeshObstacle (Carve = true) to a door\u002Fcrate. While present it cuts a hole in the\n\u002F\u002F navmesh so agents route around it; remove\u002Fdisable it to reopen the path — no re-bake needed.\n```\n\n## Pitfalls\n\n- **Looking for the Navigation window** — it no longer exists in Unity 6. Use the AI Navigation\n  package's `NavMeshSurface` component + Bake.\n- **Agent doesn't move \u002F warps to origin** — it isn't on the baked mesh, or no surface was\n  baked. Bake the surface and spawn the agent on it (`NavMesh.SamplePosition` to snap).\n- **Agent ignores new geometry** — the navmesh is baked; runtime-spawned obstacles need a\n  `NavMeshObstacle` (carving) or a `surface.BuildNavMesh()` re-bake.\n- **`SetDestination` every frame is wasteful** — for a slow-moving target, re-path on a timer\n  (e.g. every 0.2s) instead of each frame.\n- **Agent radius\u002Fheight mismatch** — if the `NavMeshAgent`'s size differs from the baked agent\n  type, it gets stuck in gaps or floats; keep them consistent.\n- **Agents jitter against each other** — tune `avoidancePriority` and quality, or use an\n  obstacle for truly static blockers rather than relying on agent avoidance.\n\n## References\n\n- Primary docs: AI Navigation package manual\n  (`https:\u002F\u002Fdocs.unity3d.com\u002FPackages\u002Fcom.unity.ai.navigation@2.0\u002Fmanual\u002Findex.html`) and\n  `ScriptReference\u002FAI.NavMeshAgent`, `ScriptReference\u002FAI.NavMesh`.\n\n## Related skills\n\n- `game-ai` — engine-agnostic decision-making (FSM, behaviour trees, steering) that *uses* this.\n- `unity-csharp-scripting` — the MonoBehaviour structure around the agent.\n- `tower-defense` \u002F `fps-shooter` — genres that compose pathfinding with gameplay.\n",{"name":5,"license":15,"metadata":24,"description":27,"compatibility":28},{"engine":25,"category":25,"difficulty":26},"unity","intermediate","Add AI navigation in Unity 6: bake a NavMesh with the AI Navigation package (NavMeshSurface), move agents with NavMeshAgent.SetDestination, and handle dynamic obstacles. Use when setting up pathfinding, making an enemy chase the player, baking navigation, or when the user mentions NavMesh, NavMeshAgent, NavMeshSurface, NavMeshObstacle, or Unity pathfinding.\n","Unity 6 (6000.0 LTS); AI Navigation package 2.x (com.unity.ai.navigation); UnityEngine.AI runtime.","main","6d4e3296d58b2720c5b1026197cd069b1dde4789","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmistervaibhav","Software Engineer","2026-07-24 17:16:42",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mistervaibhav\u002Fskills --skill unity-navmesh",{"tool":41,"command":42},"bunx","bunx skills add mistervaibhav\u002Fskills --skill unity-navmesh",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mistervaibhav\u002Fskills --skill unity-navmesh","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funity-navmesh\u002FSKILL.md",true,[],[50,58,66,74,81,88],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":54,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M79NZDV5781GA6SJMN1QPXB4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":62,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79NZ8SEVWT4WYD49BV980YW","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", or \"type hierarchy\". Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","MIT","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":62,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M79NYVQS5NYHH36NXF2AHP8B","web-haptics","Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M79NY8AMC62DDRSH21WKXJVE","visual-novel","Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fvisual-novel\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":62,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79NWFM5R9QC9Y2AT40EHF44","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", or \"navigation problems\". Covers Nielsen's 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M79NVSG7AB3MSFT8Y6EEHG1B","unreal-packaging","Package and ship an Unreal Engine 5 project: the Platforms menu Package Project flow, build configurations (Development vs Shipping), cooking content, packaging settings and the Game Default Map, and command-line builds with RunUAT BuildCookRun. Use when packaging a build, making a shipping build, cooking content, configuring packaging settings, or when the user mentions package Unreal, cook content, shipping build, or BuildCookRun.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-packaging\u002FSKILL.md",[],[]]