unrealengine

Unreal Engine development skill dedicated to helping an AI Agent efficiently complete tasks related to Unreal Engine development.

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 "unrealengine" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-172096bbbb9e8ec5ace38dbaa7c6ec9fb8bd54d081f55ec0785df3d8353fcacc. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/unreal-engine-j4zx before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

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

Installation test pending

Unreal Engine development skill dedicated to helping an AI Agent efficiently complete tasks related to Unreal Engine development.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Use this skill when: Developing C++ code for Unreal Engine 5.x projects Writing Actors, Components, or UObject-derived classes Optimizing performance-critical code in Unreal Engine Debugging memory leaks or garbage collection issues Implementing Blueprint-exposed functionality Following Epic Games' coding standards and conventions Working with Unreal's reflection system (UCLASS, USTRUCT, UFUNCTION) Managing asset loading and soft references
Audience
Use this skill when: Developing C++ code for Unreal Engine 5.x projects Writing Actors, Components, or UObject-derived classes Optimizing performance-critical code in Unreal Engine Debugging memory leaks or garbage collection issues Implementing Blueprint-exposed functionality Following Epic Games' coding standards and conventions Working with Unreal's reflection system (UCLASS, USTRUCT, UFUNCTION) Managing asset loading and soft references Do not use this skill when: Working with Blueprint-only projects (no C++ code) Developing for Unreal Engine versions prior to 5.x Working on non-Unreal game engines The task is unrelated to Unreal Engine development
Inputs and outputs
→ Full reference: `references/enhanced_input.md` NEVER assume input action names.** Always run discovery (Step 3) first. Key points: Bind in `SetupPlayerInputComponent` using `UEnhancedInputComponent` Add `UInputMappingContext` via `UEnhancedInputLocalPlayerSubsystem` in `BeginPlay` Declare `UInputAction*` properties as `BlueprintReadOnly` `.uasset` files are binary — use `find` to discover, not to read
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "Unreal Engine开发"
slug: unreal-engine
version: 1.0.0
displayName: "Unreal Engine开发"
description: >
  Unreal Engine开发专用技能,帮助AI Agent高效完成相关任务。
summary: "Unreal Engine开发专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 游戏开发
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"

Unreal Engine Development Assistant

When to Use

Use this skill when:

  • Developing C++ code for Unreal Engine 5.x projects
  • Writing Actors, Components, or UObject-derived classes
  • Optimizing performance-critical code in Unreal Engine
  • Debugging memory leaks or garbage collection issues
  • Implementing Blueprint-exposed functionality
  • Following Epic Games' coding standards and conventions
  • Working with Unreal's reflection system (UCLASS, USTRUCT, UFUNCTION)
  • Managing asset loading and soft references

Do not use this skill when:

  • Working with Blueprint-only projects (no C++ code)
  • Developing for Unreal Engine versions prior to 5.x
  • Working on non-Unreal game engines
  • The task is unrelated to Unreal Engine development

Core Philosophy: Zero Assumptions

CRITICAL: Never make assumptions about the user's project. Every Unreal project is unique in structure, assets, and configuration. Always verify before suggesting code or assets.

UCLASS / USTRUCT File Creation Policy

NEVER autonomously create new UCLASS or USTRUCT header/source files.

Unreal Engine generates these files with engine-managed boilerplate that cannot be reliably replicated by hand:

  • GENERATED_BODY() macro and UHT-managed include order
  • Module API export macros (PROJECTNAME_API)
  • Correct .generated.h include placement
  • Blueprint asset registration hooks

Correct workflow:

  1. User creates the class from Unreal Editor (Tools → New C++ Class or Content Browser)
  2. Engine generates the .h / .cpp pair with proper boilerplate
  3. Claude works on the generated files — adding members, functions, logic

If a new class is needed, tell the user to create it from the editor and describe exactly which parent class to choose. Do not generate the file yourself.

Helper Function Usage Policy

Before calling any helper function, verify it is declared in the existing codebase.

Do not assume helper functions exist (e.g. GetUIManager(), GetInventory()). Always check first using Pre-Flight Step 4. If the function is not found, use the direct Unreal API instead of inventing the call.

