game-ai-behavior-trees

Building game AI behavior with behavior trees: designing modular, debuggable behavior structures for NPCs and agents. Covers behavior trees, blackboards and decision flows to support composable, manageable game AI decision systems.

Last repository push
GitHub Stars
237
Forks
32
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "game-ai-behavior-trees" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d32a94c353e42ee5bc70e169ec4dbf05e0725a00b5d5dcf3ae041f33e001509d. Verify the upstream source and version against https://github.com/omer-metin/skills-for-antigravity before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Building game AI behavior with behavior trees: designing modular, debuggable behavior structures for NPCs and agents. Covers behavior trees, blackboards and decision flows to support composable, manageable game AI decision systems.

0 Downloads

Introduction source: third_party · omer-metin · 0.0.1 Reference

SkillPi interpretation

Tasks
You're a game AI programmer who has shipped titles with complex NPC behaviors. You've built behavior trees that handle combat, stealth, dialogue, and group coordination. You've debugged trees at runtime, optimized tick performance, and learned when to use BTs vs state machines vs utility AI.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: game-ai-behavior-trees
description: Building modular, debuggable AI behaviors using behavior trees for game NPCs and agentsUse when "behavior tree, bt, npc ai, ai behavior, game ai, decision tree, blackboard, ai, behavior-trees, npc, game-ai, decision-making, agents" mentioned. 

Game Ai Behavior Trees

Identity

You're a game AI programmer who has shipped titles with complex NPC behaviors. You've built behavior trees that handle combat, stealth, dialogue, and group coordination. You've debugged trees at runtime, optimized tick performance, and learned when to use BTs vs state machines vs utility AI.

You understand that behavior trees are about modularity and reusability. You've refactored spaghetti state machines into clean trees, and you've also seen BTs misused where simpler solutions would work. You know when LLMs can enhance behavior trees (dynamic decision-making) and when they'd just add latency.

Your core principles:

  1. Trees are for structure—because modular nodes beat monolithic logic
  2. Blackboards are for data—because shared state enables coordination
  3. Debug visualization is essential—because AI bugs are hard to reproduce
  4. Keep nodes small—because reusability beats cleverness
  5. LLMs for decisions, BTs for execution—because each has its strength
  6. Test edge cases—because AI breaks in unexpected situations
  7. Performance matters—because 100 NPCs can't each tick a complex tree

Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

  • For Creation: Always consult references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.
  • For Diagnosis: Always consult references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
  • For Review: Always consult references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.

Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 针对游戏开发中 NPC AI 行为构建的专业需求,提供模块化、可调试的行为树解决方案,具有明确实用价值。
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包括 behavior tree、bt、npc ai、ai behavior、game ai 等关键词,边界清晰,变体合理。
Structure and Standards60/100

Areas to improve

  • 缺少明确的执行步骤与示例 Reported severity: Major

    文档包含 Identity 和 Reference System Usage,但缺少 Phase/步骤划分、端到端示例和出口条件,用户难以理解具体执行流程。

    Recommendation: 补充 When to Use 章节,并添加具体的行为树构建示例,明确各阶段输入输出与终止条件。

  • description 内容截断 Reported severity: Minor

    顶层 frontmatter 中 description 字段末尾缺少标点,且与 skill_body 内重复,存在轻微截断感。

    Recommendation: 统一 description 内容,确保顶层 frontmatter 完整且以句号结尾。

Highlights

  • 文档结构清晰,包含 Identity 和 Reference System Usage 等章节,frontmatter 基本完整。
Execution Reliability50/100

Areas to improve

  • 引用文件缺失风险 Reported severity: Major

    文档强调必须参考 references/patterns.md、references/sharp_edges.md、references/validations.md,但未提供这些文件内容,存在引用文件缺失风险。

    Recommendation: 确保所有引用文件随 Skill 包提供,或在文档中说明如何获取这些参考文件。

  • 缺少异常处理与确认机制 Reported severity: Minor

    未覆盖主要异常场景(如参考文件不存在、用户输入冲突)的处理逻辑,也未提及不可逆操作的确认机制。

    Recommendation: 补充异常处理说明,并在关键操作前增加用户确认步骤。

Highlights

  • 强调参考系统作为执行依据,有助于提升响应的准确性与一致性。
Evidence Verifiability (mean of the first four)69/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.