Skip to content

Architecture guide for enemy and NPC AI that splits perception, decision, pathing, and steering into layers.

CCM score
57 of 100
skills.sh installs
18.2K
GitHub stars
12.1K
last updated
Nov 28, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the perceive, decide, path, steer, and animate layers, with guidance on choosing an FSM, behavior tree, utility scoring, or GOAP
  • Includes a decision-model table, a five-step workflow, and gotchas for FSM transitions, sight checks, steering, and A* pathfinding
  • Enforces verification checks: A* matching Dijkstra on 50 random grids, transition-flicker logging, and a headless stuck test
  • Designed for engine-neutral game AI work, with Godot AStarGrid2D and NavigationAgent details; Unity and Unreal navigation go to sibling skills

Install

$ npx -y skills add gamedev-skills/awesome-gamedev-agent-skills --skill game-ai -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Game AI architecture

Split every agent into layers that pass one small value to the next: perceive (facts on a Blackboard) → decide (an intent such as "go to X", "attack Y") → path (waypoints) → steer (a velocity) → animate. Most "dumb AI" bugs are a layer doing another layer's job: a state that raycasts, a pathfinder called every frame, steering that ignores the path.

When to use

  • Choose a decision model, or fix one that has grown into flag soup.
  • Build or debug an FSM, perception, steering, A* on a grid or graph, or a flow field.
  • Diagnose agents that get stuck, oscillate, react unfairly fast or see through walls.

Not this skill: BT and utility runtimes go to ai-behavior-trees-utility-ai; Unreal BehaviorTree, EQS and StateTree go to unreal-behavior-trees; Unity NavMeshSurface and NavMeshAgent go to unity-navmesh. Movement and collision feel go to physics-tuning.

Pick the decision model

Details

Repository
github.com/gamedev-skills/awesome-gamedev-agent-skills
Category
Game Development
First seen
Nov 28, 2026

Questions

What does the game-ai skill do?

The game-ai skill designs engine-neutral enemy and NPC AI, choosing between FSM, behavior tree, utility or GOAP models. It also builds perception, steering and A* pathfinding for patrol, chase and path-finding to the player.

How do I install the game-ai skill?

Run npx -y skills add gamedev-skills/awesome-gamedev-agent-skills --skill game-ai -y in your project. Once installed, the agent can design enemy AI with perception, steering and A* pathfinding.

Where does game-ai rank in the Game Development category?

On the Game Development category page, game-ai ranks in the top 10. It focuses on engine-neutral AI architecture, with behavior tree and utility runtimes handled by a separate skill.

Does game-ai work for Unity or Unreal AI?

No, the SKILL.md sends Unreal AI to unreal-behavior-trees and Unity NavMesh to unity-navmesh. The game-ai skill itself stays engine-neutral for FSM, perception and pathfinding design.

What should I use game-ai for when agents get stuck?

Use it to diagnose agents that get stuck on corners, oscillate, react too fast or see through walls. It covers stuck and fairness guards plus runnable checks for A* admissibility and state flicker.

More from gamedev-skills/awesome-gamedev-agent-skills

All 69

Similar to Game Ai

More Game Development