ue-actor-component-arc…
Use when writing or debugging AActor and UActorComponent C++: constructor vs BeginPlay, PostInitializeComponents, EndPlay…
Use when implementing or debugging the Gameplay Ability System in C++ — abilities, effects, attributes, cues and the AbilitySystemComponent. Also use when the user mentions 'GAS', 'UGameplayAbility', 'ActivateAbility', 'CommitAbility', 'UGameplayEffect', 'UAttributeSet',
Claude Code
$ npx -y skills add quodsoler/unreal-engine-skills --skill ue-gameplay-abilities --agent claude-code
Codex
$ npx skills add quodsoler/unreal-engine-skills --skill ue-gameplay-abilities -a codex -y
Cursor
$ npx skills add quodsoler/unreal-engine-skills --skill ue-gameplay-abilities -a cursor -y
Gemini CLI
$ npx skills add quodsoler/unreal-engine-skills --skill ue-gameplay-abilities -a gemini-cli -y
GitHub Copilot
$ npx skills add quodsoler/unreal-engine-skills --skill ue-gameplay-abilities -a github-copilot -y
OpenCode
$ npx skills add quodsoler/unreal-engine-skills --skill ue-gameplay-abilities -a opencode -y
Windsurf
$ npx skills add quodsoler/unreal-engine-skills --skill ue-gameplay-abilities -a windsurf -y
name: ue-gameplay-abilities description: "Use when implementing or debugging the Gameplay Ability System in C++ — abilities, effects, attributes, cues and the AbilitySystemComponent. Also use when the user mentions 'GAS', 'UGameplayAbility', 'ActivateAbility', 'CommitAbility', 'UGameplayEffect', 'UAttributeSet', 'FGameplayAttributeData', 'AbilitySystemComponent', 'InitAbilityActorInfo', 'GiveAbility', 'TryActivateAbility', 'ability task', 'GameplayCue', 'cooldown', 'cost', 'buff', 'debuff', 'damage execution' or 'ASC on PlayerState'. For montage playback, see ue-animation-system; for replication modes and prediction, see ue-networking-replication." metadata: version: "2.0.0" engine: "5.8"
Target engine: **UE 5.8**. APIs below are verified against the 5.8 headers; older forms are listed under "Deprecated — do not use".
GAS ships as the `GameplayAbilities` plugin (`Engine/Plugins/Runtime/GameplayAbilities`), which is production-ready, not Experimental. Enable it in the `.uproject`, then add `"GameplayAbilities"`, `"GameplayTags"` and `"GameplayTasks"` to `PublicDependencyModuleNames` in your module's `Build.cs`. This skill covers `UAbilitySystemComponent`, `UGameplayAbility`, `UGameplayEffect`, `UAttributeSet`, `UAbilityTask` and Gameplay Cues.
Read `.agents/ue-project-context.md` if it exists (module names, conventions, enabled plugins, GAS/networking setup). Do not stop if it is missing.
Identify the area from the request and the codebase. Ask only when two plausible readings would produce different code.
| Request is about… | Go to | |---|---| | Where the ASC lives, init order, respawn, replication mode | [ASC Ownership and Initialization](#asc-ownership-and-initialization) | | Writing an ability, activation, cost, cooldown, policies | [Gameplay Abilities](#gameplay-abilities) | | Waiting on montages, events, targeting, timers, tag queries | [Ability Tasks](#ability-tasks) | | Damage, buffs, stacking, executions, immunity, GE components | [Gameplay Effects](#gameplay-effects) | | Health/mana floats, clamping, attribute replication | [Attribute Sets](#attribute-sets) | | Tags that block, grant or cancel abilities; loose tags | [Tags in GAS](#tags-in-gas) | | Particles, sounds, hit impacts, cue notify classes | [Gameplay Cues](#gameplay-cues) | | Cue scan paths, global curve tables, project config | [Project Settings](#project-settings) |
| Pillar | Class | Header | Purpose | |---|---|---|---| | Component | `UAbilitySystemComponent` | `AbilitySystemComponent.h` | Owns abilities, effects, attributes, tags | | Abilities | `UGameplayAbility` | `Abilities/GameplayAbility.h` | What happens when activated | | Effects | `UGameplayEffect` | `GameplayEffect.h` | Data-driven attribute mutation | | Attributes | `UAttributeSet` | `AttributeSet.h` | Replicated `FGameplayAttributeData` stats | | Tasks | `UAbilityTask` | `Abilities/Tasks/AbilityTask.h` | Latent steps inside an ability |
Gameplay tags thread through all of them as requirements, grants and blockers.
| Owner | When | Notes | |---|---|---| | `APlayerState` | Networked player characters | ASC survives pawn death; use `Mixed` replication | | `APawn` / `ACharacter` | AI, single-player | Simplest; use `Minimal` for AI, `Full` if a pawn-owned ASC needs full data on all clients |
Every actor that owns or exposes an ASC implements `IAbilitySystemInterface`:
// MyCharacter.h
#pragma once
#include "GameFramework/Character.h"
#include "AbilitySystemInterface.h"
#include "MyCharacter.generated.h"
class UAbilitySystemComponent;
UCLASS()
class MYGAME_API AMyCharacter : public ACharacter, public IAbilitySystemInterface
{
GENERATED_BODY()
public:
AMyCharacter();
virtual UAbilitySystemComponent* GetAbilitySystemComponent() const override;
protected:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "GAS")
TObjectPtr<UAbilitySystemComponent> AbilitySystemComponent;
};// MyCharacter.cpp
#include "MyCharacter.h"
#include "AbilitySystemComponent.h"
AMyCharacter::AMyCharacter()
{
AbilitySystemComponent = CreateDefaultSubobject<UAbilitySystemComponent>(TEXT("AbilitySystemComponent"));
AbilitySystemComponent->SetIsReplicated(true);
AbilitySystemComponent->SetReplicationMode(EGameplayEffectReplicationMode::Mixed);
}
UAbilitySystemComponent* AMyCharacter::GetAbilitySystemComponent() const
{
return AbilitySystemComponent;
}`InitAbilityActorInfo(OwnerActor, AvatarActor)` must run on **both** server and client. For a pawn-owned ASC that is `BeginPlay` with `(this, this)`. For a PlayerState-owned ASC it is `PossessedBy` on the server and `OnRep_PlayerState` on the client, with `(PlayerState, Character)`. Full dual-path code, respawn handling and the AI variant are in [gas-setup-patterns.md](references/gas-setup-patterns.md).
| `EGameplayEffectReplicationMode` | Effect on simulated proxies | |---|---| | `Minimal` | No GE replication; minimal tag/cue data only. AI and non-player actors | | `Mixed` | Full GEs to the owning connection, minimal to everyone else. Player characters | | `Full` | Every GE replicates to every client |
`Mixed` sends full GE data to the connection that owns the ASC's owner actor (`GameplayEffect.cpp:5240`), so it works for a PlayerState-owned ASC and for a pawn-owned ASC once a PlayerController possesses the pawn. Choosing `Full` over `Mixed` is a bandwidth decision, not a correctness one. `Minimal` does not work for player-owned ASCs (`AbilitySystemComponent.h:83`). See `ue-networking-replication` for what each mode costs on the wire.
// MyFireballAbility.h #pragma once #include "Abilities/GameplayAbility.h" #include "MyFireballAbility.generated.h" class UGameplayEffect; UCLASS() class MYGAME_API UMy
A collection of 31 AI agent skills for Unreal Engine C++ development. Built for game developers who want AI coding agents to help write correct, production-quality UE5 C++ code.
Use when writing or debugging AActor and UActorComponent C++: constructor vs BeginPlay, PostInitializeComponents, EndPlay…
Use when writing Unreal Engine C++ AI — AI controllers, behavior tree nodes, blackboards, AI perception, navmesh pathfinding, EQS…
Use when writing or debugging Unreal Engine animation C++: AnimInstance subclasses, thread-safe update, FAnimInstanceProxy,…
Use when offloading work off the game thread, dispatching results back to it, running data-parallel loops, or scheduling timers…
Use when playing, mixing or debugging sound in Unreal Engine — one-shot SFX, looping ambience, music, dialogue or procedural…
Use when exposing C++ to Blueprint or calling Blueprint from C++: UFUNCTION(BlueprintCallable), BlueprintPure,…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…