unreal-behavior-trees
Skill by ukanwat
Builds NPC AI in Unreal Engine 5 using Behavior Trees and Blackboards. It is for developers creating enemy or NPC logic with composites, decorators, services, and AIController setup.
Install unreal-behavior-trees
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ukanwat/overtime /tmp/overtime && mkdir -p ~/.claude/skills && cp -r /tmp/overtime/.claude/skills/unreal-behavior-trees ~/.claude/skills/unreal-behavior-treesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ukanwat/overtime /tmp/overtime && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/overtime/.claude/skills/unreal-behavior-trees ~/.gemini/antigravity-cli/skills/unreal-behavior-treesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install unreal-behavior-trees in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Unreal Behavior Trees is a skill for authoring NPC decision-making in Unreal Engine 5. It covers creating a Blackboard (BB_) and Behavior Tree (BT_) asset pair, structuring branches with Selector and Sequence composites, gating them with decorators, and keeping state current with services. It also explains running the tree from an AIController and writing custom BTTask and BTService nodes.
The skill targets Unreal Engine 5.4 and later. It is aimed at developers building enemy or NPC AI who want a Blackboard-driven tree. It includes C++ examples for an AIController, a priority tree layout, and updating Blackboard keys from code. It also notes that the Behavior Tree debugger in PIE shows the running node and live Blackboard values.
Written from the project's SKILL.md and checked against it.
What it can do
- Blackboard and tree assetsSets up a BB_ Blackboard with typed keys and a BT_ Behavior Tree that references it.
- AIController setupShows how an AIController possesses a pawn and calls RunBehaviorTree in C++.
- CompositesExplains Selector, Sequence, and Simple Parallel nodes for branch structure.
- DecoratorsGates branches on Blackboard keys and uses Observer Aborts to re-evaluate when keys change.
- ServicesRuns periodic Blackboard updates only while their branch is active.
- TasksDescribes tasks that return Succeeded, Failed, or InProgress, including latent tasks like MoveTo.
- Custom BTTask nodesPoints to a reference for writing a custom C++ UBTTaskNode with ExecuteTask.
- Behavior Tree debuggingDescribes using the Behavior Tree debugger during PIE to see the running node and Blackboard values.
What you need
- Unreal Engine 5.4 or later
- AIModule enabled
- NavMesh in the level for movement
Try asking
- Create a Blackboard and Behavior Tree for a melee enemy that chases the player
- Add a decorator that only runs combat when TargetActor is set
- Write a custom BTTask in C++ that moves to a Blackboard location
Good to know
- Targets Unreal Engine 5.4 and later
- MoveTo needs a NavMesh in the level
- Simple one-off logic may be cheaper as a state machine, per the source
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/unreal-behavior-trees/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
references/custom-bttask.md4 KB
Alternatives to unreal-behavior-trees
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
unreal-behavior-trees: common questions
Which Unreal Engine version does this support?
The source targets Unreal Engine 5.4 and later, with the AIModule, Behavior Tree, and Blackboard features.
Does it cover custom Behavior Tree nodes in C++?
Yes. The source describes custom BTTask and BTService nodes and points to a reference file for a custom UBTTaskNode.
How do I debug a Behavior Tree?
The source says to use the Behavior Tree debugger during PIE, which highlights the running node and shows live Blackboard values.
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 MIT licence. The service it connects to may have its own pricing.
Is unreal-behavior-trees safe to use?
It scores 76 of 100. Grades: maintenance B, licence A, quality B. 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.