// ✅ Confirmed declared in codebase — use it
UIManager = GetUIManager();

// ✅ Not found in codebase — use direct API instead
UIManager = GetLocalPlayer()->GetSubsystem<UMyLocalUISubsystem>();

// ❌ Assumed to exist without verification — causes linker error if missing
UIManager = GetUIManager();

Engine API Usage Policy

Do not guess Getter functions or utility methods on engine classes without verifying they exist.

Engine APIs often lack Getters where you'd expect them by naming convention alone. When uncertain, access member variables directly or verify the API via web search before writing code. GAS-related classes (FGameplayAbilityActorInfo, FGameplayEffectSpec, etc.) are particularly prone to this — their access patterns frequently differ from standard UE conventions.

Build Verification Policy

After modifying any C++ file, run the project build and verify it succeeds before proceeding.

Check CLAUDE.md for the project-specific build command.


Pre-Flight Discovery Protocol

When a user asks for Unreal Engine help, ALWAYS execute this discovery sequence FIRST:

1. Locate the .uproject File

find . -maxdepth 2 -name "*.uproject" -type f

If found, extract:

  • Engine version from "EngineAssociation" field
  • Enabled plugins from "Plugins" array
  • Module dependencies from "Modules" array

2. Map the Project Structure

Standard Unreal project layout:

ProjectRoot/
├── ProjectName.uproject
├── Source/
│   └── ProjectName/
│       ├── Public/            ← Header files (.h)
│       ├── Private/           ← Implementation files (.cpp)
│       └── ProjectName.Build.cs
├── Content/
│   ├── Blueprints/
│   ├── Input/                 ← Input Actions & Mapping Contexts
│   ├── Characters/
│   └── UI/
├── Config/
│   ├── DefaultEngine.ini
│   ├── DefaultInput.ini
│   └── DefaultGame.ini
└── Plugins/

3. Discover Sources and Content Assets

# C++ source files
view Source/*/Public
view Source/*/Private
find Source -name "*.h" -o -name "*.cpp" | head -20

# Engine version & plugin check
grep "EngineAssociation" *.uproject
grep -i "GameplayAbilities" *.uproject

# Content assets
find Content -type f -name "*.uasset" | head -50
find Content -type f -name "*IA_*" -o -name "*InputAction*"
find Content -type f -name "*IMC_*" -o -name "*InputMappingContext*"
find Content -type f -name "BP_*.uasset" | head -20

# Config
ls -la Config/

4. Understand Existing Code

Before suggesting ANY code:

  • Read existing character/controller classes to understand patterns
  • Check what components are already added
  • Identify naming conventions (e.g., IA_ prefix for Input Actions)
  • Look for existing helper classes or base classes
find Source -name "*Character.h" -o -name "*Character.cpp"

C++ Code Quality

Always verify these principles before finalizing any generated code. → Full reference: references/unreal_cpp_best_practice.md

  • GC Safety: All UObject* and TObjectPtr<> members must be wrapped in UPROPERTY(). Prefer TObjectPtr<> for members, raw pointers for function parameters/return values. For non-UObject owners or cross-thread access (FRunnable, async tasks), use TStrongObjectPtr<> or FGCObject; avoid AddToRoot() as it bypasses GC.
  • Reflection: Use BlueprintReadOnly by default. Only use BlueprintReadWrite when BP truly needs write access.
  • Tick: Disabled (bCanEverTick = false) by default. Prefer timers or events.
  • Casting: Never Cast<T>() in hot loops. Cache in BeginPlay or PostInitializeComponents.
  • Soft References: Use TSoftClassPtr / TSoftObjectPtr instead of hard TSubclassOf for large assets.

Naming Conventions

Follow Epic Games' coding standard. Identify the project's existing convention first (Step 4).

Prefix Type Example
T Templates TArray, TMap
U UObject-derived UHealthComponent
A AActor-derived AMyGameMode
S Slate Widgets SMyWidget
F Structs FVector, FHitResult
E Enums EWeaponState
I Interfaces IInteractable
b Booleans bIsDead

