Skip to content

Engine-neutral behavior tree and utility AI code for NPCs with a lifecycle contract and headless tests.

CCM score
58 of 100
skills.sh installs
15.2K
GitHub stars
12.1K
last updated
Nov 29, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Blackboard-driven behavior trees and utility scoring, with guidance on combining the two in one NPC
  • Includes reactive composites, decorators, response-curve considerations, and a headless tick test harness
  • Enforces the reset and running-status lifecycle, so lost guards abort actions instead of resuming them
  • Designed for developers fixing NPCs that chase after losing sight or flip-flop between choices in C#

Install

$ npx -y skills add gamedev-skills/awesome-gamedev-agent-skills --skill ai-behavior-trees-utility-ai -y

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

Files

Behavior trees and Utility AI

A behavior tree (BT) gives an agent ordered, interruptible priorities; Utility AI scores every option and picks the most wanted one. The code is plain C# so it ports to any engine; the non-obvious part is the lifecycle contract (who resets what, and when), which is where almost every BT bug lives.

When to use

  • Build or fix a reusable BT runtime: Blackboard, leaves, composites, decorators.
  • Build a utility decider: curves, considerations, a selector with hysteresis.
  • Combine them: a BT branch that hands a graded choice (which attack, which target) to utility.

Not this skill: choosing FSM vs BT, steering, A*, flow fields and perception belong to game-ai. Unreal's BehaviorTree/Blackboard assets, BTTask/BTService, EQS and StateTree belong to unreal-behavior-trees. The agent that physically moves (NavMeshAgent, NavigationAgent3D) belongs to the engine navigation skill.

Workflow

Details

Repository
github.com/gamedev-skills/awesome-gamedev-agent-skills
Categories
Game Development, AI Agents & LLM Apps
First seen
Nov 29, 2026

Questions

What does the ai-behavior-trees-utility-ai skill do?

The ai-behavior-trees-utility-ai skill covers AI behavior trees and utility AI for game characters. Its listing description is brief, so check the repository for the full scope of its patterns.

How do I install the ai-behavior-trees-utility-ai skill?

Run npx -y skills add gamedev-skills/awesome-gamedev-agent-skills --skill ai-behavior-trees-utility-ai -y in your project. This installs the skill so your agent can load it when building game AI.

Where does ai-behavior-trees-utility-ai rank in the Game Development category?

It ranks in the top 50 of the Game Development category on Claude Marketplaces. Other skills in that category include higgsfield-game-generation, game-feel, game-ui-ux, godot-gdscript-patterns and level-design.

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

All 69

Similar to Ai Behavior Trees Utility Ai

More Game Development