[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79NTRXDVY4ST02512MCV88B":3,"skill-same:01M79NTRXDVY4ST02512MCV88B":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M79NTRXDVY4ST02512MCV88B","unreal-behavior-trees",null,"Build NPC AI in Unreal Engine 5 with Behavior Trees and Blackboards: composites (Selector\u002FSequence), tasks, decorators, services, and running the tree from an AIController. Use when creating enemy\u002FNPC AI, BT_\u002FBB_ assets, custom BTTask or BTService nodes, or when the user mentions Behavior Tree, Blackboard, AIController, BTTask, decorator, or service.","mistervaibhav\u002Fskills","mistervaibhav","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F41189028?v=4","01M79KACH05EG9FMM6DQVHAVK9","Vaibhav Singh","01M79KACJB3431Y8CFJQ02MTTM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-behavior-trees\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unreal-behavior-trees\ndescription: >\n  Build NPC AI in Unreal Engine 5 with Behavior Trees and Blackboards: composites\n  (Selector\u002FSequence), tasks, decorators, services, and running the tree from an AIController.\n  Use when creating enemy\u002FNPC AI, BT_\u002FBB_ assets, custom BTTask or BTService nodes, or when\n  the user mentions Behavior Tree, Blackboard, AIController, BTTask, decorator, or service.\nlicense: Apache-2.0\ncompatibility: Unreal Engine 5.4+ (AIModule; Behavior Tree + Blackboard; NavMesh for movement)\nmetadata:\n  engine: unreal\n  category: unreal\n  difficulty: advanced\n---\n\n# Unreal Behavior Trees\n\nAuthor NPC decision-making in UE5 with Behavior Trees driven by a Blackboard: structure the\ntree with composites, gate branches with decorators, keep state current with services, and run\nit from an AIController. Targets **UE 5.4+**.\n\n## When to use\n\n- Use when building enemy\u002FNPC AI: creating a `BT_`\u002F`BB_` asset pair, structuring\n  Selector\u002FSequence branches, adding decorators (conditions) and services (periodic updates),\n  writing custom `BTTask`\u002F`BTService` nodes, or wiring an AIController to run the tree.\n- Use when the project has Behavior Tree (`BT_`) and Blackboard (`BB_`) assets and an\n  `AAIController`.\n\n**When *not* to use:** the *concept* of AI (FSM vs BT vs steering, cross-engine) →\n`game-ai`. Pure navigation\u002Fpathing math is engine navmesh (BT's `MoveTo` uses it). Simple\none-off logic may be cheaper as a small state machine than a full tree.\n\n## Core workflow\n\n1. **Create the pair:** a Blackboard (`BB_`) holds typed keys (the AI's memory: `TargetActor`,\n   `LastKnownLocation`, `bIsInvestigating`); a Behavior Tree (`BT_`) references that Blackboard.\n2. **Possess and run.** An `AAIController` possesses the pawn and calls `RunBehaviorTree(BT)`,\n   which also initializes the referenced Blackboard.\n3. **Structure with composites.** **Selector** runs children left→right until one *succeeds*\n   (priority\u002Ffallback: \"attack, else chase, else patrol\"). **Sequence** runs children until one\n   *fails* (do-all: \"move to cover → reload → peek\"). **Simple Parallel** runs one main task\n   alongside a secondary.\n4. **Gate branches with Decorators** that read Blackboard keys (e.g. \"Has Target?\" guards the\n   combat branch). Set **Observer Aborts** so the tree re-evaluates when the key changes.\n5. **Keep the Blackboard current with Services** attached to a branch — they tick periodically\n   (e.g. update `TargetActor` via a sight check) only while that branch is active.\n6. **Do work in Tasks**, which return `Succeeded`, `Failed`, or `InProgress` (latent tasks like\n   `MoveTo` finish later).\n7. **Verify** with the Behavior Tree debugger during PIE — it highlights the running node and\n   shows live Blackboard values, so you see exactly which branch executes.\n\n## Patterns\n\n### 1. AIController that runs the tree (C++)\n\n```cpp\nvoid AEnemyAIController::OnPossess(APawn* InPawn)\n{\n    Super::OnPossess(InPawn);\n    if (BehaviorTree)                 \u002F\u002F UPROPERTY(EditAnywhere) TObjectPtr\u003CUBehaviorTree>\n        RunBehaviorTree(BehaviorTree); \u002F\u002F initializes & uses the Blackboard the BT references\n}\n```\n\n### 2. A priority tree (node structure)\n\n```text\nROOT\n└── Selector (try combat, else investigate, else patrol)\n    ├── Sequence            [Decorator: Blackboard 'TargetActor' Is Set, Observer Aborts: Both]\n    │     ├── Task: MoveTo (TargetActor)          \u002F\u002F latent: returns InProgress then Succeeded\n    │     └── Task: Attack\n    ├── Sequence            [Decorator: 'LastKnownLocation' Is Set]\n    │     ├── Task: MoveTo (LastKnownLocation)\n    │     └── Task: Wait (3s) + clear key\n    └── Task: Patrol (BTTask_FindPatrolPoint -> MoveTo)\n```\n\n`Observer Aborts: Both` makes the combat branch interrupt patrol the instant `TargetActor` is\nset, and bail out when it's cleared — this is what makes the AI feel reactive.\n\n### 3. Updating the Blackboard from code (e.g. on seeing the player)\n\n```cpp\nvoid AEnemyAIController::SetTarget(AActor* Target)\n{\n    if (UBlackboardComponent* BB = GetBlackboardComponent())\n        BB->SetValueAsObject(TEXT(\"TargetActor\"), Target);   \u002F\u002F key name must match the BB asset\n}\n\u002F\u002F Clear with BB->ClearValue(TEXT(\"TargetActor\")); to drop back to a lower-priority branch.\n```\n\n## Pitfalls\n\n- **AI never starts** — the pawn isn't possessed (set the Pawn's *Auto Possess AI* to \"Placed\n  in World or Spawned\" and assign the AIController), or `RunBehaviorTree` was never called.\n- **`MoveTo` instantly fails** — no NavMesh in the level (add a Nav Mesh Bounds Volume), or the\n  target is off the navmesh.\n- **Branch doesn't react to changes** — the gating Decorator's **Observer Aborts** is set to\n  None; set it to Self\u002FLower Priority\u002FBoth so the tree re-evaluates when the key changes.\n- **A task hangs the tree** — a custom task returned `InProgress` and never calls\n  `FinishLatentTask`. Always complete latent tasks.\n- **Blackboard key typos** — `SetValueAsObject(\"Taget\", ...)` silently does nothing; match the\n  key name and type exactly, or use a cached `FBlackboardKeySelector`.\n- **Sequence vs Selector confusion** — Sequence = AND (stops on first failure); Selector = OR\n  (stops on first success). Swapping them inverts the behaviour.\n\n## References\n\n- For a **custom C++ `UBTTaskNode`** (instant and latent `ExecuteTask` returning `EBTNodeResult`,\n  with a `FBlackboardKeySelector`), read `references\u002Fcustom-bttask.md`.\n- Primary docs: \"Behavior Trees in Unreal Engine\"\n  (`https:\u002F\u002Fdev.epicgames.com\u002Fdocumentation\u002Fen-us\u002Funreal-engine\u002Fbehavior-trees-in-unreal-engine`).\n\n## Related skills\n\n- `game-ai` — engine-agnostic AI design (FSM, BT, steering, pathfinding choices).\n- `unreal-cpp-gameplay` — the AIController and pawn classes in C++.\n- `fps-shooter` \u002F `tower-defense` — genres that compose enemy AI.\n","# Unreal Behavior Trees\n\nAuthor NPC decision-making in UE5 with Behavior Trees driven by a Blackboard: structure the\ntree with composites, gate branches with decorators, keep state current with services, and run\nit from an AIController. Targets **UE 5.4+**.\n\n## When to use\n\n- Use when building enemy\u002FNPC AI: creating a `BT_`\u002F`BB_` asset pair, structuring\n  Selector\u002FSequence branches, adding decorators (conditions) and services (periodic updates),\n  writing custom `BTTask`\u002F`BTService` nodes, or wiring an AIController to run the tree.\n- Use when the project has Behavior Tree (`BT_`) and Blackboard (`BB_`) assets and an\n  `AAIController`.\n\n**When *not* to use:** the *concept* of AI (FSM vs BT vs steering, cross-engine) →\n`game-ai`. Pure navigation\u002Fpathing math is engine navmesh (BT's `MoveTo` uses it). Simple\none-off logic may be cheaper as a small state machine than a full tree.\n\n## Core workflow\n\n1. **Create the pair:** a Blackboard (`BB_`) holds typed keys (the AI's memory: `TargetActor`,\n   `LastKnownLocation`, `bIsInvestigating`); a Behavior Tree (`BT_`) references that Blackboard.\n2. **Possess and run.** An `AAIController` possesses the pawn and calls `RunBehaviorTree(BT)`,\n   which also initializes the referenced Blackboard.\n3. **Structure with composites.** **Selector** runs children left→right until one *succeeds*\n   (priority\u002Ffallback: \"attack, else chase, else patrol\"). **Sequence** runs children until one\n   *fails* (do-all: \"move to cover → reload → peek\"). **Simple Parallel** runs one main task\n   alongside a secondary.\n4. **Gate branches with Decorators** that read Blackboard keys (e.g. \"Has Target?\" guards the\n   combat branch). Set **Observer Aborts** so the tree re-evaluates when the key changes.\n5. **Keep the Blackboard current with Services** attached to a branch — they tick periodically\n   (e.g. update `TargetActor` via a sight check) only while that branch is active.\n6. **Do work in Tasks**, which return `Succeeded`, `Failed`, or `InProgress` (latent tasks like\n   `MoveTo` finish later).\n7. **Verify** with the Behavior Tree debugger during PIE — it highlights the running node and\n   shows live Blackboard values, so you see exactly which branch executes.\n\n## Patterns\n\n### 1. AIController that runs the tree (C++)\n\n```cpp\nvoid AEnemyAIController::OnPossess(APawn* InPawn)\n{\n    Super::OnPossess(InPawn);\n    if (BehaviorTree)                 \u002F\u002F UPROPERTY(EditAnywhere) TObjectPtr\u003CUBehaviorTree>\n        RunBehaviorTree(BehaviorTree); \u002F\u002F initializes & uses the Blackboard the BT references\n}\n```\n\n### 2. A priority tree (node structure)\n\n```text\nROOT\n└── Selector (try combat, else investigate, else patrol)\n    ├── Sequence            [Decorator: Blackboard 'TargetActor' Is Set, Observer Aborts: Both]\n    │     ├── Task: MoveTo (TargetActor)          \u002F\u002F latent: returns InProgress then Succeeded\n    │     └── Task: Attack\n    ├── Sequence            [Decorator: 'LastKnownLocation' Is Set]\n    │     ├── Task: MoveTo (LastKnownLocation)\n    │     └── Task: Wait (3s) + clear key\n    └── Task: Patrol (BTTask_FindPatrolPoint -> MoveTo)\n```\n\n`Observer Aborts: Both` makes the combat branch interrupt patrol the instant `TargetActor` is\nset, and bail out when it's cleared — this is what makes the AI feel reactive.\n\n### 3. Updating the Blackboard from code (e.g. on seeing the player)\n\n```cpp\nvoid AEnemyAIController::SetTarget(AActor* Target)\n{\n    if (UBlackboardComponent* BB = GetBlackboardComponent())\n        BB->SetValueAsObject(TEXT(\"TargetActor\"), Target);   \u002F\u002F key name must match the BB asset\n}\n\u002F\u002F Clear with BB->ClearValue(TEXT(\"TargetActor\")); to drop back to a lower-priority branch.\n```\n\n## Pitfalls\n\n- **AI never starts** — the pawn isn't possessed (set the Pawn's *Auto Possess AI* to \"Placed\n  in World or Spawned\" and assign the AIController), or `RunBehaviorTree` was never called.\n- **`MoveTo` instantly fails** — no NavMesh in the level (add a Nav Mesh Bounds Volume), or the\n  target is off the navmesh.\n- **Branch doesn't react to changes** — the gating Decorator's **Observer Aborts** is set to\n  None; set it to Self\u002FLower Priority\u002FBoth so the tree re-evaluates when the key changes.\n- **A task hangs the tree** — a custom task returned `InProgress` and never calls\n  `FinishLatentTask`. Always complete latent tasks.\n- **Blackboard key typos** — `SetValueAsObject(\"Taget\", ...)` silently does nothing; match the\n  key name and type exactly, or use a cached `FBlackboardKeySelector`.\n- **Sequence vs Selector confusion** — Sequence = AND (stops on first failure); Selector = OR\n  (stops on first success). Swapping them inverts the behaviour.\n\n## References\n\n- For a **custom C++ `UBTTaskNode`** (instant and latent `ExecuteTask` returning `EBTNodeResult`,\n  with a `FBlackboardKeySelector`), read `references\u002Fcustom-bttask.md`.\n- Primary docs: \"Behavior Trees in Unreal Engine\"\n  (`https:\u002F\u002Fdev.epicgames.com\u002Fdocumentation\u002Fen-us\u002Funreal-engine\u002Fbehavior-trees-in-unreal-engine`).\n\n## Related skills\n\n- `game-ai` — engine-agnostic AI design (FSM, BT, steering, pathfinding choices).\n- `unreal-cpp-gameplay` — the AIController and pawn classes in C++.\n- `fps-shooter` \u002F `tower-defense` — genres that compose enemy AI.\n",{"name":5,"license":15,"metadata":24,"description":27,"compatibility":28},{"engine":25,"category":25,"difficulty":26},"unreal","advanced","Build NPC AI in Unreal Engine 5 with Behavior Trees and Blackboards: composites (Selector\u002FSequence), tasks, decorators, services, and running the tree from an AIController. Use when creating enemy\u002FNPC AI, BT_\u002FBB_ assets, custom BTTask or BTService nodes, or when the user mentions Behavior Tree, Blackboard, AIController, BTTask, decorator, or service.\n","Unreal Engine 5.4+ (AIModule; Behavior Tree + Blackboard; NavMesh for movement)","main","6d4e3296d58b2720c5b1026197cd069b1dde4789","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmistervaibhav","Software Engineer","2026-07-24 17:16:42",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mistervaibhav\u002Fskills --skill unreal-behavior-trees",{"tool":41,"command":42},"bunx","bunx skills add mistervaibhav\u002Fskills --skill unreal-behavior-trees",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mistervaibhav\u002Fskills --skill unreal-behavior-trees","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-behavior-trees\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcustom-bttask.md","REFERENCE","参考文档",3682,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-behavior-trees\u002Freferences\u002Fcustom-bttask.md",[56,64,72,80,87,94],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79NZDV5781GA6SJMN1QPXB4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79NZ8SEVWT4WYD49BV980YW","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", or \"type hierarchy\". Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","MIT","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79NYVQS5NYHH36NXF2AHP8B","web-haptics","Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79NY8AMC62DDRSH21WKXJVE","visual-novel","Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fvisual-novel\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79NWFM5R9QC9Y2AT40EHF44","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", or \"navigation problems\". Covers Nielsen's 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79NVSG7AB3MSFT8Y6EEHG1B","unreal-packaging","Package and ship an Unreal Engine 5 project: the Platforms menu Package Project flow, build configurations (Development vs Shipping), cooking content, packaging settings and the Game Default Map, and command-line builds with RunUAT BuildCookRun. Use when packaging a build, making a shipping build, cooking content, configuring packaging settings, or when the user mentions package Unreal, cook content, shipping build, or BuildCookRun.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-packaging\u002FSKILL.md",[],[]]