Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

unreal-behavior-trees

Skill by gamedev-skills

Builds NPC AI in Unreal Engine 5.8 with Behavior Trees, Blackboards, EQS and StateTree. It is for developers writing enemy or NPC logic in UE assets and C++ AIControllers.

  • Score 94
  • 12k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install unreal-behavior-trees

Built from the published package, never by AI.

git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/unreal/unreal-behavior-trees ~/.claude/skills/unreal-behavior-trees

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install unreal-behavior-trees in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an assistant through authoring NPC decision-making in Unreal Engine 5.8. It covers Blackboard (BB_) assets, Behavior Trees (BT_) with Selector and Sequence composites, decorators with Observer Aborts, services that keep keys fresh, and EQS queries for locations or targets. It also covers custom C++ BTTask nodes and running a tree from an AIController.

The skill explains when to pick a Behavior Tree or StateTree, and it gives a workflow that starts by reading the existing project assets. It includes C++ and tree-layout patterns, a verification sequence using compile, DataValidation and headless functional tests, and a gotchas list. It is for Unreal developers building enemy or NPC AI. It does not cover engine-neutral AI code.

Written from the project's SKILL.md and checked against it.

What it can do

  • Blackboard setupPlans typed Blackboard keys for facts the AI remembers, such as TargetActor.
  • AIController setupShows how an AIController runs a Behavior Tree in OnPossess and sets Blackboard values.
  • Priority tree layoutDesigns reactive trees with Selector and Sequence composites and Blackboard decorators.
  • Observer AbortsExplains how decorators interrupt running branches when a Blackboard key changes.
  • EQS queriesUses Run EQS Query tasks to choose locations or targets and store results in keys.
  • Custom C++ nodesGuides writing custom BTTask, BTService and BTDecorator nodes in C++ when built-ins are not enough.
  • StateTree guidanceAdvises when to use StateTree for mode-based AI and how it combines with a Behavior Tree.
  • Verification stepsLists compile, DataValidation and headless functional test commands to check the AI.

What you need

  • Unreal Engine 5.8
  • StateTree and GameplayStateTree plugins for StateTree AI
  • Functional Testing Editor plugin for functional tests
  • AIModule listed in the module Build.cs for C++ AI code

Try asking

  • Create a Blackboard and Behavior Tree for a patrol and chase enemy in UE 5.8
  • Write an AIController in C++ that runs my BT_Enemy tree on possess
  • Add a custom BTTask in C++ that attacks the TargetActor key

Good to know

  • Targets Unreal Engine 5.8; UE 5.9 is in Preview and not recommended without a project copy
  • Running the editor for Behavior Tree debugging requires a user to start PIE manually
  • The -RenderOffscreen test option needs a GPU
  • EQS runs on the server, and query assets can be stripped from client builds in 5.8

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/unreal/unreal-behavior-trees/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB
  • references/custom-bttask.md7 KB

Alternatives to unreal-behavior-trees

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

unreal-behavior-trees: common questions

Should I use a Behavior Tree or StateTree for Unreal NPC AI?

The skill says to keep whatever the project already uses. For new AI, it suggests StateTree for modes with explicit transitions and a Behavior Tree for priority lists that re-evaluate on Blackboard changes.

Why does my Unreal AI just stand there?

The skill's gotchas say the pawn may not be possessed by your AIController, or RunBehaviorTree may never have run. It also says MoveTo can fail when there is no navmesh.

How do I test an Unreal Behavior Tree headlessly?

The skill describes a Functional Test actor that checks a Blackboard key or distance, run with UnrealEditor-Cmd and the Automation RunTest command.

How do I install unreal-behavior-trees?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is unreal-behavior-trees free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is unreal-behavior-trees safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to unreal-behavior-trees?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

unreal-behavior-trees Install

Add to stack

Loading.