/gmas:gmas-reviewfrom GMAS
Reviews changes to GMC (Gameplay Movement Component) and GMAS (Gameplay Ability System) code before merge. Performs two-pass review: spec compliance then quality, with networking checklist.
Ships in GMAS. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Behavior below was verified against GMC 2.3.x and GMAS 1.4. Confirm signatures in this project's own headers (paths are relative to each plugin's root, e.g.
Source/GMCCore/Public/Components/GMCReplicationComponent.h); GMC's source is not part of this plugin.
This skill is a review procedure, not a reference. The rules live in gmas:gmas-rules (where state lives, binding order, queue types, server operations), gmas:gmc-prediction (the move cycle, replays, combined moves) and the authoring skills (gmas:gmas-ability, gmas:gmas-effect, gmas:gmas-attribute, gmas:gmas-task); this skill says what to verify, in which order, and how to report it. Inputs: the request (task text, plan or issue), the whole diff (git diff --stat first, then every hunk, new and deleted files included), the tests with their run output, and the implementer's reported deviations. Read the request before the diff, and review the code rather than its description: when a commit message says "guarded against replay", find the guard. GMAS paths below are relative to Source/GMCAbilitySystem/, GMC paths to the GMC plugin root.
Pass 1, spec compliance. Does the change do what was asked, all of it and nothing else?
Pass 2, quality. Correctness, networking, hygiene and tests, with the checklists below; each finding ranked Critical, Important or Minor (definitions under Report format).
Never start pass 2 while pass 1 has open issues: reviewing the quality of code that may be rewritten to meet the spec is wasted, and it tempts the author to fix the quality items and leave the spec gap. When spec fails, the Quality section of the report reads "not started (spec open)".
Trace every hunk that runs inside a GMC move or touches replicated state on three machines: the owning client, the server (dedicated, and a listen host whose own pawn is never predicted or corrected) and a simulated proxy. The guards and roles are in gmas:gmc-prediction; the GMAS placement rules in gmas:gmas-rules.
HasAuthority() holds (AActor, or the ASC's inline role check in Public/Components/GMCAbilityComponent.h); a client branch predicts cosmetics and bound state, never results. Role branches use GMC's queries (IsAutonomousProxy(), IsSimulatedProxy(), IsLocallyControlledServerPawn(), IsRemotelyControlledServerPawn() in Source/GMCCore/Public/Components/GMCReplicationComponent.h), and both sides of every branch were read: the server branch assumes no local player or viewport (dedicated server), the client branch no authority, and whatever one side queues the other side drains.!IsReplayingForGMASLogic() && !IsSimulatedMove() on the owner (1.4+; CL_IsReplaying() on the movement component for non-GMAS code or older trees), !IsSimulatedMove() on the server (IsSimulatedMove() in Source/GMCCore/Public/Components/GMCMovementUtilityComponent.h). A guard on one path and not its twin (the server half, an effect's EndEffectEvent, a task's Completed handler, an OnEffectApplied / OnEffectRemoved handler: those broadcast inside the move, replays included) is a finding.CL_DoNotCombineNextMove() or driven by an input bound CombineIfUnchanged; otherwise the next combined re-run of the same move fires it again.GenSimulationTick; proxy cosmetics come from GenSimulationTick, from bound values with a SimulationMode other than None, or from change delegates. Data a proxy needs at spawn also replicates as an ordinary initial-only property (PostSpawnSmoothingPause).GenPredictionTick, ability TickEvent, effect hooks and task Tick read only bound state, ActionTimer, the move's DeltaTime and GetMoveTimestamp(). No GetWorld()->GetTimeSeconds(), FPlatformTime, FDateTime, frame delta, timers, random numbers without a bound seed, anything that differs per machine (cursor, viewport, local player, frame rate, editor-only state), other pawns' displayed transforms, or unbound members written in one move and read in the next. Server-only bookkeeping is not polled from the prediction tick.UPROPERTY, attribute row and member has exactly one home from the "where does this state live" table in gmas:gmas-rules. Grep the diff for DOREPLIFETIME, Replicated and bGMCBound = false: none of them is read by predicted logic. Grep for new Bind* calls: none of them is read only by the HUD or cosmetics.BindReplicationData_Implementation calls Super first, binds the game's values in a fixed order with no condition around any bind, sets the ASC's GMCMovementComponent (1.4.1+ resolves a null pointer from the owner and binds nothing, with an Error, when there is none; 1.4.0 dereferenced it unchecked) and ends with the ASC's BindReplicationData(). No Bind* call anywhere else; the same bindings on every machine.Clamp.Max or MaxAttributeTag, or unticks bClampMax (Public/Attributes/GMCAttributeClamp.h); the default clamp pins the value at 0 (1.4+). Same for the floor.CooldownTime (Public/Ability/GMCAbility.h) and the ASC's ActiveCooldowns (Public/Components/GMCAbilityComponent.h) only where no predicted logic inspects it, because replays do not rewind them, and only with an AbilityTag set (an empty tag never cools down).bIsClientPredicted = true on the live move; server-decided cues use false from the server; receivers skip when they have authority or are the predicted owner (the helpers do this; a hand-written multicast must); bDelayByGMCSmoothing where the cue must land on a proxy's displayed position; montages through GMC's PlayMontage_Blocking, never a multicast. The table is in gmas:gmas-ability.ApplyAbilityEffect(..., ServerAuth), AddImpulse, FireCustomEvent and activations on server-controlled pawns are called on the target's ASC, on the server, and nothing at the call site assumes the operation applied inline: it lands in the target's next move (or next ancillary tick for AI, 1.4+). The first granted candidate passes its gates on both sides.AddImpulse(FVector Impulse, bool bVelChange) on the target's ASC from the server; "set velocity" is Desired − Current with bVelChange = true; nobody writes another pawn's velocity directly. A pawn's own dash writes its velocity inside its own prediction tick on both sides.QueueAbility from outside the pawn's move (input handler, AI tick, timer), never from GenPredictionTick or an ability tick of the same pawn; TryActivateAbility* appears only in server-only code or tests.GetTime() across machines has exactly one AGMC_WorldTimeReplicator spawned (Source/GMCCore/Public/Replication/WorldTime.h).gmas:gmas-effect): Predicted / PredictedQueued only from logic both sides run, on bound attributes; ServerAuth for what one pawn does to another and for starting effects; ServerInstantAttribute (1.4+) only for Instant attribute-only effects on unbound attributes with no Delay, GrantedTags, GrantedAbilities, cancel or chain fields (1.4.1 falls back to ServerAuth with an Error; 1.4.0 ran them server-only). Removal uses the queue type the apply used.bUniqueByEffectTag (1.4+, Public/Effects/GMCAbilityEffect.h) wherever single-instance or replace semantics are intended; a refresh is remove-then-apply. The grace deferral (ClientGraceTime, DefaultClientGraceTime) works on 1.4.1+ unless the project set the default to 0; nothing relies on it on 1.4.0, where it is disabled. Nothing treats ClientEffectApplicationTimeout as the rollback of a rejected prediction.AttributeDataAssets, AbilityMaps, StartingAbilities, StartingEffects and StartingTags are filled in class defaults, the constructor or PostInitializeComponents before Super, from data every machine has; GMCMovementComponent is set before BindReplicationData().Attribute.*, Ability.*, Input.*, State.*, effect and event tag exists in the project's tag ini or as a native tag (RequestGameplayTag on a missing tag ensures at runtime). Prefixes follow the pickers: Input.* is the map key, the QueueAbility argument and what GrantAbilityByTag takes; Ability.* is the ability's own tag.ActivationQuery, EndOtherAbilitiesQuery, BlockOtherAbilitiesQuery (it ends matching abilities; it blocks nothing), EndAbilityOn*Query, RemoveEffectsByQuery, CancelAbilitiesWithTag, CancelAbilityOn*, RemoveActiveAbilityEffectByTag and RemoveSynchronizedTag (exact on 1.4.1+) match hierarchically or by definition container: each was checked against every tag it could match, not only the intended one. Gates (ActivationRequiredTags, ActivationBlockedTags) hold bound tags only.CancelAbility() (or CancelAbilitiesByTag / ByQuery, 1.4.1+); EndAbility() is for an ability that completed, because it runs EndAbilityEvent, broadcasts OnAbilityEnded and opens the chain window. Cleanup that must run on both paths is in EndAbilityEvent and CancelAbilityEvent (1.4.1+). On 1.4.1+ the external paths (CancelAbilitiesWithTag, effects' CancelAbilityOn* and EndAbilityOn*Query, the confirm timeout, the watchdog, RPCClientEndAbility) cancel; on 1.4.0 they were natural ends. A BeginAbility override that creates tasks, declares effects or commits a cost after Super returns first when AbilityState == Ended. Effects the ability must take with it are applied with HandlingAbility = this or registered with DeclareEffect; a committed non-Instant cost is declared on 1.4.1+, removed on both end paths by hand on 1.4.0.PreBeginAbility refuses an unaffordable activation (a Ticking / Periodic cost judged over one second; the press is consumed); the cost attributes are GMC-bound so both sides agree. On 1.4.0 PreExecuteCheckEvent must return CanAffordAbilityCost(), or with the clamp floor an unaffordable CommitAbilityCost clamps at 0 and the ability is free. The cost is committed once.bActivateOnMovementTick identical for every class on one input tag (true is the 1.4 default; explicit on older trees); false only for work that must happen exactly once, knowing that only activation and task-payload dispatch move to the ancillary tick while Tick still runs in prediction.MatchTagToBool every prediction tick for state derived from bound values; no AddActiveTag / RemoveActiveTag outside the move; server-set tags through AddSynchronizedTag (1.4+).DeprecatedProperty metadata): SetAttributeValueByTag (changes nothing, returns false on 1.4.1+), ExecuteSyncedEvent / OnSyncedEvent (use FireCustomEvent / OnCustomEvent), OnPreAttributeChanged (never broadcast), GetQueuedAbilityCount (always 0), GetEffectFromHandle_BP / GetActiveEffectByHandle (use GetEffectById), ServerAuthMove (use ServerAuth), IsClientOrRemoteListenServerPawn() (use DrivesPawnLocally()). FAttribute::OnAttributeChanged is gone in 1.4.1. A new public function whose body is commented out or returns a constant is Critical.gmas:gmas-task). ProgressTask compares TaskData.GetScriptStruct() with its exact payload struct before Get<T>() and drops a mismatch with an Error (every built-in SetTargetData* does on 1.4.1+): the payload is client input the server has not checked; the value is clamped or rejected with a rule both sides apply; bTaskCompleted is latched before any broadcast and every path returns early on it; tasks are created from BeginAbilityEvent or Completed handlers only, identically on both sides; live polls (input, camera) and payload sends only where DrivesPawnLocally() (1.4.1+; the deprecated IsClientOrRemoteListenServerPawn() before, same meaning) and not replaying, with the result sent as a payload; a server for a remote pawn queues nothing; Activate and AncillaryTick call Super; nothing sets bTickingTask.AddFilteredTagChangeDelegate and AddAttributeChangeDelegate (Public/Components/GMCAbilityComponent.h) return an FDelegateHandle that is kept and passed to RemoveFilteredTagChangeDelegate(Tags, Handle) / RemoveAttributeChangeDelegate(Handle) in OnDestroy or EndPlay; dynamic delegates get RemoveDynamic. A handle declared and never assigned is a finding.OnAttributeChanged and OnActiveTagsChanged fire from the ancillary and simulation ticks and drive HUD and cosmetics; a gameplay decision in a handler is a finding. OnEffectApplied / OnEffectRemoved fire inside the move (replay guard above); their handlers use the instance they are handed (on 1.4.0 the id was still 0 there and a lookup failed; 1.4.1+ registers the instance first).bPreserveGrantedTagsIfMultiple), but a tag granted directly with GrantAbilityByTag is not protected. On 1.4.0 two effects granting one tag lose it when the first ends: re-grant it, or fold the grants into one effect.GetExternalModifierValue (1.4+) returns the same value on the server and the owning client.UPROPERTY() on every UObject reference a UObject holds (TObjectPtr or raw); TWeakObjectPtr for references it does not own; no raw actor or component pointer cached across frames without one of the two..generated.h last, forward declarations in headers where a pointer suffices, no include of another module's Private/ headers; Build.cs lists every module whose headers the change includes.const; struct and container parameters const&; locals that never change const.-Wunreachable-code-loop-increment, "loop will run at most once"); no unused anonymous-namespace or static functions and no unused locals (-Wunused-function, -Wunused-variable); f suffix on literals assigned to float (C4305).override and calls Super where the base does work: BeginPlay, EndPlay, PostInitializeComponents, the five GMC hooks, Activate, AncillaryTick, OnDestroy.TEXT() on string literals; IsValid() before using an actor that may be pending kill; Cast results checked; no GetWorld() in constructors.check / checkNoEntry / UE_LOG(..., Fatal, ...) only for programmer invariants; data errors (a missing class, an unknown tag, a bad payload) log and return. Return values tell the truth: no function returns true or a handle after doing nothing. Nothing is declared and never used (fields, delegates, enum values, functions).&& / || is parenthesised.LogTemp in shipped code), at a level that matches the event (Warning only for something a developer must act on; opt-in traces behind a console variable, at Log in GMAS), and healthy paths add no Warning. No // TEMP, // TODO or test switch left in a shipped path; no commented-out code.Public/ and Private/ layout; Blueprint-exposed members carry the specifiers and categories their neighbours use.Source/GMCAbilitySystemTests/Private/GMAS_EffectSpec.cpp (1.4.1+; Private/Tests/ in the runtime module before; stub movement component, ASC, real data rows), one case per rule, gate or end path, as the authoring skill's Which test to write describes. Setup that edits a class default object restores it in teardown.GetMoveTimestamp() with −1, so a spec that calls the ASC's GenPredictionTick overwrites ActionTimer with it: the spec drives the tick path its authoring skill names instead (1.4.1+: SetActionTimerForTest, TickActiveAbilitiesForTest, CleanupStaleAbilitiesForTest; TickActiveEffects plus ProcessAttributes; the PreLocalMoveExecution / GenPredictionTick / GenAncillaryTick sequence only where dispatch does not read the clock). An ownerless component reports no authority, so an activated instance is an unconfirmed client one and is cut with [AbilityCut] after ServerConfirmTimeout (2 s of ActionTimer): the written clock stays inside that window, the spec sets bForceAuthorityForTest (honoured by that check on 1.4.1+), or the test ability raises the default (gmas:gmas-task, gmas:gmas-testing).TestEqual on GetAttributeValueByTag, GetAttributeRawValue, HasActiveTag, counts and states after the step, not only "does not crash" or "returned true"; a negative case for each gate; the expected value computed from the rule, not copied from a first run.gmas:gmas-testing), with network emulation when the claim is about latency, and asserts on both worlds. A standalone test offered for a networking claim is a spec finding (the requested proof is missing), not a quality one.ServerConfirmTimeout 2 s, the server-operation grace ServerOperationGraceSeconds 1 s, the 6 s task watchdog, PostSpawnSmoothingPause plus a settle) with slack for a slow machine.UWorld*, pawn or component cached across latent steps dangles when the session ends or the actor respawns: tests look them up each frame from the editor's world contexts, or hold TWeakObjectPtr. Cleanup runs even when a step fails and restores cvars, verbosity and class defaults.[AbilityCut], Warning-level [TaskDiag], [BatchOp], Not Confirmed By Server or a correction inside the window it measures (gmas:gmas-debug), or declares them expected with AddExpectedErrorPlain (a literal match: AddExpectedError is a regex, and [AbilityCut] would be a character class) and a reason..gitattributes); no Saved/, Intermediate/, Binaries/, DerivedDataCache/, logs, screenshots or scratch files; generated content is regenerated by its generator, not hand-edited.bActivateOnMovementTick, bPreserveGrantedTagsIfMultiple and the clamp semantics did between 1.3 and 1.4) or a behaviour that changes under an unchanged name (as cancel versus end did in 1.4.1) is listed under breaking changes in the release notes, with old → new → migration; a new public API has a spec; a deprecated function carries UE_DEPRECATED (or DeprecatedFunction metadata on a UFUNCTION), logs once and names its replacement and removal release, instead of a commented-out body.Under 500 words. One finding per item, each with file:line, what, why (the rule, citing the skill rather than restating it) and the fix. Do not list what is fine beyond the one-line summaries.
## Spec ❌ (or ✅ — all N requested items present; deviations accepted: …)
1. `Source/MyGame/Private/MyMovementCmp.cpp:88` — `DashCooldown` is a plain member; the request asked for a bound float — predicted logic reads it, so a replay cannot restore it (`gmas:gmas-rules`) — bind it in `BindReplicationData_Implementation`.
2. `Source/MyGameTests/Private/DashSpec.cpp` — requested test `MyGame.Dash.CostIsSpent` missing — the request names it — add the spec with the stated assertion.
## Quality ❌ (or ✅; or "not started (spec open)")
### Critical
1. `file:line` — what — why — fix
### Important
1. …
### Minor
1. …
Verdict: one line — merge; fix Critical then re-review; back to spec.
Severity: Critical ships a bug or a leak: a desync or visible replay, a crash, the server trusting client data, an unguarded one-shot, a wrong queue type, predicted state replicated, a GMC excerpt or a project name or local path in shared text. Important is wrong but contained: a missing guard on a cosmetic, a warning that becomes an error elsewhere, a test that proves nothing, an unbounded wait, a delegate stored and never removed. Minor is style, naming, comments, ordering. When unsure between two levels, pick the higher and say why.
file:line, what, why with the skill it comes from, and a fix; findings are ranked by the definitions above.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
unreal-engine, gmc, gmas, code-review, multiplayer, gameplay-ability-system
12 skills in this plugin
/gmas-abilityUse when creating or modifying a UGMCAbility - lifecycle hooks, cost and cooldown, activation tags, chains, tasks, input, and its visuals and sounds on every machine./gmas-attributeUse when adding or changing GMAS attributes - GMCAttributesData rows, clamps, GMC-bound versus replicated, reading and modifying values at runtime, custom modifier calculators./gmas-debugUse when GMAS or GMC gameplay misbehaves - desync, double activation, late or missing effects, attributes stuck at zero, replay oddities, crashes in the ability component; covers logs, console variables, the debugger and a symptom table./gmas-effectUse when creating or modifying a UGMCAbilityEffect or FGMCAbilityEffectData - duration and periodic settings, granted tags, modifiers and conditions, queue type, runtime-built effects, removal./gmas-maintainUse when working inside the GMAS repository itself - branches, the DeepWorlds sync, resolving a sync conflict pull request, running the GMAS specs, promoting and releasing./gmas-rulesUse when changing gameplay that involves a GMC_AbilitySystemComponent (GMAS) - deciding where state lives (bound, replicated, derived), attribute binding, ability lifetime under replay, effect queue types, server operations, impulses and tags.npx claudepluginhub reznok/gmcabilitysystem --plugin gmasOther plugins' skills for the same job