Unreal C++ Gameplay Code
Writes Unreal Engine 5 C++ gameplay code that compiles first time, avoids random crashes and runs tests headless.
Claude's review
7/10 Good UE 5.8 C++ checklist on reflection, GC-safe pointers, Build.cs and headless tests; mostly established Unreal practice stated well.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Unreal Engine 5 (UE 5.8) C++ gameplay code: UCLASS and UPROPERTY reflection, the Gameplay Framework, GC-safe pointers, Build.cs and command-line builds. Use for GENERATED_BODY, Live Coding, "unresolved external symbol" or UHT errors. Not for Blueprints (`unreal-blueprints`), Enhanced Input (`unreal-enhanced-input`) or packaging (`unreal-packaging`); engine source builds are out of scope.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: unreal-cpp-gameplay
description: >
Unreal Engine 5 (UE 5.8) C++ gameplay code: UCLASS and UPROPERTY reflection, the Gameplay
Framework, GC-safe pointers, Build.cs and command-line builds. Use for GENERATED_BODY, Live
Coding, "unresolved external symbol" or UHT errors. Not for Blueprints (`unreal-blueprints`),
Enhanced Input (`unreal-enhanced-input`) or packaging (`unreal-packaging`); engine source builds
are out of scope.
---
# Unreal C++ Gameplay
Write UE5 gameplay C++ that compiles the first time, survives garbage collection and is
testable from a terminal. Targets **UE 5.8**.
## When to use
- Creating or fixing C++ gameplay classes (`AActor`, `APawn`, `ACharacter`, `AGameModeBase`,
`UActorComponent`), reflection macros, or a module's `*.Build.cs`.
- Diagnosing compile, UHT, linker or Live Coding problems, and crashes from freed `UObject`s.
- Writing C++ automation tests and running them headless.
**When *not* to use:** designer-facing visual logic → `unreal-blueprints`. Input assets and
bindings → `unreal-enhanced-input`. Behavior Trees and EQS → `unreal-behavior-trees`. Cooking
and packaging → `unreal-packaging`. Building Unreal Engine itself from source is not covered;
follow Epic's source-build instructions for the engine's GitHub repository.
## Workflow
1. **Read the project.** `EngineAssociation` in the `.uproject` gives the engine version; the
`Modules` list and `Source/<Module>/<Module>.Build.cs` give module names and dependencies;
existing base classes in `Source/` tell you what to extend. Match the existing API macro
(`MYGAME_API`) and folder layout (`Public/`, `Private/`).
2. **Declare reflected types correctly.** The prefix matches the base (`A` actors, `U` other
`UObject`s and components, `F` structs, `E` enums, `I` interfaces). `GENERATED_BODY()` is
the first line in the body and `#include "Name.generated.h"` is the last include.
3. **Make every `UObject` pointer GC-visible.** Members that hold a `UObject` are
`UPROPERTY()` with `TObjectPtr<T>`; non-owning references are `TWeakObjectPtr<T>`. This is
the most common source of random crashes.
4. **Create default components in the constructor** with `CreateDefaultSubobject`, attach with
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Game Audio Mixing
Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.
8/101 credit -
Checked
Game camera tuning
Builds and tunes follow, orbit and first person game cameras in Godot or Cinemachine so they stop jittering.
8/101 credit -
Checked
Game Enemy AI
Designs enemy AI with perception, pathfinding and steering so enemies chase fairly and never get stuck.
8/101 credit -
Checked
Game Loop and Timing
Makes movement, timers and physics behave the same at any frame rate in Unity, Godot, Bevy and web games.
7/101 credit -
Checked
Godot Game Testing
Writes and runs Godot tests with gdUnit4 or GUT, including scene tests and headless runs that report real results.
7/101 credit -
Checked
Game Security Review
Reviews Unity, Godot and Unreal code for cheats that hurt other players, purchase exploits and unsafe save files.
7/101 credit