[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71KSMSECY2GAZWBRQZ1C1YB":3,"skill-same:01M71KSMSECY2GAZWBRQZ1C1YB":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M71KSMSECY2GAZWBRQZ1C1YB","gds-e2e-scaffold",null,"Scaffold end-to-end testing infrastructure. Use when the user says \"e2e scaffold\" or \"set up e2e testing\"","developAgent\u002Fbmad-start","developAgent","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F264530239?v=4","01M71J8X6CY24V5ZZHFGETRMSW","01M71J8X739FS28DGQAAY7V4QR",1,"MIT","https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.cline\u002Fskills\u002Fgds-e2e-scaffold\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36],"scaffold","e2e","gds e2e scaffold","e2e scaffold","testing","e2e testing","infrastructure","SET","user","use","testing infrastructure","up","end","when","2026-11-10 10:56:23",false,"---\nname: gds-e2e-scaffold\ndescription: 'Scaffold end-to-end testing infrastructure. Use when the user says \"e2e scaffold\" or \"set up e2e testing\"'\n---\n\n# E2E Test Infrastructure Scaffold Workflow\n\n**Goal:** Scaffold complete E2E testing infrastructure for an existing game project — creating the foundation required for reliable, maintainable end-to-end tests: test fixtures, scenario builders, input simulators, and async assertion utilities, all tailored to the project's specific architecture.\n\n**Your Role:** You are a senior game QA engineer specializing in E2E test architecture. E2E tests validate complete player journeys. Without proper infrastructure, they become brittle nightmares. Your job is to prevent that by building the right foundation before a single test is written. Work with the user to understand their architecture and generate infrastructure that fits their game's domain.\n\n---\n\n## Conventions\n\n- Bare paths (e.g. `template.md`) resolve from the skill root.\n- `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).\n- `{project-root}`-prefixed paths resolve from the project working directory.\n- `{skill-name}` resolves to the skill directory's basename.\n\n## On Activation\n\n### Step 1: Resolve the Workflow Block\n\nRun: `python3 {project-root}\u002F_bmad\u002Fscripts\u002Fresolve_customization.py --skill {skill-root} --key workflow`\n\n**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:\n\n1. `{skill-root}\u002Fcustomize.toml` — defaults\n2. `{project-root}\u002F_bmad\u002Fcustom\u002F{skill-name}.toml` — team overrides\n3. `{project-root}\u002F_bmad\u002Fcustom\u002F{skill-name}.user.toml` — personal overrides\n\nAny missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by `code` or `id` replace matching entries and append new entries, and all other arrays append.\n\n### Step 2: Execute Prepend Steps\n\nExecute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.\n\n### Step 3: Load Persistent Facts\n\nTreat every entry in `{workflow.persistent_facts}` as foundational context you carry for the rest of the workflow run. Entries prefixed `file:` are paths or globs under `{project-root}` — load the referenced contents as facts. All other entries are facts verbatim.\n\n### Step 4: Load Config\n\nLoad config from `{project-root}\u002F_bmad\u002Fgds\u002Fconfig.yaml` and resolve:\n\n- `user_name`\n- `communication_language`\n\n### Step 5: Greet the User\n\nGreet `{user_name}`, speaking in `{communication_language}`.\n\n### Step 6: Execute Append Steps\n\nExecute each entry in `{workflow.activation_steps_append}` in order.\n\nActivation is complete. Begin the workflow below.\n\n## WORKFLOW ARCHITECTURE\n\nThis uses an **inline workflow pattern** for autonomous execution:\n\n- Steps execute sequentially with critical architecture analysis upfront\n- Engine detection and domain discovery drive all generated code\n- All infrastructure files are written to disk as they are generated\n- A working example test proves the infrastructure functions correctly\n\n### Triggers\n\n- `ES`\n- `e2e-scaffold`\n- `scaffold e2e`\n- `e2e infrastructure`\n- `setup e2e`\n\n### Preflight Requirements\n\n**Critical:** Verify these requirements before proceeding. If any fail, HALT and guide the user.\n\n- Test framework already initialized (run `test-framework` workflow first)\n- Game has identifiable state manager class\n- Main gameplay scene exists and is functional\n- No existing E2E infrastructure (check for `Tests\u002FPlayMode\u002FE2E\u002F` or engine equivalent)\n\n\n### Paths\n\n- `installed_path` = `{skill-root}`\n- `validation` = `{installed_path}\u002Fchecklist.md`\n\n### Inputs (Collect from User or Auto-Detect)\n\n| Input | Description | Required | Default |\n|-------|-------------|----------|---------|\n| `game_state_class` | Primary game state manager class name | Yes | — |\n| `main_scene` | Scene name where core gameplay occurs | Yes | — |\n| `input_system` | Input system in use | No | `auto-detect` |\n\n### Knowledge Fragments\n\nLoad `{installed_path}\u002Fknowledge\u002Fe2e-testing.md` before proceeding. Load the engine-specific fragment after detection in Step 1:\n\n- Unity: `{installed_path}\u002Fknowledge\u002Funity-testing.md`\n- Unreal: `{installed_path}\u002Fknowledge\u002Funreal-testing.md`\n- Godot: `{installed_path}\u002Fknowledge\u002Fgodot-testing.md`\n\n---\n\n## EXECUTION\n\n\u003Cworkflow>\n\n\u003Cstep n=\"1\" goal=\"Analyze Game Architecture\">\n  \u003Caction>Detect Game Engine by checking for engine-specific project files:\n    - Unity: `Assets\u002F`, `ProjectSettings\u002F`, `*.unity` scenes\n    - Unreal: `*.uproject`, `Source\u002F`, `Config\u002FDefaultEngine.ini`\n    - Godot: `project.godot`, `*.tscn`, `*.gd` files\n  \u003C\u002Faction>\n  \u003Caction>Load the appropriate engine-specific knowledge fragment\u003C\u002Faction>\n\n  \u003Caction>Identify core systems:\n    1. Game State Manager — the primary class holding game state. Look for: `GameManager`, `GameStateManager`, `GameController`, `GameMode`. Note: initialization method, ready state property, save\u002Fload methods\n    2. Input Handling — Unity New Input System vs Legacy, Unreal Enhanced Input vs Legacy, Godot built-in Input, or custom abstraction layer\n    3. Event\u002FMessaging System — event bus, C# events\u002Fdelegates, UnityEvents, Godot Signals\n    4. Scene Structure — main gameplay scene name, loading approach (additive\u002Fsingle), bootstrap\u002Finitialization flow\n  \u003C\u002Faction>\n\n  \u003Caction>Identify domain concepts for the ScenarioBuilder:\n    - Primary Entities: units, players, items, enemies, etc.\n    - State Machine States: turn phases, game modes, player states\n    - Spatial System: grid\u002Fhex positions, world coordinates, regions\n    - Resources: currency, health, mana, ammunition, etc.\n  \u003C\u002Faction>\n\n  \u003Caction>Check existing test structure. If `Tests\u002FPlayMode\u002FE2E\u002F` (or engine equivalent) already exists, HALT and ask user how to proceed.\u003C\u002Faction>\n\u003C\u002Fstep>\n\n\u003Cstep n=\"2\" goal=\"Generate Infrastructure\">\n  \u003Caction>Create the E2E directory structure:\n```\nTests\u002FPlayMode\u002FE2E\u002F          (Unity)\n├── E2E.asmdef\n├── Infrastructure\u002F\n│   ├── GameE2ETestFixture.cs\n│   ├── ScenarioBuilder.cs\n│   ├── InputSimulator.cs\n│   └── AsyncAssert.cs\n├── Scenarios\u002F\n│   └── (empty - user will add tests here)\n├── TestData\u002F\n│   └── (empty - user will add fixtures here)\n└── README.md\n```\n  \u003C\u002Faction>\n\n  \u003C!-- Unity-specific infrastructure -->\n  \u003Ccheck if=\"engine == 'unity'\">\n    \u003Caction>Generate Assembly Definition `E2E.asmdef`:\n```json\n{\n  \"name\": \"E2E\",\n  \"rootNamespace\": \"{ProjectNamespace}.Tests.E2E\",\n  \"references\": [\"{GameAssemblyName}\", \"Unity.InputSystem\", \"Unity.InputSystem.TestFramework\"],\n  \"includePlatforms\": [],\n  \"excludePlatforms\": [],\n  \"allowUnsafeCode\": false,\n  \"overrideReferences\": true,\n  \"precompiledReferences\": [\"nunit.framework.dll\", \"UnityEngine.TestRunner.dll\", \"UnityEditor.TestRunner.dll\"],\n  \"autoReferenced\": false,\n  \"defineConstraints\": [\"UNITY_INCLUDE_TESTS\"],\n  \"versionDefines\": [],\n  \"noEngineReferences\": false\n}\n```\n    Replace `{ProjectNamespace}` with detected project namespace and `{GameAssemblyName}` with main game assembly. Include `Unity.InputSystem` references only if Input System package detected.\n    \u003C\u002Faction>\n\n    \u003Caction>Generate `GameE2ETestFixture.cs` base class. Customize placeholders:\n      - `{Namespace}` = detected project namespace\n      - `{MainSceneName}` = detected main gameplay scene\n      - `{GameStateClass}` = identified game state manager class\n      - `{IsReadyProperty}` = property indicating game is initialized (e.g., `IsReady`, `IsInitialized`)\n    The fixture must handle: scene loading\u002Funloading, game ready state waiting, access to GameState\u002FInput\u002FScenario, cleanup guarantees, and failure screenshot capture.\u003C\u002Faction>\n\n    \u003Caction>Generate `ScenarioBuilder.cs` with fluent API. Analyze the game's domain model from Step 1 and add 3-5 concrete configuration methods based on identified entities. Include `FromSaveFile(string fileName)` as base method. Add domain-specific methods in the `#region State Configuration` block with TODO comments documenting the pattern.\u003C\u002Faction>\n\n    \u003Caction>Generate `InputSimulator.cs`. If New Input System detected:\n      - `ClickWorldPosition(Vector3)`, `ClickScreenPosition(Vector2)`, `ClickButton(string)`, `DragFromTo(Vector3, Vector3, float)` using `InputState.Change` and `StateEvent.From`\n      - `PressKey(Key)`, `HoldKey(Key, float)` for keyboard\n      - `Reset()` and `RefreshCamera()` utility methods\n    If Legacy Input detected, generate simpler version using UI event triggering.\u003C\u002Faction>\n\n    \u003Caction>Generate `AsyncAssert.cs` static utility class with:\n      - `WaitUntil(Func\u003Cbool>, string, float)` — core wait-for-condition\n      - `WaitUntilVerbose(...)` — with periodic debug logging\n      - `WaitForValue\u003CT>(...)` — wait for specific value (exact equality)\n      - `WaitForValueApprox(...)` — float\u002Fdouble with tolerance\n      - `WaitForValueNot\u003CT>(...)` — wait for value to change\n      - `WaitForNotNull\u003CT>(...)` and `WaitForUnityObject\u003CT>(...)`\n      - `AssertNeverTrue(...)` — assert something doesn't happen\n      - `WaitFrames(int)` and `WaitForPhysics(int)` utility methods\n    \u003C\u002Faction>\n  \u003C\u002Fcheck>\n\n  \u003C!-- Unreal-specific infrastructure -->\n  \u003Ccheck if=\"engine == 'unreal'\">\n    \u003Caction>Generate equivalent infrastructure files under `Source\u002F{ProjectName}\u002FTests\u002FE2E\u002F`:\n      - `GameE2ETestBase.h\u002F.cpp` — base test class\n      - `ScenarioBuilder.h\u002F.cpp` — fluent scenario configuration\n      - `InputSimulator.h\u002F.cpp` — input abstraction\n      - `AsyncAssert.h` — wait-for-condition utilities\n      - `{ProjectName}E2ETests.Build.cs` — build configuration\n    \u003C\u002Faction>\n  \u003C\u002Fcheck>\n\n  \u003C!-- Godot-specific infrastructure -->\n  \u003Ccheck if=\"engine == 'godot'\">\n    \u003Caction>Generate equivalent infrastructure files under `tests\u002Fe2e\u002Finfrastructure\u002F`:\n      - `game_e2e_test_fixture.gd`\n      - `scenario_builder.gd`\n      - `input_simulator.gd`\n      - `async_assert.gd`\n    \u003C\u002Faction>\n  \u003C\u002Fcheck>\n\n  \u003Caction>Write all infrastructure files to disk\u003C\u002Faction>\n\u003C\u002Fstep>\n\n\u003Cstep n=\"3\" goal=\"Generate Example Test\">\n  \u003Caction>Create a working E2E test that exercises the infrastructure and proves it works\u003C\u002Faction>\n\n  \u003Ccheck if=\"engine == 'unity'\">\n    \u003Caction>Generate `ExampleE2ETest.cs` with three tests:\n      1. `Infrastructure_GameLoadsAndReachesReadyState` — verifies base fixture, GameState, Input, Scenario are all non-null and game reaches ready state\n      2. `Infrastructure_InputSimulatorCanClickButtons` — demonstrates input simulation pattern with commented example for the user to customize\n      3. `Infrastructure_ScenarioBuilderCanConfigureState` — demonstrates ScenarioBuilder usage with commented domain-specific example\n    Apply `[Category(\"E2E\")]` attribute to the class.\n    \u003C\u002Faction>\n  \u003C\u002Fcheck>\n\n  \u003Ccheck if=\"engine in ('unreal', 'godot')\">\n    \u003Caction>Generate equivalent example test in the engine-appropriate location and language, covering the same three verification patterns\u003C\u002Faction>\n  \u003C\u002Fcheck>\n\n  \u003Caction>Write example test file to disk\u003C\u002Faction>\n\u003C\u002Fstep>\n\n\u003Cstep n=\"4\" goal=\"Generate Documentation\">\n  \u003Caction>Create `README.md` in the E2E root directory covering:\n    - Quick Start (inherit from GameE2ETestFixture, use Scenario\u002FInput\u002FAsyncAssert)\n    - Example test using Given-When-Then structure\n    - Component documentation for GameE2ETestFixture, ScenarioBuilder, InputSimulator, AsyncAssert\n    - Directory structure explanation\n    - Running tests (Editor UI and command line)\n    - Best practices (wait for conditions not time, one journey per test, descriptive assertions)\n    - Extension guide (adding Scenario methods, adding Input methods)\n    - Troubleshooting table for common issues\n  \u003C\u002Faction>\n  \u003Caction>Write README.md to disk\u003C\u002Faction>\n\u003C\u002Fstep>\n\n\u003Cstep n=\"5\" goal=\"Output Summary\">\n  \u003Caction>Load and apply `{validation}` checklist to verify all deliverables are complete\u003C\u002Faction>\n  \u003Caction>Present a summary to the user:\n\n```markdown\n## E2E Infrastructure Scaffold Complete\n\n**Engine**: {Unity | Unreal | Godot}\n**Version**: {detected_version}\n\n### Files Created\n\n[Directory tree of all created files]\n\n### Configuration\n\n| Setting | Value |\n|---------|-------|\n| Game State Class | `{GameStateClass}` |\n| Main Scene | `{MainSceneName}` |\n| Input System | `{InputSystemType}` |\n| Ready Property | `{IsReadyProperty}` |\n\n### Customization Required\n\n1. ScenarioBuilder: Add domain-specific setup methods for your game entities\n2. InputSimulator: Add game-specific input methods (e.g., hex clicking, gesture shortcuts)\n3. ExampleE2ETest: Modify example tests to use your actual UI elements\n\n### Next Steps\n\n1. Run `Infrastructure_GameLoadsAndReachesReadyState` to verify setup works\n2. Extend `ScenarioBuilder` with your domain methods\n3. Extend `InputSimulator` with game-specific input helpers\n4. Use `test-design` workflow to identify E2E scenarios\n5. Use `automate` workflow to generate E2E tests from scenarios\n```\n  \u003C\u002Faction>\n\u003Caction>Run: `python3 {project-root}\u002F_bmad\u002Fscripts\u002Fresolve_customization.py --skill {skill-root} --key workflow.on_complete` — if the resolved value is non-empty, follow it as the final terminal instruction before exiting.\u003C\u002Faction>\n\u003C\u002Fstep>\n\n\u003C\u002Fworkflow>\n","# E2E Test Infrastructure Scaffold Workflow\n\n**Goal:** Scaffold complete E2E testing infrastructure for an existing game project — creating the foundation required for reliable, maintainable end-to-end tests: test fixtures, scenario builders, input simulators, and async assertion utilities, all tailored to the project's specific architecture.\n\n**Your Role:** You are a senior game QA engineer specializing in E2E test architecture. E2E tests validate complete player journeys. Without proper infrastructure, they become brittle nightmares. Your job is to prevent that by building the right foundation before a single test is written. Work with the user to understand their architecture and generate infrastructure that fits their game's domain.\n\n---\n\n## Conventions\n\n- Bare paths (e.g. `template.md`) resolve from the skill root.\n- `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).\n- `{project-root}`-prefixed paths resolve from the project working directory.\n- `{skill-name}` resolves to the skill directory's basename.\n\n## On Activation\n\n### Step 1: Resolve the Workflow Block\n\nRun: `python3 {project-root}\u002F_bmad\u002Fscripts\u002Fresolve_customization.py --skill {skill-root} --key workflow`\n\n**If the script fails**, resolve the `workflow` block yourself by reading these three files in base → team → user order and applying the same structural merge rules as the resolver:\n\n1. `{skill-root}\u002Fcustomize.toml` — defaults\n2. `{project-root}\u002F_bmad\u002Fcustom\u002F{skill-name}.toml` — team overrides\n3. `{project-root}\u002F_bmad\u002Fcustom\u002F{skill-name}.user.toml` — personal overrides\n\nAny missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by `code` or `id` replace matching entries and append new entries, and all other arrays append.\n\n### Step 2: Execute Prepend Steps\n\nExecute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.\n\n### Step 3: Load Persistent Facts\n\nTreat every entry in `{workflow.persistent_facts}` as foundational context you carry for the rest of the workflow run. Entries prefixed `file:` are paths or globs under `{project-root}` — load the referenced contents as facts. All other entries are facts verbatim.\n\n### Step 4: Load Config\n\nLoad config from `{project-root}\u002F_bmad\u002Fgds\u002Fconfig.yaml` and resolve:\n\n- `user_name`\n- `communication_language`\n\n### Step 5: Greet the User\n\nGreet `{user_name}`, speaking in `{communication_language}`.\n\n### Step 6: Execute Append Steps\n\nExecute each entry in `{workflow.activation_steps_append}` in order.\n\nActivation is complete. Begin the workflow below.\n\n## WORKFLOW ARCHITECTURE\n\nThis uses an **inline workflow pattern** for autonomous execution:\n\n- Steps execute sequentially with critical architecture analysis upfront\n- Engine detection and domain discovery drive all generated code\n- All infrastructure files are written to disk as they are generated\n- A working example test proves the infrastructure functions correctly\n\n### Triggers\n\n- `ES`\n- `e2e-scaffold`\n- `scaffold e2e`\n- `e2e infrastructure`\n- `setup e2e`\n\n### Preflight Requirements\n\n**Critical:** Verify these requirements before proceeding. If any fail, HALT and guide the user.\n\n- Test framework already initialized (run `test-framework` workflow first)\n- Game has identifiable state manager class\n- Main gameplay scene exists and is functional\n- No existing E2E infrastructure (check for `Tests\u002FPlayMode\u002FE2E\u002F` or engine equivalent)\n\n\n### Paths\n\n- `installed_path` = `{skill-root}`\n- `validation` = `{installed_path}\u002Fchecklist.md`\n\n### Inputs (Collect from User or Auto-Detect)\n\n| Input | Description | Required | Default |\n|-------|-------------|----------|---------|\n| `game_state_class` | Primary game state manager class name | Yes | — |\n| `main_scene` | Scene name where core gameplay occurs | Yes | — |\n| `input_system` | Input system in use | No | `auto-detect` |\n\n### Knowledge Fragments\n\nLoad `{installed_path}\u002Fknowledge\u002Fe2e-testing.md` before proceeding. Load the engine-specific fragment after detection in Step 1:\n\n- Unity: `{installed_path}\u002Fknowledge\u002Funity-testing.md`\n- Unreal: `{installed_path}\u002Fknowledge\u002Funreal-testing.md`\n- Godot: `{installed_path}\u002Fknowledge\u002Fgodot-testing.md`\n\n---\n\n## EXECUTION\n\n\u003Cworkflow>\n\n\u003Cstep n=\"1\" goal=\"Analyze Game Architecture\">\n  \u003Caction>Detect Game Engine by checking for engine-specific project files:\n    - Unity: `Assets\u002F`, `ProjectSettings\u002F`, `*.unity` scenes\n    - Unreal: `*.uproject`, `Source\u002F`, `Config\u002FDefaultEngine.ini`\n    - Godot: `project.godot`, `*.tscn`, `*.gd` files\n  \u003C\u002Faction>\n  \u003Caction>Load the appropriate engine-specific knowledge fragment\u003C\u002Faction>\n\n  \u003Caction>Identify core systems:\n    1. Game State Manager — the primary class holding game state. Look for: `GameManager`, `GameStateManager`, `GameController`, `GameMode`. Note: initialization method, ready state property, save\u002Fload methods\n    2. Input Handling — Unity New Input System vs Legacy, Unreal Enhanced Input vs Legacy, Godot built-in Input, or custom abstraction layer\n    3. Event\u002FMessaging System — event bus, C# events\u002Fdelegates, UnityEvents, Godot Signals\n    4. Scene Structure — main gameplay scene name, loading approach (additive\u002Fsingle), bootstrap\u002Finitialization flow\n  \u003C\u002Faction>\n\n  \u003Caction>Identify domain concepts for the ScenarioBuilder:\n    - Primary Entities: units, players, items, enemies, etc.\n    - State Machine States: turn phases, game modes, player states\n    - Spatial System: grid\u002Fhex positions, world coordinates, regions\n    - Resources: currency, health, mana, ammunition, etc.\n  \u003C\u002Faction>\n\n  \u003Caction>Check existing test structure. If `Tests\u002FPlayMode\u002FE2E\u002F` (or engine equivalent) already exists, HALT and ask user how to proceed.\u003C\u002Faction>\n\u003C\u002Fstep>\n\n\u003Cstep n=\"2\" goal=\"Generate Infrastructure\">\n  \u003Caction>Create the E2E directory structure:\n```\nTests\u002FPlayMode\u002FE2E\u002F          (Unity)\n├── E2E.asmdef\n├── Infrastructure\u002F\n│   ├── GameE2ETestFixture.cs\n│   ├── ScenarioBuilder.cs\n│   ├── InputSimulator.cs\n│   └── AsyncAssert.cs\n├── Scenarios\u002F\n│   └── (empty - user will add tests here)\n├── TestData\u002F\n│   └── (empty - user will add fixtures here)\n└── README.md\n```\n  \u003C\u002Faction>\n\n  \u003C!-- Unity-specific infrastructure -->\n  \u003Ccheck if=\"engine == 'unity'\">\n    \u003Caction>Generate Assembly Definition `E2E.asmdef`:\n```json\n{\n  \"name\": \"E2E\",\n  \"rootNamespace\": \"{ProjectNamespace}.Tests.E2E\",\n  \"references\": [\"{GameAssemblyName}\", \"Unity.InputSystem\", \"Unity.InputSystem.TestFramework\"],\n  \"includePlatforms\": [],\n  \"excludePlatforms\": [],\n  \"allowUnsafeCode\": false,\n  \"overrideReferences\": true,\n  \"precompiledReferences\": [\"nunit.framework.dll\", \"UnityEngine.TestRunner.dll\", \"UnityEditor.TestRunner.dll\"],\n  \"autoReferenced\": false,\n  \"defineConstraints\": [\"UNITY_INCLUDE_TESTS\"],\n  \"versionDefines\": [],\n  \"noEngineReferences\": false\n}\n```\n    Replace `{ProjectNamespace}` with detected project namespace and `{GameAssemblyName}` with main game assembly. Include `Unity.InputSystem` references only if Input System package detected.\n    \u003C\u002Faction>\n\n    \u003Caction>Generate `GameE2ETestFixture.cs` base class. Customize placeholders:\n      - `{Namespace}` = detected project namespace\n      - `{MainSceneName}` = detected main gameplay scene\n      - `{GameStateClass}` = identified game state manager class\n      - `{IsReadyProperty}` = property indicating game is initialized (e.g., `IsReady`, `IsInitialized`)\n    The fixture must handle: scene loading\u002Funloading, game ready state waiting, access to GameState\u002FInput\u002FScenario, cleanup guarantees, and failure screenshot capture.\u003C\u002Faction>\n\n    \u003Caction>Generate `ScenarioBuilder.cs` with fluent API. Analyze the game's domain model from Step 1 and add 3-5 concrete configuration methods based on identified entities. Include `FromSaveFile(string fileName)` as base method. Add domain-specific methods in the `#region State Configuration` block with TODO comments documenting the pattern.\u003C\u002Faction>\n\n    \u003Caction>Generate `InputSimulator.cs`. If New Input System detected:\n      - `ClickWorldPosition(Vector3)`, `ClickScreenPosition(Vector2)`, `ClickButton(string)`, `DragFromTo(Vector3, Vector3, float)` using `InputState.Change` and `StateEvent.From`\n      - `PressKey(Key)`, `HoldKey(Key, float)` for keyboard\n      - `Reset()` and `RefreshCamera()` utility methods\n    If Legacy Input detected, generate simpler version using UI event triggering.\u003C\u002Faction>\n\n    \u003Caction>Generate `AsyncAssert.cs` static utility class with:\n      - `WaitUntil(Func\u003Cbool>, string, float)` — core wait-for-condition\n      - `WaitUntilVerbose(...)` — with periodic debug logging\n      - `WaitForValue\u003CT>(...)` — wait for specific value (exact equality)\n      - `WaitForValueApprox(...)` — float\u002Fdouble with tolerance\n      - `WaitForValueNot\u003CT>(...)` — wait for value to change\n      - `WaitForNotNull\u003CT>(...)` and `WaitForUnityObject\u003CT>(...)`\n      - `AssertNeverTrue(...)` — assert something doesn't happen\n      - `WaitFrames(int)` and `WaitForPhysics(int)` utility methods\n    \u003C\u002Faction>\n  \u003C\u002Fcheck>\n\n  \u003C!-- Unreal-specific infrastructure -->\n  \u003Ccheck if=\"engine == 'unreal'\">\n    \u003Caction>Generate equivalent infrastructure files under `Source\u002F{ProjectName}\u002FTests\u002FE2E\u002F`:\n      - `GameE2ETestBase.h\u002F.cpp` — base test class\n      - `ScenarioBuilder.h\u002F.cpp` — fluent scenario configuration\n      - `InputSimulator.h\u002F.cpp` — input abstraction\n      - `AsyncAssert.h` — wait-for-condition utilities\n      - `{ProjectName}E2ETests.Build.cs` — build configuration\n    \u003C\u002Faction>\n  \u003C\u002Fcheck>\n\n  \u003C!-- Godot-specific infrastructure -->\n  \u003Ccheck if=\"engine == 'godot'\">\n    \u003Caction>Generate equivalent infrastructure files under `tests\u002Fe2e\u002Finfrastructure\u002F`:\n      - `game_e2e_test_fixture.gd`\n      - `scenario_builder.gd`\n      - `input_simulator.gd`\n      - `async_assert.gd`\n    \u003C\u002Faction>\n  \u003C\u002Fcheck>\n\n  \u003Caction>Write all infrastructure files to disk\u003C\u002Faction>\n\u003C\u002Fstep>\n\n\u003Cstep n=\"3\" goal=\"Generate Example Test\">\n  \u003Caction>Create a working E2E test that exercises the infrastructure and proves it works\u003C\u002Faction>\n\n  \u003Ccheck if=\"engine == 'unity'\">\n    \u003Caction>Generate `ExampleE2ETest.cs` with three tests:\n      1. `Infrastructure_GameLoadsAndReachesReadyState` — verifies base fixture, GameState, Input, Scenario are all non-null and game reaches ready state\n      2. `Infrastructure_InputSimulatorCanClickButtons` — demonstrates input simulation pattern with commented example for the user to customize\n      3. `Infrastructure_ScenarioBuilderCanConfigureState` — demonstrates ScenarioBuilder usage with commented domain-specific example\n    Apply `[Category(\"E2E\")]` attribute to the class.\n    \u003C\u002Faction>\n  \u003C\u002Fcheck>\n\n  \u003Ccheck if=\"engine in ('unreal', 'godot')\">\n    \u003Caction>Generate equivalent example test in the engine-appropriate location and language, covering the same three verification patterns\u003C\u002Faction>\n  \u003C\u002Fcheck>\n\n  \u003Caction>Write example test file to disk\u003C\u002Faction>\n\u003C\u002Fstep>\n\n\u003Cstep n=\"4\" goal=\"Generate Documentation\">\n  \u003Caction>Create `README.md` in the E2E root directory covering:\n    - Quick Start (inherit from GameE2ETestFixture, use Scenario\u002FInput\u002FAsyncAssert)\n    - Example test using Given-When-Then structure\n    - Component documentation for GameE2ETestFixture, ScenarioBuilder, InputSimulator, AsyncAssert\n    - Directory structure explanation\n    - Running tests (Editor UI and command line)\n    - Best practices (wait for conditions not time, one journey per test, descriptive assertions)\n    - Extension guide (adding Scenario methods, adding Input methods)\n    - Troubleshooting table for common issues\n  \u003C\u002Faction>\n  \u003Caction>Write README.md to disk\u003C\u002Faction>\n\u003C\u002Fstep>\n\n\u003Cstep n=\"5\" goal=\"Output Summary\">\n  \u003Caction>Load and apply `{validation}` checklist to verify all deliverables are complete\u003C\u002Faction>\n  \u003Caction>Present a summary to the user:\n\n```markdown\n## E2E Infrastructure Scaffold Complete\n\n**Engine**: {Unity | Unreal | Godot}\n**Version**: {detected_version}\n\n### Files Created\n\n[Directory tree of all created files]\n\n### Configuration\n\n| Setting | Value |\n|---------|-------|\n| Game State Class | `{GameStateClass}` |\n| Main Scene | `{MainSceneName}` |\n| Input System | `{InputSystemType}` |\n| Ready Property | `{IsReadyProperty}` |\n\n### Customization Required\n\n1. ScenarioBuilder: Add domain-specific setup methods for your game entities\n2. InputSimulator: Add game-specific input methods (e.g., hex clicking, gesture shortcuts)\n3. ExampleE2ETest: Modify example tests to use your actual UI elements\n\n### Next Steps\n\n1. Run `Infrastructure_GameLoadsAndReachesReadyState` to verify setup works\n2. Extend `ScenarioBuilder` with your domain methods\n3. Extend `InputSimulator` with game-specific input helpers\n4. Use `test-design` workflow to identify E2E scenarios\n5. Use `automate` workflow to generate E2E tests from scenarios\n```\n  \u003C\u002Faction>\n\u003Caction>Run: `python3 {project-root}\u002F_bmad\u002Fscripts\u002Fresolve_customization.py --skill {skill-root} --key workflow.on_complete` — if the resolved value is non-empty, follow it as the final terminal instruction before exiting.\u003C\u002Faction>\n\u003C\u002Fstep>\n\n\u003C\u002Fworkflow>\n",{"name":5,"description":7},"main","1907bbe850fb749efa8b499b8da7ebb78a663519",".cline\u002Fskills\u002Fgds-e2e-scaffold",0,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start","https:\u002F\u002Fgithub.com\u002FdevelopAgent","2026-07-19 05:19:22",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add developAgent\u002Fbmad-start --skill gds-e2e-scaffold",{"tool":55,"command":56},"bunx","bunx skills add developAgent\u002Fbmad-start --skill gds-e2e-scaffold",{"tool":58,"command":59},"pnpm","pnpm dlx skills add developAgent\u002Fbmad-start --skill gds-e2e-scaffold","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.cline\u002Fskills\u002Fgds-e2e-scaffold\u002FSKILL.md",true,[63,69],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"checklist.md","REFERENCE","参考文档",3355,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.cline\u002Fskills\u002Fgds-e2e-scaffold\u002Fchecklist.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"customize.toml","OTHER","其他",1624,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.cline\u002Fskills\u002Fgds-e2e-scaffold\u002Fcustomize.toml",[76,84,91,98,105,112],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":83},"01M72ZN1RJ28HE3TG8CK5VMDZ0","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":83},"01M72ZMZG4KQAFDEHG6KABQW8R","to-prd","Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.","https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002Fskills\u002Fto-prd\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":83},"01M72ZMWB9ZNA0Y5KGAHTW89E8","steve-jobs-perspective","史蒂夫·乔布斯(Steve Jobs)的思维框架与表达方式。基于Isaacson授权传记、Stanford演讲、\nLost Interview、D Conference系列、Make Something Wonderful、30+一手来源的深度调研，\n提炼6个核心心智模型、8条决策启发式和完整的表达DNA。\n用途：作为思维顾问，用乔布斯的视角分析产品、审视决策、提供反馈。\n当用户提到「用乔布斯的视角」「乔布斯会怎么看」「Jobs模式」「steve jobs perspective」时使用。\n即使用户只是说「帮我用乔布斯的角度想想」「如果乔布斯会怎么做」「切换到乔布斯」也应触发。","https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002Fskills\u002Fsteve-jobs-perspective\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":83},"01M72ZMS3ZRQY9PCRPRVWY040M","pinme","Use this skill when the user mentions \"pinme\", or needs to upload files, store to IPFS, create\u002Fpublish\u002Fdeploy websites or full-stack services (including frontend pages, backend APIs, database storage, email sending, etc.), or any feature requiring backend database\u002Fserver support.","https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002Fskills\u002Fpinme\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":83},"01M72ZMPJHQ8NHC9WSH41DKV1F","pinme-share","Use this skill when the user wants to share, publish, or upload a static result through PinMe, especially by generating a static HTML share page for a PinMe project link, deployed full-stack app, Codex conversation summary, report, file, demo, or any 分享\u002F发布\u002F上传分享页 request that should end with `pinme upload`.","https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002Fskills\u002Fpinme-share\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":83},"01M72ZMM4QBVWMAW0YYM7H0Y6P","pinme-llm","Use this skill when a PinMe project (Worker TypeScript) needs to call OpenRouter-backed LLM APIs, including models, chat\u002Fcompletions, streaming, or OpenRouter web search. Guides AI to generate correct Worker TS code.","https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002Fskills\u002Fpinme-llm\u002FSKILL.md",[],[]]