This repository contains nearly 100 hyper-specialized Markdown files (`SKILL.md`) designed to act as the ultimate architectural and technical brain for AI Agents (like Claude, Gemini, Antigravity)...
概览
🚀 Unreal Engine 5 C++ Expert Skills The Ultimate "Swiss Army Knife" for AI Agents and Senior Developers This repository contains nearly designed to act as the ultimate architectural and technical brain for AI Agents (like Claude, Gemini, Antigravity) and human developers. Unlike standard tutorials, these skills are written as . They are optimized for AI ingestion (using the "Caveman Lite" linguistic format) to drastically reduce token consumption while maximizing technical density. Every file in this repository is designed to prevent AI coding errors: - : Explicitly shows what not to do (e.g., using Cast in a Tick loop) vs the standard (e.g., using IsA ()). - : Each skill ends with a binary checklist for the Agent to self-verify its code before pushing a PR. - : Deep focus on pointers (TWeakObjectPtr), memory leaks, and Network Authority (HasAuthority()) to prevent silent crashes in multiplayer environments.
README
📖 Overview
Welcome to the Unreal Engine 5 C++ Expert Skills Library.
This repository contains nearly 100 hyper-specialized Markdown files (SKILL.md) designed to act as the ultimate architectural and technical brain for AI Agents (like Claude, Gemini, Antigravity) and human developers.
Unlike standard tutorials, these skills are written as strict operational protocols. They are optimized for AI ingestion (using the “Caveman Lite” linguistic format) to drastically reduce token consumption while maximizing technical density.
🛡️ The “Zero Hallucination” Philosophy
Every file in this repository is designed to prevent AI coding errors:
- BAD vs GOOD Snippets: Explicitly shows what not to do (e.g., using
Castin a Tick loop) vs the standard (e.g., usingIsA()). - Verification Checklists: Each skill ends with a binary checklist for the Agent to self-verify its code before pushing a PR.
- Safety First: Deep focus on pointers (
TWeakObjectPtr), memory leaks, and Network Authority (HasAuthority()) to prevent silent crashes in multiplayer environments.
🗂️ The 10 Architectural Pillars
This library covers the entire spectrum of game development in UE5, from basic setup to low-level engine hacking.
1. 🏗️ Core C++ & Memory Management
- The migration to
TObjectPtr. - Native Smart Pointers (
TSharedRef,TUniquePtr) vsstd::. - High-performance memory stacks (
FMemStack,FInstancedStruct).
2. ⚡ Performance & Optimization
- Eradicating the
Tickfunction (Event-Driven architecture). - CPU Cache Locality and Struct Padding optimization.
- Object Pooling for rapid-fire actors.
- Math & String optimization (
FStringBuilderBase,DistSquared).
3. 🌐 Multiplayer & Network Replication
AGameModevsAGameStateresponsibilities.- The
Push Model(MARK_PROPERTY_DIRTY_FROM_NAME) for massive CPU savings. FFastArraySerializerfor large inventory replication.- Safe RPC implementation and RepNotify state synchronization.
4. ⚔️ Gameplay Ability System (GAS)
UAttributeSetclamping andATTRIBUTE_ACCESSORS.- Instancing policies for
UGameplayAbility. UGameplayEffectExecutionCalculationfor complex damage math.- Synchronizing targeting info via
FGameplayAbilityTargetData.
5. 🧠 Artificial Intelligence (Mass Entity & BTs)
- C++ Behavior Tree Tasks (
UBTTaskNode), Services, and Decorators. FBlackboardKeySelectorfor safe memory access.Mass Entity(ECS) architecture for 100,000+ simulated entities.- The new
State Treeshybrid system.
6. 🏃 Animation & Physics
- UE5’s
NativeThreadSafeUpdateAnimationfor multi-threaded crowds. - Executing
AnimMontageandAnimNotifiesfrom C++. - Advanced Raycasts (
SweepMulti,FCollisionQueryParams). - Safely extracting
Physical Materialsfor surface-specific VFX.
7. 🎮 Gameplay Systems & Blueprint Interop
BlueprintNativeEventvsBlueprintImplementableEvent.- C++ Interfaces (
Execute_). - Enhanced Input System (
InputMappingContext) in UE 5.1+. - Native
FGameplayTagintegration.
8. 🖌️ UI Development (Slate & UMG)
- Pure native C++ UI via
Slate(SNew,TAttribute). - Invalidation Boxes for 120+ FPS UMG widgets.
- Virtualized lists (
SListView/STileView). - Proper
NativeDestructgarbage collection to prevent Zombie UI.
9. 🖥️ Shaders, Rendering & RDG
- Writing HLSL in
usf/ushfiles. - Building passes with the
Render Dependency Graph(FRDGBuilder). Compute ShadersandUAVmanipulation.- Modifying the UE5
Tonemapperand reading G-Buffer data.
10. 🛠️ Editor Tooling & Distribution
- Extending the Editor via
IDetailCustomizationandFAssetTypeActions_Base. - Creating custom Blueprint Nodes (
UK2Node). - Passing Fab Marketplace submission requirements (HAL, cross-platform safety).
📂 The references/ Directory (Memory Dumps)
While standard skills are fast and concise, the references/ folder contains complete, copy-pasteable C++ boilerplate templates for Unreal’s most complex “Final Boss” systems:
rdg-pipeline-template.md: Complete Compute/Pixel Shader setup.gas-attribute-execution.md: Boilerplate for AttributeSets and ExecCalcs.async-multithreading-tasks.md: Syntax forUE::Tasks,AsyncTask, andUE5Coro.multiplayer-seamless-travel-code.md: Data persistence viaCopyProperties.slate-ui-macro-lexicon.md: Deep dive intoSAssignNewand Slate bindings.
🤖 How to Use (For AI Agents)
- Ingest the Context: When a user assigns you a task (e.g., “Create a multiplayer gun”), scan the
SKILL.mdfiles related to your task (e.g.,rpc-server-client-multicast.md,raycast-line-trace.md). - Follow the Rules: Treat the instructions as absolute Engine Law. Never assume an API implementation without checking the skill.
- Verify: Before outputting code, run through the
Verification Checklistat the bottom of each skill.
👨💻 How to Use (For Humans)
Read these files as a quick-reference “Senior Dev Cheat Sheet”. If you forget the exact syntax for a DOREPLIFETIME_CONDITION or a DECLARE_GLOBAL_SHADER, you will find the most modern, optimized UE 5.4+ approach documented here without the fluff of a 30-minute tutorial.
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add mrsutivu/unreal-engine-5-c-expert-skills