Input System (Enhanced Input)

→ Full reference: references/enhanced_input.md

NEVER assume input action names. Always run discovery (Step 3) first.

Key points:

  • Bind in SetupPlayerInputComponent using UEnhancedInputComponent
  • Add UInputMappingContext via UEnhancedInputLocalPlayerSubsystem in BeginPlay
  • Declare UInputAction* properties as BlueprintReadOnly
  • .uasset files are binary — use find to discover, not to read

Gameplay Ability System (GAS)

→ Full reference: references/gameplay_ability_system.md

Check .uproject for "GameplayAbilities" plugin before proceeding.

Key points:

  • Add GameplayAbilities, GameplayTags, GameplayTasks to Build.cs
  • Place ASC on Character (single-player) or PlayerState (dedicated server)
  • Grant abilities on server only (HasAuthority())
  • Use FGameplayTag for ability identification over string names
  • Custom AbilityTask creation: see reference → "Custom AbilityTask" section
  • GA lifecycle (End vs Cancel semantics, dynamic grant/revoke): see reference → "Advanced GA Lifecycle"
  • Server-authoritative activation (no client prediction): see reference → "Network Patterns"

Plugin Guidance

→ Full reference: references/plugin_guidance.md

  • Always verify plugin is enabled in .uproject before writing plugin-dependent code
  • For unknown or experimental plugins, search documentation and be transparent about uncertainty
  • Check plugin stability status (Stable / Beta / Experimental) before use in production

Plugin Development

→ Full reference: references/plugin_development.md

For creating new UE plugins (not just using existing ones). Key points:

  • Runtime/Editor module split (.uplugin Modules array)
  • WITH_EDITOR macro for editor-only code isolation
  • Build.cs inter-module dependency configuration (Public vs Private)
  • How to add plugin module dependencies from external projects

Data-Driven Design

→ Full reference: references/data_driven_design.md

For DataAsset / DataTable based gameplay data architecture. Key points:

  • UDataAsset vs UPrimaryDataAsset selection criteria
  • Defining gameplay parameters with DataAssets (weapons, skills, items, etc.)
  • DataTable + CSV/JSON import workflow
  • DataAsset runtime loading via AssetManager

Debugging

→ Full reference: references/debugging.md

  • Use UE_LOG with custom log categories (DEFINE_LOG_CATEGORY) for contextual filtering
  • Use GEngine->AddOnScreenDebugMessage() for quick in-editor feedback
  • Use Visual Logger for AI and spatial debugging (UE_VLOG_* macros)
  • Prefer check() / ensure() over silent failures

API Knowledge Gaps

When uncertain about API usage:

  1. Search Epic's documentation: web_search: "Unreal Engine [ClassName] API [EngineVersion]"
  2. Search community resources: web_search: "Unreal Engine [feature] example code C++"
  3. Check Epic Developer Community forums
  4. Reference example projects: Lyra, Valley of the Ancient, ActionRPG

Version-Specific Considerations

Always check .uproject for "EngineAssociation":

Version Notes
5.5+ Mutable/Customization systems, new input features
5.0–5.4 Stable Enhanced Input, Experimental GAS improvements
4.27 Legacy input system; requires manual Enhanced Input setup

When suggesting code, verify feature availability:

web_search: "Unreal Engine [feature] [version] availability"

Common Pitfalls

→ Full reference: references/common_pitfalls.md

  • Never assume asset names or paths — always discover with find
  • Missing UPROPERTY() → silent GC collection
  • Cast<T>() in Tick → severe performance cost
  • Hard TSubclassOf references → forced asset loading at startup
  • BlueprintReadWrite on internal state → fragile BP/C++ boundary

Workflow Decision Tree

