[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79QJ762FTESRHA8DRQ95K4Q":3,"skill-same:01M79QJ762FTESRHA8DRQ95K4Q":51},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M79QJ762FTESRHA8DRQ95K4Q","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.","JunMystery\u002FAgent-Guidance","JunMystery","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F161468934?v=4","01M79MTMV8F0BY8NK1A92RA8A0","Jun","01M79MTMWCFBKPHN5B25E6V20B",0,"MIT","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\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.\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.8**.\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` from the editor, or a full build from\n   the IDE with the editor closed) and checking the class\u002Fproperties appear in the editor. For\n   automation tests, run headless with\n   `UnrealEditor-Cmd \u003CProject>.uproject -ExecCmds=\"Automation RunTest MyGame;Quit\"`\n   (`RunTest` takes a test name, a dotted prefix, or `Group:\u003Cname>`).\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** — function-body edits are reliable. Structural\n  changes (new functions, new `UPROPERTY`s) rely on Object Reinstancing, which is on by default\n  but less stable; code that caches pointers to reinstanced objects must refresh them. If the\n  editor or Blueprints misbehave after such a change, close the editor and build from the IDE.\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>>`, `TWeakObjectPtr`, holding UObjects from plain C++\n  classes), 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.8**.\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` from the editor, or a full build from\n   the IDE with the editor closed) and checking the class\u002Fproperties appear in the editor. For\n   automation tests, run headless with\n   `UnrealEditor-Cmd \u003CProject>.uproject -ExecCmds=\"Automation RunTest MyGame;Quit\"`\n   (`RunTest` takes a test name, a dotted prefix, or `Group:\u003Cname>`).\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** — function-body edits are reliable. Structural\n  changes (new functions, new `UPROPERTY`s) rely on Object Reinstancing, which is on by default\n  but less stable; code that caches pointers to reinstanced objects must refresh them. If the\n  editor or Blueprints misbehave after such a change, close the editor and build from the IDE.\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>>`, `TWeakObjectPtr`, holding UObjects from plain C++\n  classes), 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,"description":7},"main","5d0a87185c0e172c3901e2a6e5916b6d544b8b94","skills\u002Funreal-cpp-gameplay","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance","https:\u002F\u002Fgithub.com\u002FJunMystery","AI is the typist, I am the architect. Building efficient, secure, and user-centric products through disciplined AI prompt engineering.","2026-11-13 17:41:25",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add JunMystery\u002FAgent-Guidance --skill unreal-cpp-gameplay",{"tool":37,"command":38},"bunx","bunx skills add JunMystery\u002FAgent-Guidance --skill unreal-cpp-gameplay",{"tool":40,"command":41},"pnpm","pnpm dlx skills add JunMystery\u002FAgent-Guidance --skill unreal-cpp-gameplay","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Funreal-cpp-gameplay\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fcomponents-and-gc.md","REFERENCE","参考文档",4409,"https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Funreal-cpp-gameplay\u002Freferences\u002Fcomponents-and-gc.md",[52,58,64,70,76,82],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M79QR1E309VJ6CTQKB32AWWA","zero-trust-architecture-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-architecture-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79QQV7GHYR02DYGN41S23WN","xss-filter-evasion-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxss-filter-evasion-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M79QQNSN7YB8XB61FFSCS3WH","xs-leaks-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxs-leaks-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79QQHZZJKFDY9132G5A65C2","xpath-injection-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxpath-injection-prevention-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M79QQB9ZSD3DJG8658EHQXR1","xml-security-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-security-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79QQ60WKV7PFMXWT9CW8PM6","xml-external-entity-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-external-entity-prevention-cheat-sheet\u002FSKILL.md",[],[]]