[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79NV5M8WRD04J3BAZF650RQ":3,"skill-same:01M79NV5M8WRD04J3BAZF650RQ":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M79NV5M8WRD04J3BAZF650RQ","unreal-cpp-gameplay",null,"Write Unreal Engine 5 C++ gameplay code: the UCLASS\u002FUPROPERTY\u002FUFUNCTION reflection macros, the Gameplay Framework (GameMode, Pawn, Character, PlayerController, Actor components), and the module Build.cs. Use when writing or debugging UE C++, deriving from AActor\u002FACharacter\u002F AGameModeBase, exposing properties to the editor or Blueprints, or when the user mentions Unreal C++, UCLASS, GENERATED_BODY, GameMode, ACharacter, or .Build.cs.","mistervaibhav\u002Fskills","mistervaibhav","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F41189028?v=4","01M79KACH05EG9FMM6DQVHAVK9","Vaibhav Singh","01M79KACJB3431Y8CFJQ02MTTM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-cpp-gameplay\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unreal-cpp-gameplay\ndescription: >\n  Write Unreal Engine 5 C++ gameplay code: the UCLASS\u002FUPROPERTY\u002FUFUNCTION reflection macros,\n  the Gameplay Framework (GameMode, Pawn, Character, PlayerController, Actor components), and\n  the module Build.cs. Use when writing or debugging UE C++, deriving from AActor\u002FACharacter\u002F\n  AGameModeBase, exposing properties to the editor or Blueprints, or when the user mentions\n  Unreal C++, UCLASS, GENERATED_BODY, GameMode, ACharacter, or .Build.cs.\nlicense: Apache-2.0\ncompatibility: Unreal Engine 5.4+ (docs verified against current UE5); C++17 toolchain\nmetadata:\n  engine: unreal\n  category: unreal\n  difficulty: advanced\n---\n\n# Unreal C++ Gameplay\n\nWrite correct UE5 gameplay C++: the reflection macros that connect C++ to the editor and\nBlueprints, the Gameplay Framework class roles, and module dependencies. Targets **UE 5.4+**.\n\n## When to use\n\n- Use when creating C++ gameplay classes (`AActor`, `APawn`, `ACharacter`, `AGameModeBase`,\n  `UActorComponent`), exposing properties\u002Ffunctions with `UPROPERTY`\u002F`UFUNCTION`, setting up a\n  GameMode's default classes, or adding a module dependency in `*.Build.cs`.\n- Use when the project has a `Source\u002F` tree with `*.h`\u002F`*.cpp` using `UCLASS`, and `*.Build.cs`.\n\n**When *not* to use:** designer-facing visual logic → `unreal-blueprints`. Player input\nbinding details → `unreal-enhanced-input`. AI logic → `unreal-behavior-trees`. This skill owns\nthe C++ class\u002Freflection foundation those build on.\n\n## Core workflow\n\n1. **Name with the right prefix.** `A` = Actor-derived, `U` = `UObject`\u002Fcomponent-derived,\n   `F` = plain struct, `E` = enum, `I` = interface. The prefix must match the base class.\n2. **Declare the class with reflection macros.** `UCLASS()` above the class, `GENERATED_BODY()`\n   as the first line in the body, and `#include \"ClassName.generated.h\"` as the **last**\n   include in the header.\n3. **Expose data with `UPROPERTY`** (editor\u002FBlueprint visibility *and* garbage-collection\n   tracking) and behaviour with `UFUNCTION` (`BlueprintCallable`, etc.).\n4. **Create components in the constructor** with `CreateDefaultSubobject\u003CT>(TEXT(\"Name\"))` and\n   set the `RootComponent`.\n5. **Know the framework roles:** `AGameModeBase` sets the rules + default classes; `APawn`\u002F\n   `ACharacter` is the controllable body; `APlayerController` is the player's will;\n   `UActorComponent` is reusable behaviour.\n6. **Add module dependencies** to `*.Build.cs` (e.g. `EnhancedInput`) or unresolved-symbol\n   link errors follow.\n7. **Verify** by compiling (Live Coding `Ctrl+Alt+F11` for function bodies; full rebuild for\n   header\u002FUPROPERTY changes) and checking the class\u002Fproperties appear in the editor.\n\n## Patterns\n\n### 1. Minimal Actor class (header + source)\n\n```cpp\n\u002F\u002F Pickup.h\n#pragma once\n#include \"CoreMinimal.h\"\n#include \"GameFramework\u002FActor.h\"\n#include \"Pickup.generated.h\"          \u002F\u002F MUST be the last include\n\nUCLASS()\nclass MYGAME_API APickup : public AActor   \u002F\u002F MYGAME_API = your module's export macro\n{\n    GENERATED_BODY()\npublic:\n    APickup();\n\n    \u002F\u002F EditAnywhere = tweak per-instance & on the CDO; BlueprintReadWrite = BP get\u002Fset.\n    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = \"Pickup\")\n    int32 ScoreValue = 10;\n\n    \u002F\u002F UPROPERTY on a UObject* pointer is what keeps it from being garbage-collected.\n    UPROPERTY(VisibleAnywhere)\n    TObjectPtr\u003CUStaticMeshComponent> Mesh;   \u002F\u002F UE5: TObjectPtr instead of raw UStaticMeshComponent*\n\n    UFUNCTION(BlueprintCallable, Category = \"Pickup\")\n    void Collect();\n\nprotected:\n    virtual void BeginPlay() override;\n};\n```\n\n```cpp\n\u002F\u002F Pickup.cpp\n#include \"Pickup.h\"\n#include \"Components\u002FStaticMeshComponent.h\"\n\nAPickup::APickup()\n{\n    Mesh = CreateDefaultSubobject\u003CUStaticMeshComponent>(TEXT(\"Mesh\"));\n    RootComponent = Mesh;                     \u002F\u002F the mesh is this actor's root\n}\n\nvoid APickup::BeginPlay() { Super::BeginPlay(); }   \u002F\u002F always call Super\nvoid APickup::Collect()   { Destroy(); }\n```\n\n### 2. GameMode wiring its default classes\n\n```cpp\n\u002F\u002F MyGameMode.cpp — set in the constructor so the engine spawns your classes.\nAMyGameMode::AMyGameMode()\n{\n    DefaultPawnClass      = AMyCharacter::StaticClass();\n    PlayerControllerClass = AMyPlayerController::StaticClass();\n}\n```\n\n### 3. Module dependency in Build.cs\n\n```csharp\n\u002F\u002F MyGame.Build.cs\nPublicDependencyModuleNames.AddRange(new string[]\n{\n    \"Core\", \"CoreUObject\", \"Engine\", \"InputCore\", \"EnhancedInput\"\n});\n```\n\n## Pitfalls\n\n- **`generated.h` not last \u002F missing** — compile errors like \"Cannot find generated header\" or\n  \"Expected an include\". It must be the final include in the header.\n- **Forgetting `GENERATED_BODY()`** — UHT (Unreal Header Tool) errors; it must be the first\n  thing inside the class body.\n- **Raw `UObject*` without `UPROPERTY`** — the garbage collector doesn't see it and may destroy\n  it out from under you. Track every UObject pointer with `UPROPERTY` (use `TObjectPtr` in UE5).\n- **Header\u002FUPROPERTY edits with Live Coding** — Live Coding handles function bodies, but\n  changes to `UCLASS`\u002F`UPROPERTY`\u002Fheaders need a full editor restart + rebuild.\n- **Wrong class prefix** — naming an Actor `UFoo` (or a component `AFoo`) breaks UHT; match the\n  prefix to the base type.\n- **Unresolved external symbol at link** — the module providing the API isn't in `Build.cs`\n  `PublicDependencyModuleNames`.\n- **Not calling `Super::`** in overridden `BeginPlay`\u002F`Tick`\u002Fetc. skips engine setup.\n\n## References\n\n- For `UActorComponent` creation\u002Fattachment, the `UPROPERTY` garbage-collection ownership rules\n  (`TObjectPtr`, `TArray\u003CTObjectPtr\u003C>>`, `AddToRoot`), and a replication primer, read\n  `references\u002Fcomponents-and-gc.md`.\n- Primary docs: \"Unreal Engine CPP Quick Start\" and \"Gameplay Framework\"\n  (`https:\u002F\u002Fdev.epicgames.com\u002Fdocumentation\u002Fen-us\u002Funreal-engine\u002Fgameplay-framework-in-unreal-engine`).\n\n## Related skills\n\n- `unreal-blueprints` — exposing C++ to designers; BP\u002FC++ interop.\n- `unreal-enhanced-input` — binding input in a C++ Pawn\u002FCharacter.\n- `unreal-behavior-trees` — C++ AI tasks driven from a behaviour tree.\n","# Unreal C++ Gameplay\n\nWrite correct UE5 gameplay C++: the reflection macros that connect C++ to the editor and\nBlueprints, the Gameplay Framework class roles, and module dependencies. Targets **UE 5.4+**.\n\n## When to use\n\n- Use when creating C++ gameplay classes (`AActor`, `APawn`, `ACharacter`, `AGameModeBase`,\n  `UActorComponent`), exposing properties\u002Ffunctions with `UPROPERTY`\u002F`UFUNCTION`, setting up a\n  GameMode's default classes, or adding a module dependency in `*.Build.cs`.\n- Use when the project has a `Source\u002F` tree with `*.h`\u002F`*.cpp` using `UCLASS`, and `*.Build.cs`.\n\n**When *not* to use:** designer-facing visual logic → `unreal-blueprints`. Player input\nbinding details → `unreal-enhanced-input`. AI logic → `unreal-behavior-trees`. This skill owns\nthe C++ class\u002Freflection foundation those build on.\n\n## Core workflow\n\n1. **Name with the right prefix.** `A` = Actor-derived, `U` = `UObject`\u002Fcomponent-derived,\n   `F` = plain struct, `E` = enum, `I` = interface. The prefix must match the base class.\n2. **Declare the class with reflection macros.** `UCLASS()` above the class, `GENERATED_BODY()`\n   as the first line in the body, and `#include \"ClassName.generated.h\"` as the **last**\n   include in the header.\n3. **Expose data with `UPROPERTY`** (editor\u002FBlueprint visibility *and* garbage-collection\n   tracking) and behaviour with `UFUNCTION` (`BlueprintCallable`, etc.).\n4. **Create components in the constructor** with `CreateDefaultSubobject\u003CT>(TEXT(\"Name\"))` and\n   set the `RootComponent`.\n5. **Know the framework roles:** `AGameModeBase` sets the rules + default classes; `APawn`\u002F\n   `ACharacter` is the controllable body; `APlayerController` is the player's will;\n   `UActorComponent` is reusable behaviour.\n6. **Add module dependencies** to `*.Build.cs` (e.g. `EnhancedInput`) or unresolved-symbol\n   link errors follow.\n7. **Verify** by compiling (Live Coding `Ctrl+Alt+F11` for function bodies; full rebuild for\n   header\u002FUPROPERTY changes) and checking the class\u002Fproperties appear in the editor.\n\n## Patterns\n\n### 1. Minimal Actor class (header + source)\n\n```cpp\n\u002F\u002F Pickup.h\n#pragma once\n#include \"CoreMinimal.h\"\n#include \"GameFramework\u002FActor.h\"\n#include \"Pickup.generated.h\"          \u002F\u002F MUST be the last include\n\nUCLASS()\nclass MYGAME_API APickup : public AActor   \u002F\u002F MYGAME_API = your module's export macro\n{\n    GENERATED_BODY()\npublic:\n    APickup();\n\n    \u002F\u002F EditAnywhere = tweak per-instance & on the CDO; BlueprintReadWrite = BP get\u002Fset.\n    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = \"Pickup\")\n    int32 ScoreValue = 10;\n\n    \u002F\u002F UPROPERTY on a UObject* pointer is what keeps it from being garbage-collected.\n    UPROPERTY(VisibleAnywhere)\n    TObjectPtr\u003CUStaticMeshComponent> Mesh;   \u002F\u002F UE5: TObjectPtr instead of raw UStaticMeshComponent*\n\n    UFUNCTION(BlueprintCallable, Category = \"Pickup\")\n    void Collect();\n\nprotected:\n    virtual void BeginPlay() override;\n};\n```\n\n```cpp\n\u002F\u002F Pickup.cpp\n#include \"Pickup.h\"\n#include \"Components\u002FStaticMeshComponent.h\"\n\nAPickup::APickup()\n{\n    Mesh = CreateDefaultSubobject\u003CUStaticMeshComponent>(TEXT(\"Mesh\"));\n    RootComponent = Mesh;                     \u002F\u002F the mesh is this actor's root\n}\n\nvoid APickup::BeginPlay() { Super::BeginPlay(); }   \u002F\u002F always call Super\nvoid APickup::Collect()   { Destroy(); }\n```\n\n### 2. GameMode wiring its default classes\n\n```cpp\n\u002F\u002F MyGameMode.cpp — set in the constructor so the engine spawns your classes.\nAMyGameMode::AMyGameMode()\n{\n    DefaultPawnClass      = AMyCharacter::StaticClass();\n    PlayerControllerClass = AMyPlayerController::StaticClass();\n}\n```\n\n### 3. Module dependency in Build.cs\n\n```csharp\n\u002F\u002F MyGame.Build.cs\nPublicDependencyModuleNames.AddRange(new string[]\n{\n    \"Core\", \"CoreUObject\", \"Engine\", \"InputCore\", \"EnhancedInput\"\n});\n```\n\n## Pitfalls\n\n- **`generated.h` not last \u002F missing** — compile errors like \"Cannot find generated header\" or\n  \"Expected an include\". It must be the final include in the header.\n- **Forgetting `GENERATED_BODY()`** — UHT (Unreal Header Tool) errors; it must be the first\n  thing inside the class body.\n- **Raw `UObject*` without `UPROPERTY`** — the garbage collector doesn't see it and may destroy\n  it out from under you. Track every UObject pointer with `UPROPERTY` (use `TObjectPtr` in UE5).\n- **Header\u002FUPROPERTY edits with Live Coding** — Live Coding handles function bodies, but\n  changes to `UCLASS`\u002F`UPROPERTY`\u002Fheaders need a full editor restart + rebuild.\n- **Wrong class prefix** — naming an Actor `UFoo` (or a component `AFoo`) breaks UHT; match the\n  prefix to the base type.\n- **Unresolved external symbol at link** — the module providing the API isn't in `Build.cs`\n  `PublicDependencyModuleNames`.\n- **Not calling `Super::`** in overridden `BeginPlay`\u002F`Tick`\u002Fetc. skips engine setup.\n\n## References\n\n- For `UActorComponent` creation\u002Fattachment, the `UPROPERTY` garbage-collection ownership rules\n  (`TObjectPtr`, `TArray\u003CTObjectPtr\u003C>>`, `AddToRoot`), and a replication primer, read\n  `references\u002Fcomponents-and-gc.md`.\n- Primary docs: \"Unreal Engine CPP Quick Start\" and \"Gameplay Framework\"\n  (`https:\u002F\u002Fdev.epicgames.com\u002Fdocumentation\u002Fen-us\u002Funreal-engine\u002Fgameplay-framework-in-unreal-engine`).\n\n## Related skills\n\n- `unreal-blueprints` — exposing C++ to designers; BP\u002FC++ interop.\n- `unreal-enhanced-input` — binding input in a C++ Pawn\u002FCharacter.\n- `unreal-behavior-trees` — C++ AI tasks driven from a behaviour tree.\n",{"name":5,"license":15,"metadata":24,"description":27,"compatibility":28},{"engine":25,"category":25,"difficulty":26},"unreal","advanced","Write Unreal Engine 5 C++ gameplay code: the UCLASS\u002FUPROPERTY\u002FUFUNCTION reflection macros, the Gameplay Framework (GameMode, Pawn, Character, PlayerController, Actor components), and the module Build.cs. Use when writing or debugging UE C++, deriving from AActor\u002FACharacter\u002F AGameModeBase, exposing properties to the editor or Blueprints, or when the user mentions Unreal C++, UCLASS, GENERATED_BODY, GameMode, ACharacter, or .Build.cs.\n","Unreal Engine 5.4+ (docs verified against current UE5); C++17 toolchain","main","6d4e3296d58b2720c5b1026197cd069b1dde4789","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmistervaibhav","Software Engineer","2026-07-24 17:16:42",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mistervaibhav\u002Fskills --skill unreal-cpp-gameplay",{"tool":41,"command":42},"bunx","bunx skills add mistervaibhav\u002Fskills --skill unreal-cpp-gameplay",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mistervaibhav\u002Fskills --skill unreal-cpp-gameplay","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-cpp-gameplay\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcomponents-and-gc.md","REFERENCE","参考文档",4025,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-cpp-gameplay\u002Freferences\u002Fcomponents-and-gc.md",[56,64,72,80,87,94],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79NZDV5781GA6SJMN1QPXB4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79NZ8SEVWT4WYD49BV980YW","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", or \"type hierarchy\". Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","MIT","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79NYVQS5NYHH36NXF2AHP8B","web-haptics","Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79NY8AMC62DDRSH21WKXJVE","visual-novel","Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fvisual-novel\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79NWFM5R9QC9Y2AT40EHF44","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", or \"navigation problems\". Covers Nielsen's 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79NVSG7AB3MSFT8Y6EEHG1B","unreal-packaging","Package and ship an Unreal Engine 5 project: the Platforms menu Package Project flow, build configurations (Development vs Shipping), cooking content, packaging settings and the Game Default Map, and command-line builds with RunUAT BuildCookRun. Use when packaging a build, making a shipping build, cooking content, configuring packaging settings, or when the user mentions package Unreal, cook content, shipping build, or BuildCookRun.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-packaging\u002FSKILL.md",[],[]]