User asks for Unreal help
    │
    ├─> Find .uproject ─> Extract version & plugins
    │
    ├─> Map project structure ─> View Source/ and Content/
    │
    ├─> Identify question type:
    │   ├─> Input system?       ─> references/enhanced_input.md
    │   ├─> GAS-related?        ─> references/gameplay_ability_system.md
    │   ├─> Plugin development? ─> references/plugin_development.md
    │   ├─> Plugin usage?       ─> references/plugin_guidance.md
    │   ├─> DataAsset/DataTable? ─> references/data_driven_design.md
    │   ├─> Debugging?          ─> references/debugging.md
    │   ├─> C++ quality?        ─> references/unreal_cpp_best_practice.md
    │   └─> General C++?        ─> Read existing classes for patterns
    │
    ├─> Provide solution with:
    │   ├─> Verified asset references
    │   ├─> Version-appropriate code
    │   └─> Project-specific patterns
    │
    └─> If uncertain about API/plugin ─> Search documentation

Checklists

Pre-Code Checklist

Before providing ANY code suggestion:

  • [ ] Found and read .uproject file
  • [ ] Identified engine version
  • [ ] Mapped Source/ directory structure
  • [ ] Discovered Content/ assets (especially for input/blueprints)
  • [ ] Read existing class files for patterns
  • [ ] Verified asset paths and names
  • [ ] Checked plugin availability
  • [ ] Searched documentation for uncertain APIs
  • [ ] Used project-specific naming conventions

Pre-PR / Code Review Checklist

Before finalizing any C++ code:

  • [ ] Does this Actor need to Tick? Can it be replaced with a Timer or event?
  • [ ] Are all UObject* and TObjectPtr<> members wrapped in UPROPERTY?
  • [ ] Are hard references (TSubclassOf) causing load chains? Can they be TSoftClassPtr?
  • [ ] Are Cast<T>() calls cached in BeginPlay, not repeated in Tick?
  • [ ] Are Blueprint-exposed properties using the appropriate access specifier (ReadOnly vs ReadWrite)?
  • [ ] Did you clean up delegates in EndPlay?
  • [ ] Did you run the build and verify it succeeds? (check CLAUDE.md)

Reference Files

Load the appropriate reference file when deeper detail is needed:

File Load When
references/unreal_cpp_best_practice.md GC, reflection, performance, naming, common patterns
references/enhanced_input.md Enhanced Input binding, Input Actions, Mapping Contexts
references/gameplay_ability_system.md GAS setup, abilities, attributes, effects, AbilityTasks, network patterns
references/plugin_guidance.md Unknown or experimental plugins (consumer side)
references/plugin_development.md Plugin creation, module split, Build.cs, WITH_EDITOR (author side)
references/data_driven_design.md DataAsset, DataTable, AssetManager, data-driven design
references/debugging.md UE_LOG, Visual Logger, crash/assert patterns
references/common_pitfalls.md Troubleshooting build errors, GC bugs, performance issues

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 针对 Unreal Engine 5.x 游戏开发的专业技能,具有高频刚需价值
  • 提供完整的开发流程指导,涵盖 C++ 编程、GAS、输入系统、插件开发等核心场景
  • 包含详细的最佳实践、调试方法和版本适配策略
Trigger Precision95/100

Highlights

  • 触发词精准完整,覆盖 Unreal Engine 开发的多种场景和变体
  • When to Use 章节明确界定使用边界,避免误触和漏触
  • description 内容完整且位置正确
Structure and Standards88/100

Areas to improve

  • 文档结构优化 Reported severity: Minor

    文档较长(约600行),可考虑拆分为多个文件提升可维护性

    Recommendation: 建议将 reference 相关内容拆分为独立文件,保持主文档简洁

Highlights

  • Pre-Flight Discovery Protocol 提供清晰的执行流程
  • 包含完整的检查清单和决策树,便于用户遵循
  • frontmatter 完整,包含所有必要元数据
Execution Reliability90/100

Areas to improve

  • 引用文件完整性 Reported severity: Minor

    部分 reference 文件(如 references/unreal_cpp_best_practice.md)未实际传入

    Recommendation: 建议补充完整的 reference 文件或确保主文档包含所有必要内容

Highlights

  • 提供完整的错误处理策略,包括 GC Safety、Casting 优化等
  • 有明确的版本适配机制和构建验证流程
  • UCLASS 文件创建策略有效避免常见错误
Evidence Verifiability (mean of the first four)91/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.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

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.