[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X0N201GWCVJJZ2G70YW0AM":3,"skill-same:01M6X0N201GWCVJJZ2G70YW0AM":57},{"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":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6X0N201GWCVJJZ2G70YW0AM","XMC Deploy Environment",null,"Automates compiling and step-by-step deployment of the XMC v2 Cluster Toolkit blueprint. Supports both automated developer setups and manual step-by-step deployments.","google\u002Fxmc","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M6X0MD62T1HTQNBX4VJ5AXWK",8,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxmc\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fxmc_deploy\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28],"environment","deploy","Blueprint","compiling","developer","cluster","deployment","manual","deployments","toolkit","2026-11-10 10:12:30",false,"---\nname: XMC Deploy Environment\ndescription: Automates compiling and step-by-step deployment of the XMC v2 Cluster Toolkit blueprint. Supports both automated developer setups and manual step-by-step deployments.\n---\n\n# Deploy XMC Workflow\n\nThis skill guides the agent through deploying the XManager on Cloud (XMC) infrastructure using the Cluster Toolkit v2 blueprint.\n\n> [!IMPORTANT]\n> All execution steps in this skill MUST strictly adhere to the policy rules defined in [Skills & Automation Guidelines](..\u002F..\u002Frules\u002Fskills_and_automation.md) and [Core Engineering Standards](..\u002F..\u002Frules\u002Fcore_engineering.md).\n\n> [!IMPORTANT]\n> **Enforced Choice Prompt**:\n> Before executing any checks, compilation, or deployment commands, you **MUST ask the user** to choose their preferred deployment method:\n> *   **Option 1: Automated Dev Setup**: Uses the `python3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy` CLI (or legacy `deploy_dev_env.py`) to automate all steps.\n> *   **Option 2: Manual Step-by-Step Deployment**: Manually compiles and deploys each group using `gcluster`.\n>\n> Stop execution and wait for the user to respond with their selection. Do not proceed to any other section of this workflow without their explicit choice.\n\n```mermaid\ngraph TD\n    Start[Choose Deployment Method] -->|Option 1| Auto[Automated Dev Setup]\n    Start -->|Option 2| Manual[Manual Step-by-Step]\n    \n    Auto --> AutoRun[\"Run python3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy\"]\n    AutoRun --> Verify[Verification & Validation]\n    \n    Manual --> A[\"1. Pre-flight CLI Checks\"]\n    A -->|All pass| B[\"2. Blueprint Compilation\"]\n    B -->|Success| C[\"3. Step 1: Deploy APIs ('apis' group)\"]\n    C --> D[\"3. Step 2: Deploy Core ('primary' group)\"]\n    D --> E[\"3. Step 3: Extract IP & DNS Pause\"]\n    E -->|User confirms DNS\u002FOAuth updated| F[\"3. Step 4: Deploy Compute ('compute' group)\"]\n    F --> G[\"3. Step 5: Enable GKE Gateway API\"]\n    G --> H[\"3. Step 6: Install Helm ('kubernetes_prereqs' group)\"]\n    H --> I[\"3. Step 7: Build & Push Images\"]\n    I --> J[\"3. Step 8: Deploy App ('xmc_app' group)\"]\n    J --> Verify\n    \n    Verify -->|All checks pass| L[\"Report finalized URL to user\"]\n```\n\n---\n\n## 1. Pre-flight CLI Checks\n\nBefore running any compilation or deployment steps, verify that all necessary CLI tools are installed and operational:\n\n| CLI Tool | Verification Command | Expected Successful Outcome |\n| :--- | :--- | :--- |\n| **`gcloud`** | `gcloud --version` | Prints Google Cloud SDK version info |\n| **`kubectl`** | `kubectl version --client` | Prints Kubernetes client version |\n| **`helm`** | `helm version` | Prints Helm client version (minimum 3.14.0) |\n| **`terraform`** | `terraform --version` | Prints Terraform version (minimum 1.12.2) |\n| **`bazel`** | `bazel --version` | Prints Bazel version |\n| **`gcluster`** | `.\u002Fcluster-toolkit\u002Fgcluster --version` | Prints gcluster tool version |\n\n> [!CAUTION]\n> **Check Action**: If any check fails (command not found or returns error):\n> 1. **Rule out PATH first**: Apply [PATH-First Diagnosis for Missing CLIs](..\u002F..\u002Frules\u002Fcore_engineering.md#9-diagnostic-protocol-bazel-ci-and-agent-shell-and-zero-task-polling); if the binary is found, add its directory to `PATH` and re-run the check.\n> 2. If still failing, **stop execution immediately**.\n> 3. Alert the user about the missing\u002Fbroken CLI dependency.\n> 4. Provide installation instructions and do not proceed.\n\n---\n\n## 2. Option 1: Automated Dev Setup (`tools\u002Fdev_env\u002Fdev_env.py gke-deploy`)\n\nUse the unified environment automation tool to execute the deployment end-to-end (legacy direct invocation `python3 .\u002Ftools\u002Fdev_env\u002Fdeploy_dev_env.py` and `deploy` command are also supported). The tool handles registry credentials config (`gcloud auth configure-docker`), code compilation, GKE setup, and app deployment.\n\n> [!IMPORTANT]\n> **Enforced DNS Parameters Check**:\n> If the user chose Option 1:\n> 1. **Check context\u002Fhistory**: Check if the user has already provided the GCP project ID hosting the DNS zone and the Cloud DNS Managed Zone name.\n> 2. **Explicitly ask the user**: If these are not specified, **you MUST stop execution and ask the user directly** to provide:\n>    *   **DNS Project ID** (the GCP project hosting the DNS zone)\n>    *   **DNS Managed Zone Name** (the name of the Cloud DNS managed zone)\n> 3. Do not attempt to guess. Wait for the user to provide them.\n\n### Step 1: Check configurations\nAlways run the checks first to validate active GCP project alignment and CLI tools:\n```bash\npython3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy \\\n  --config \u003Cdeployment_config_path> \\\n  --dns-project \u003Cdns_project_id> \\\n  --dns-zone \u003Cdns_managed_zone_name> \\\n  --only check\n```\n\n### Step 2: Deploy\nRun the automated deployment script by providing the DNS project and zone details:\n```bash\npython3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy \\\n  --config \u003Cdeployment_config_path> \\\n  --dns-project \u003Cdns_project_id> \\\n  --dns-zone \u003Cdns_managed_zone_name>\n```\n\n### Step 3: Resuming or Running Specific Steps\nTo resume from a failed step, run:\n```bash\npython3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy \\\n  --config \u003Cdeployment_config_path> \\\n  --dns-project \u003Cdns_project_id> \\\n  --dns-zone \u003Cdns_managed_zone_name> \\\n  --start-from \u003Cfailed_step>\n```\n\nTo run **only** a single specific step (e.g. rebuild\u002Fpush images or run verify tests), run:\n```bash\npython3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy \\\n  --config \u003Cdeployment_config_path> \\\n  --dns-project \u003Cdns_project_id> \\\n  --dns-zone \u003Cdns_managed_zone_name> \\\n  --only \u003Cstep>\n```\n*Valid steps: `check`, `compile`, `images`, `apis`, `primary`, `compute`, `gateway-api`, `prereqs`, `app`, `verify`*\n\n---\n\n## 3. Option 2: Manual Step-by-Step Deployment\n\nDeploy the blueprint groups sequentially to allow monitoring and manual intervention.\n\n### Step 1: Compile the Blueprint\nCompile the blueprint, specifying the overrides config file (e.g., `deploy\u002Fctk_v2\u002Fxmanager-cloud-deployment.yaml`) using the `-d` flag. If the user hasn't specified the overrides file, look for files in `deploy\u002Fctk_v2\u002F` matching `*deployment.yaml`.\n\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster create deploy\u002Fctk_v2\u002Fxmanager-cloud.yaml -d \u003Cdeployment_config_path> -o ctk-out -l WARNING -w --force\n```\n\nConfirm that compilation completes successfully and generates the deployment folder named after your `\u003Cdeployment_name>` inside `ctk-out\u002F` containing the Terraform workspaces.\n\n### Step 2: Enable APIs (`apis` group)\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster deploy ctk-out\u002F\u003Cdeployment_name> --only apis --auto-approve\n```\n\n### Step 3: Deploy Core Infrastructure & IP (`primary` group)\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster deploy ctk-out\u002F\u003Cdeployment_name> --only primary --auto-approve\n```\n\n### Step 4: DNS Pause & IP Mapping\n1. **Extract static Gateway IP**:\n   Identify the environment name (e.g. `xmcv2`) and GCP project ID from the deployment config. Retrieve the Gateway IP address:\n   ```bash\n   gcloud compute addresses describe xmc-gateway-static-ip-\u003Cenvironment> --global --project=\u003Cproject_id> --format='value(address)'\n   ```\n\n2. **User Action Request & Pause**:\n   Present the following instruction and **stop execution** until the user confirms DNS and OAuth configuration are complete:\n\n   > [!IMPORTANT]\n   > **Manual Configuration Required**\n   >\n   > 1. **DNS Routing Configuration**:\n   >    Please configure the following A records in your authoritative DNS project for the Gateway IP **`\u003CGATEWAY_IP>`**:\n   >\n   >    | Record Type | Hostname | Target IP |\n   >    |:---:|---|---|\n   >    | **A** | `\u003Cenvironment>.example.com` | `\u003CGATEWAY_IP>` |\n   >    | **A** | `api.\u003Cenvironment>.example.com` | `\u003CGATEWAY_IP>` |\n   >    | **A** | `grpc.\u003Cenvironment>.example.com` | `\u003CGATEWAY_IP>` |\n   >\n   > 2. **OAuth Authorized Redirect URI**:\n   >    Ensure the following Redirect URI is added to your Google Cloud Console OAuth Web Client ID config:\n   >    * **`https:\u002F\u002F\u003Cenvironment>.example.com\u002Fapi\u002Fcallback`**\n   >\n   > Once these DNS records are created and the redirect URI is registered in the GCP console, reply to this conversation to proceed with the remaining deployment steps.\n\n3. **Stop executing tools** and wait for the user to confirm.\n\n### Step 5: Deploy GKE Cluster & Node Pools (`compute` group)\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster deploy ctk-out\u002F\u003Cdeployment_name> --only compute --auto-approve\n```\n\n### Step 6: Enable GKE Gateway API standard channel\nSince GKE has Gateway API disabled by default, you must enable it on the newly created GKE cluster before deploying the application (which relies on `Gateway` and `HTTPRoute` resources). Run:\n\n```bash\ngcloud container clusters update \u003Ccluster_name> \\\n    --gateway-api=standard \\\n    --region=\u003Cregion> \\\n    --project=\u003Cproject_id>\n```\n> [!NOTE]\n> The default `\u003Ccluster_name>` format is `xmc-\u003Cdeployment_name>-\u003Cenvironment>`.\n\n### Step 7: Install GKE System Helm Charts (`kubernetes_prereqs` group)\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster deploy ctk-out\u002F\u003Cdeployment_name> --only kubernetes_prereqs --auto-approve\n```\n\n### Step 8: Build and Push XMC Service Images\nBefore deploying the application Helm chart, build and push all service Docker images to GCP Artifact Registry. You must set the project's target registry and environment variables:\n\n```bash\nexport XMC_ACR_TARGET=\"us-docker.pkg.dev\u002F\u003Cproject_id>\u002F\u003Cxmc_registry_name>\"\nexport XMC_ENV=\"\u003Cenvironment>\"\n\nbazel run \u002F\u002Fcmd\u002Factuator:actuator_image_push\nbazel run \u002F\u002Fcmd\u002Fexperiment_state_server:experiment_state_server_image_push\nbazel run \u002F\u002Fcmd\u002Flog_monitor:log_monitor_image_push\nbazel run \u002F\u002Fcmd\u002Freconciler:reconciler_image_push\nbazel run \u002F\u002Fcmd\u002Fui:ui_image_push\nbazel run \u002F\u002Fcmd\u002Fxid_service:xid_service_image_push\nbazel run \u002F\u002Fcmd\u002Fhealth_service:health_service_image_push\nbazel run \u002F\u002Fcmd\u002Fdashboard_service:dashboard_service_image_push\nbazel run \u002F\u002Fcmd\u002Frod_data_provider:rod_data_provider_image_push\nbazel run \u002F\u002Fcmd\u002Fingestion_gateway:ingestion_gateway_image_push\nbazel run \u002F\u002Fcmd\u002Fxmc_bridge:xmc_bridge_image_push\n```\n\n### Step 9: Deploy XMC Application (`xmc_app` group)\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster deploy ctk-out\u002F\u003Cdeployment_name> --only xmc_app --auto-approve\n```\n\n---\n\n## 4. Verification and Validation\n\nVerify the health, certificate readiness, and routing of the environment:\n\n### Step 1: Run Verification Script\nEnsure the Python virtual environment is activated, then run:\n```bash\npython3 .\u002Fdeploy\u002Fctk_v2\u002Fverify_xmc.py\n```\n\n### Step 2: Gateway Status Check\nPoll until the GKE Gateway status reports `Programmed: True`:\n```bash\nkubectl get gateway xmc-gateway -n xmc -o jsonpath='{.status.conditions[?(@.type==\"Programmed\")].status}'\n```\n\n### Step 3: GTS Certificate Check\nPoll until the Google-managed certificate state reports `ACTIVE`:\n```bash\ngcloud certificate-manager certificates describe xmc-cert-\u003Cenvironment> --project=\u003Cproject_id> --format='value(managed.state)'\n```\n\n> [!TIP]\n> Once all checks pass, report the finalized deployment URL (e.g. `https:\u002F\u002F\u003Cenvironment>.example.com`) to the user.\n","# Deploy XMC Workflow\n\nThis skill guides the agent through deploying the XManager on Cloud (XMC) infrastructure using the Cluster Toolkit v2 blueprint.\n\n> [!IMPORTANT]\n> All execution steps in this skill MUST strictly adhere to the policy rules defined in [Skills & Automation Guidelines](..\u002F..\u002Frules\u002Fskills_and_automation.md) and [Core Engineering Standards](..\u002F..\u002Frules\u002Fcore_engineering.md).\n\n> [!IMPORTANT]\n> **Enforced Choice Prompt**:\n> Before executing any checks, compilation, or deployment commands, you **MUST ask the user** to choose their preferred deployment method:\n> *   **Option 1: Automated Dev Setup**: Uses the `python3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy` CLI (or legacy `deploy_dev_env.py`) to automate all steps.\n> *   **Option 2: Manual Step-by-Step Deployment**: Manually compiles and deploys each group using `gcluster`.\n>\n> Stop execution and wait for the user to respond with their selection. Do not proceed to any other section of this workflow without their explicit choice.\n\n```mermaid\ngraph TD\n    Start[Choose Deployment Method] -->|Option 1| Auto[Automated Dev Setup]\n    Start -->|Option 2| Manual[Manual Step-by-Step]\n    \n    Auto --> AutoRun[\"Run python3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy\"]\n    AutoRun --> Verify[Verification & Validation]\n    \n    Manual --> A[\"1. Pre-flight CLI Checks\"]\n    A -->|All pass| B[\"2. Blueprint Compilation\"]\n    B -->|Success| C[\"3. Step 1: Deploy APIs ('apis' group)\"]\n    C --> D[\"3. Step 2: Deploy Core ('primary' group)\"]\n    D --> E[\"3. Step 3: Extract IP & DNS Pause\"]\n    E -->|User confirms DNS\u002FOAuth updated| F[\"3. Step 4: Deploy Compute ('compute' group)\"]\n    F --> G[\"3. Step 5: Enable GKE Gateway API\"]\n    G --> H[\"3. Step 6: Install Helm ('kubernetes_prereqs' group)\"]\n    H --> I[\"3. Step 7: Build & Push Images\"]\n    I --> J[\"3. Step 8: Deploy App ('xmc_app' group)\"]\n    J --> Verify\n    \n    Verify -->|All checks pass| L[\"Report finalized URL to user\"]\n```\n\n---\n\n## 1. Pre-flight CLI Checks\n\nBefore running any compilation or deployment steps, verify that all necessary CLI tools are installed and operational:\n\n| CLI Tool | Verification Command | Expected Successful Outcome |\n| :--- | :--- | :--- |\n| **`gcloud`** | `gcloud --version` | Prints Google Cloud SDK version info |\n| **`kubectl`** | `kubectl version --client` | Prints Kubernetes client version |\n| **`helm`** | `helm version` | Prints Helm client version (minimum 3.14.0) |\n| **`terraform`** | `terraform --version` | Prints Terraform version (minimum 1.12.2) |\n| **`bazel`** | `bazel --version` | Prints Bazel version |\n| **`gcluster`** | `.\u002Fcluster-toolkit\u002Fgcluster --version` | Prints gcluster tool version |\n\n> [!CAUTION]\n> **Check Action**: If any check fails (command not found or returns error):\n> 1. **Rule out PATH first**: Apply [PATH-First Diagnosis for Missing CLIs](..\u002F..\u002Frules\u002Fcore_engineering.md#9-diagnostic-protocol-bazel-ci-and-agent-shell-and-zero-task-polling); if the binary is found, add its directory to `PATH` and re-run the check.\n> 2. If still failing, **stop execution immediately**.\n> 3. Alert the user about the missing\u002Fbroken CLI dependency.\n> 4. Provide installation instructions and do not proceed.\n\n---\n\n## 2. Option 1: Automated Dev Setup (`tools\u002Fdev_env\u002Fdev_env.py gke-deploy`)\n\nUse the unified environment automation tool to execute the deployment end-to-end (legacy direct invocation `python3 .\u002Ftools\u002Fdev_env\u002Fdeploy_dev_env.py` and `deploy` command are also supported). The tool handles registry credentials config (`gcloud auth configure-docker`), code compilation, GKE setup, and app deployment.\n\n> [!IMPORTANT]\n> **Enforced DNS Parameters Check**:\n> If the user chose Option 1:\n> 1. **Check context\u002Fhistory**: Check if the user has already provided the GCP project ID hosting the DNS zone and the Cloud DNS Managed Zone name.\n> 2. **Explicitly ask the user**: If these are not specified, **you MUST stop execution and ask the user directly** to provide:\n>    *   **DNS Project ID** (the GCP project hosting the DNS zone)\n>    *   **DNS Managed Zone Name** (the name of the Cloud DNS managed zone)\n> 3. Do not attempt to guess. Wait for the user to provide them.\n\n### Step 1: Check configurations\nAlways run the checks first to validate active GCP project alignment and CLI tools:\n```bash\npython3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy \\\n  --config \u003Cdeployment_config_path> \\\n  --dns-project \u003Cdns_project_id> \\\n  --dns-zone \u003Cdns_managed_zone_name> \\\n  --only check\n```\n\n### Step 2: Deploy\nRun the automated deployment script by providing the DNS project and zone details:\n```bash\npython3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy \\\n  --config \u003Cdeployment_config_path> \\\n  --dns-project \u003Cdns_project_id> \\\n  --dns-zone \u003Cdns_managed_zone_name>\n```\n\n### Step 3: Resuming or Running Specific Steps\nTo resume from a failed step, run:\n```bash\npython3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy \\\n  --config \u003Cdeployment_config_path> \\\n  --dns-project \u003Cdns_project_id> \\\n  --dns-zone \u003Cdns_managed_zone_name> \\\n  --start-from \u003Cfailed_step>\n```\n\nTo run **only** a single specific step (e.g. rebuild\u002Fpush images or run verify tests), run:\n```bash\npython3 tools\u002Fdev_env\u002Fdev_env.py gke-deploy \\\n  --config \u003Cdeployment_config_path> \\\n  --dns-project \u003Cdns_project_id> \\\n  --dns-zone \u003Cdns_managed_zone_name> \\\n  --only \u003Cstep>\n```\n*Valid steps: `check`, `compile`, `images`, `apis`, `primary`, `compute`, `gateway-api`, `prereqs`, `app`, `verify`*\n\n---\n\n## 3. Option 2: Manual Step-by-Step Deployment\n\nDeploy the blueprint groups sequentially to allow monitoring and manual intervention.\n\n### Step 1: Compile the Blueprint\nCompile the blueprint, specifying the overrides config file (e.g., `deploy\u002Fctk_v2\u002Fxmanager-cloud-deployment.yaml`) using the `-d` flag. If the user hasn't specified the overrides file, look for files in `deploy\u002Fctk_v2\u002F` matching `*deployment.yaml`.\n\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster create deploy\u002Fctk_v2\u002Fxmanager-cloud.yaml -d \u003Cdeployment_config_path> -o ctk-out -l WARNING -w --force\n```\n\nConfirm that compilation completes successfully and generates the deployment folder named after your `\u003Cdeployment_name>` inside `ctk-out\u002F` containing the Terraform workspaces.\n\n### Step 2: Enable APIs (`apis` group)\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster deploy ctk-out\u002F\u003Cdeployment_name> --only apis --auto-approve\n```\n\n### Step 3: Deploy Core Infrastructure & IP (`primary` group)\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster deploy ctk-out\u002F\u003Cdeployment_name> --only primary --auto-approve\n```\n\n### Step 4: DNS Pause & IP Mapping\n1. **Extract static Gateway IP**:\n   Identify the environment name (e.g. `xmcv2`) and GCP project ID from the deployment config. Retrieve the Gateway IP address:\n   ```bash\n   gcloud compute addresses describe xmc-gateway-static-ip-\u003Cenvironment> --global --project=\u003Cproject_id> --format='value(address)'\n   ```\n\n2. **User Action Request & Pause**:\n   Present the following instruction and **stop execution** until the user confirms DNS and OAuth configuration are complete:\n\n   > [!IMPORTANT]\n   > **Manual Configuration Required**\n   >\n   > 1. **DNS Routing Configuration**:\n   >    Please configure the following A records in your authoritative DNS project for the Gateway IP **`\u003CGATEWAY_IP>`**:\n   >\n   >    | Record Type | Hostname | Target IP |\n   >    |:---:|---|---|\n   >    | **A** | `\u003Cenvironment>.example.com` | `\u003CGATEWAY_IP>` |\n   >    | **A** | `api.\u003Cenvironment>.example.com` | `\u003CGATEWAY_IP>` |\n   >    | **A** | `grpc.\u003Cenvironment>.example.com` | `\u003CGATEWAY_IP>` |\n   >\n   > 2. **OAuth Authorized Redirect URI**:\n   >    Ensure the following Redirect URI is added to your Google Cloud Console OAuth Web Client ID config:\n   >    * **`https:\u002F\u002F\u003Cenvironment>.example.com\u002Fapi\u002Fcallback`**\n   >\n   > Once these DNS records are created and the redirect URI is registered in the GCP console, reply to this conversation to proceed with the remaining deployment steps.\n\n3. **Stop executing tools** and wait for the user to confirm.\n\n### Step 5: Deploy GKE Cluster & Node Pools (`compute` group)\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster deploy ctk-out\u002F\u003Cdeployment_name> --only compute --auto-approve\n```\n\n### Step 6: Enable GKE Gateway API standard channel\nSince GKE has Gateway API disabled by default, you must enable it on the newly created GKE cluster before deploying the application (which relies on `Gateway` and `HTTPRoute` resources). Run:\n\n```bash\ngcloud container clusters update \u003Ccluster_name> \\\n    --gateway-api=standard \\\n    --region=\u003Cregion> \\\n    --project=\u003Cproject_id>\n```\n> [!NOTE]\n> The default `\u003Ccluster_name>` format is `xmc-\u003Cdeployment_name>-\u003Cenvironment>`.\n\n### Step 7: Install GKE System Helm Charts (`kubernetes_prereqs` group)\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster deploy ctk-out\u002F\u003Cdeployment_name> --only kubernetes_prereqs --auto-approve\n```\n\n### Step 8: Build and Push XMC Service Images\nBefore deploying the application Helm chart, build and push all service Docker images to GCP Artifact Registry. You must set the project's target registry and environment variables:\n\n```bash\nexport XMC_ACR_TARGET=\"us-docker.pkg.dev\u002F\u003Cproject_id>\u002F\u003Cxmc_registry_name>\"\nexport XMC_ENV=\"\u003Cenvironment>\"\n\nbazel run \u002F\u002Fcmd\u002Factuator:actuator_image_push\nbazel run \u002F\u002Fcmd\u002Fexperiment_state_server:experiment_state_server_image_push\nbazel run \u002F\u002Fcmd\u002Flog_monitor:log_monitor_image_push\nbazel run \u002F\u002Fcmd\u002Freconciler:reconciler_image_push\nbazel run \u002F\u002Fcmd\u002Fui:ui_image_push\nbazel run \u002F\u002Fcmd\u002Fxid_service:xid_service_image_push\nbazel run \u002F\u002Fcmd\u002Fhealth_service:health_service_image_push\nbazel run \u002F\u002Fcmd\u002Fdashboard_service:dashboard_service_image_push\nbazel run \u002F\u002Fcmd\u002Frod_data_provider:rod_data_provider_image_push\nbazel run \u002F\u002Fcmd\u002Fingestion_gateway:ingestion_gateway_image_push\nbazel run \u002F\u002Fcmd\u002Fxmc_bridge:xmc_bridge_image_push\n```\n\n### Step 9: Deploy XMC Application (`xmc_app` group)\n```bash\n.\u002Fcluster-toolkit\u002Fgcluster deploy ctk-out\u002F\u003Cdeployment_name> --only xmc_app --auto-approve\n```\n\n---\n\n## 4. Verification and Validation\n\nVerify the health, certificate readiness, and routing of the environment:\n\n### Step 1: Run Verification Script\nEnsure the Python virtual environment is activated, then run:\n```bash\npython3 .\u002Fdeploy\u002Fctk_v2\u002Fverify_xmc.py\n```\n\n### Step 2: Gateway Status Check\nPoll until the GKE Gateway status reports `Programmed: True`:\n```bash\nkubectl get gateway xmc-gateway -n xmc -o jsonpath='{.status.conditions[?(@.type==\"Programmed\")].status}'\n```\n\n### Step 3: GTS Certificate Check\nPoll until the Google-managed certificate state reports `ACTIVE`:\n```bash\ngcloud certificate-manager certificates describe xmc-cert-\u003Cenvironment> --project=\u003Cproject_id> --format='value(managed.state)'\n```\n\n> [!TIP]\n> Once all checks pass, report the finalized deployment URL (e.g. `https:\u002F\u002F\u003Cenvironment>.example.com`) to the user.\n",{"name":5,"description":7},"main","c7acb3137062049a9783e50b0a7310f288fe01d3",".agents\u002Fskills\u002Fxmc_deploy",0,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxmc","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 11:47:55",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add google\u002Fxmc --skill \"XMC Deploy Environment\"",{"tool":49,"command":50},"bunx","bunx skills add google\u002Fxmc --skill \"XMC Deploy Environment\"",{"tool":52,"command":53},"pnpm","pnpm dlx skills add google\u002Fxmc --skill \"XMC Deploy Environment\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxmc\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fxmc_deploy\u002FSKILL.md",true,[],[58,75,97,123,146,169],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":29},"01M6X0PXHKB5KRZ6BESP7J4A3H","XMC Upgrade Environment","Upgrades an existing XManager on Cloud (XMC) environment on GKE to the latest current branch state using the deployment configuration YAML.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxmc\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fxmc_upgrade\u002FSKILL.md",[],[19,60,65,66,25,67,68,69,70,71,72,73,74],"upgrade","branch","upgrades","Existing","state","gke","yaml","latest","cloud","configuration",{"skillNo":76,"name":77,"nameZh":6,"description":78,"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":29},"01M6X0PQ36XYVZW78KRBR8MT9E","XMC Trajectory Comparison","Validates proposed skill or rule changes by executing concurrent A\u002FB benchmark subagents on clean baseline vs candidate worktrees, comparing trajectories, and tearing down test resources.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxmc\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fxmc_trajectory_comparison\u002FSKILL.md",[],[77,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],"comparison","trajectory","resources","down","clean","trajectories","candidate","test","changes","worktrees","baseline","benchmark","clean baseline","rule","subagents",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":29},"01M6X0PFP96RZXZNJ9V4T2ZJK5","XMC Review PR","Interactive multi-agent PR review workflow enforcing code rules, open direction discussions, explicit confirmation gates, inline comment deduplication, and follow-up re-review verification.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxmc\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fxmc_review_pr\u002FSKILL.md",[],[99,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122],"review","pr","review pr","direction","re","up","open","confirmation","deduplication","workflow","code","verification","inline","follow-up","multi-agent","pr review","Rules","interactive","gates",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":29},"01M6X0P8K827HRQFZS32Y1KB2N","XMC Release","Orchestrates an end-to-end XMC release workflow — deploying the latest main to nightly, running and verifying e2e tests, capturing visual snapshot galleries, generating and iterating on structured release notes with the user, and publishing the release. Use when preparing, orchestrating, or publishing a formal XMC release from main.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxmc\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fxmc_release\u002FSKILL.md",[],[125,130,131,132,133,134,34,135,136,137,138,113,139,140,141,142,72,143,144,145],"release","running","end","tests","publishing","e2e","release notes","use","when","visual","with","notes","e2e tests","snapshot","user","structured",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":29},"01M6X0P20VKAAEP4R43HJQ9957","XMC PR Split Verification","Analyzes pull request diffs exceeding size thresholds (400 prod \u002F 1000 total \u002F 1000 docs) to enforce Single Responsibility Principle (SRP), evaluate vertical slice splitting feasibility, eliminate dead code, and plan gh-stack PR stacks.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxmc\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fxmc_pr_split_verification\u002FSKILL.md",[],[105,148,153,115,154,155,156,157,158,159,160,114,161,162,163,164,165,166,167,168],"split","pull","thresholds","slice","enforce","diffs","single","gh","vertical slice","stack","plan","size","evaluate","pull request","request","dead code",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":29},"01M6X0NV5ZP3T8RPKRYGGJ613G","XMC Iterative Reflection","Audits active session trajectory, thought history, and PR review comments to identify friction points, rule gaps, missing helper tools, and token inefficiencies. Use when requested by the user, after major implementations, or following PR review comment resolutions.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxmc\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fxmc_iterative_reflection\u002FSKILL.md",[],[171,176,177,138,104,178,179,180,181,105,119,182,183,137,184,185,186,83,187,95],"reflection","pr review comments","active","token","Tools","history","session","missing","helper","comments","gaps","friction"]