Skip to content
SkillModel-led1,931 tokens in use

Game AI Architecture

Designs engine-neutral enemy and NPC AI: picks FSM, behavior tree, utility or GOAP, then builds perception, steering and A* pathfinding.

9,682 stars on the repository Apache License 2.0gamedev-skills/awesome-gamedev-agent-skills · skills/disciplines/game-ai
npx skills add gamedev-skills/awesome-gamedev-agent-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing Game AI Architecture costs

99tokens idle
1,931tokens in use
5,704tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter8/15
  • Structure25/25
  • Examples3/15
  • Output15/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity92
  • Maintenance96
  • Community60
  • Maturity24
  • Momentum40

This skill splits every agent into layers that each pass one small value to the next: perceive, decide, path, steer and animate. Most weak-AI bugs come from a layer doing another layer’s job, such as a state that raycasts or a pathfinder called every frame.

It gives a table for choosing the decision model, a workflow that writes perception once, and runnable checks for A* correctness, state flicker and stuck agents.

What You Get

  • A decision-model table: FSM, hierarchical FSM, behavior tree, utility scoring or GOAP, by situation
  • A perception pattern with one sensor writing facts to a Blackboard at 5 to 10 Hz
  • Gotcha lists for FSMs, perception, steering and pathfinding, including Godot AStarGrid2D defaults
  • Three runnable checks: A* cost against Dijkstra on random grids, transitions per second, and progress toward a waypoint

Common Use Cases

  • Choosing between an FSM and a behavior tree for a new enemy
  • Fixing an agent that flickers between chase and patrol at a distance threshold
  • Stopping A* from cutting diagonal corners through walls
  • Making enemies chase the last known position, then search, after they lose sight of the player

What Makes It Unique

It supplies numeric checks and thresholds a reviewer can run: A* must match Dijkstra at h = 0, no more than about 2 transitions per second per agent, and at least 0.5 units of progress in 2 s. It names engine facts such as the Godot AStarGrid2D default diagonal mode and sends BT code, Unreal assets and Unity NavMesh to their own skills.

Under The Hood

The skill is instructions and two reference files, one on pathfinding and one on FSMs, perception and steering. It has no scripts. It tells the agent to read the project’s existing AI and navigation code first, then to write and run its own check code, such as an A* comparison on random grids and a headless run of agents, using the project’s tooling. It does not fetch web pages, call APIs or install anything.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers