[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D5CM6ZYSC7CVTDHEZGJR15":3,"skill-same:01M7D5CM6ZYSC7CVTDHEZGJR15":93},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":28,"commitSha":29,"skillDirectory":5,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7D5CM6ZYSC7CVTDHEZGJR15","agent-platform-architecture",null,"Designs, engineers, and validates enterprise Gemini platform architectures. Use when designing multi-project hierarchies (Host, Central Governance Hub, Runtime Spoke, Tool\u002FMCP Spoke), configuring Agent Gateway, authoring Agent Connectivity Templates (ALL_TRAFFIC vs PRIVATE_RANGES_ONLY), deploying Secure Web Proxy (SWP) with Policy-Based Routing (PBR) or Cross-Cloud mTLS Egress Hubs, configuring Private CA TrustConfig with Internal ALB + Serverless NEG, implementing Unified Access Policies (UAP Policy V2 CEL) and Semantic Governance (SGP), configuring 3P IdP Token Exchange (EntraID\u002FPing\u002FOkta via ext_proc + STS) or Agent Identity Auth Manager (SPIFFE), enforcing Model Armor Floor Settings and Fail-Closed guardrails, deploying Cross-Project Registry sync, binding ADK agents on Agent Runtime, or executing Day-2 lifecycle operations. Don't use for read-only live log triage or incident diagnosis, or generic Google Cloud Identity and Access Management (IAM) debugging.","tangyixiao\u002Ftangyixiao-skills","tangyixiao","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F115929632?v=4","01M7D582YK6A4M63CAK4CSY4EW","Tang Yixiao","01M7D582Z64DMRSYR872SR34SA",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-platform-architecture\ndescription: Designs, engineers, and validates enterprise Gemini platform architectures.\n  Use when designing multi-project hierarchies (Host, Central Governance Hub, Runtime\n  Spoke, Tool\u002FMCP Spoke), configuring Agent Gateway, authoring Agent Connectivity\n  Templates (ALL_TRAFFIC vs PRIVATE_RANGES_ONLY), deploying Secure Web Proxy (SWP)\n  with Policy-Based Routing (PBR) or Cross-Cloud mTLS Egress Hubs, configuring Private\n  CA TrustConfig with Internal ALB + Serverless NEG, implementing Unified Access Policies\n  (UAP Policy V2 CEL) and Semantic Governance (SGP), configuring 3P IdP Token Exchange\n  (EntraID\u002FPing\u002FOkta via ext_proc + STS) or Agent Identity Auth Manager (SPIFFE),\n  enforcing Model Armor Floor Settings and Fail-Closed guardrails, deploying Cross-Project\n  Registry sync, binding ADK agents on Agent Runtime, or executing Day-2 lifecycle\n  operations. Don't use for read-only live log triage or incident diagnosis, or generic\n  Google Cloud Identity and Access Management (IAM) debugging.\nlicense: Apache-2.0\nmetadata:\n  version: 1.0.0\n  category: AiAndMachineLearning\n---\n\n# Gemini platform Architecture and Engineering Guide\n\nThis skill is the reference system for designing, engineering, and validating enterprise-grade **Gemini platform** architectures across multi-project hierarchies, hybrid\u002Fcross-cloud networks, zero-trust identity boundaries, and inline safety\u002Fpolicy enforcement planes.\n\n## Usage Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read and follow the instructions in\n[Usage Attribution](references\u002Fattribution.md).\n\n> [!IMPORTANT] **Architectural Scope and Reference Discipline**: Use `SKILL.md` to\n> select the target topology, egress mode, ingress pattern, and governance\n> plane, then consult the authoritative `references\u002F*.md` manual for exact CLI\n> commands, REST\u002FYAML schemas, Common Expression Language (CEL) expressions, and\n> Python Agent Development Kit (ADK) runtime code (`references\u002F*.md` is the\n> single source of truth for all implementation syntax). When remote Model\n> Context Protocol (MCP) tools (such as the Google Developer Knowledge MCP\n> server or Google-managed MCP endpoints) are available, prefer remote MCP tool\n> invocation over raw CLI\u002FREST commands. Do not execute unrequested live\n> mutations against customer projects when asked for architectural designs.\n\n> [!CAUTION] **Human Approval Gate for Sensitive Operations**: Always prompt the\n> user for explicit confirmation before executing commands or applying\n> configurations that grant permissive Identity and Access Management (IAM)\n> bindings (`roles\u002Fiap.egressor`, `roles\u002Fcompute.networkUser`,\n> `roles\u002Fnetworkservices.admin`), modify Organization Policies\n> (`constraints\u002Fiam.managed.disableAccessPolicyBinding`), update Unified Access\n> Policy (UAP) or VPC Service Controls (VPC-SC) policies, or delete resources\n> (REST `DELETE ...?force=true` or CLI `--quiet`).\n\n---\n\n## Prerequisites, Authentication, Region, and Billing Setup\n\n1.  **Google Cloud SDK, Authentication, and Project Setup**:\n    -   Install the\n        [Google Cloud SDK (`gcloud`)](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall)\n        and authenticate CLI and Application Default Credentials\n        (`gcloud auth login && gcloud auth application-default login`, or set\n        `GOOGLE_APPLICATION_CREDENTIALS`).\n    -   Select or create the target project (`gcloud projects create\n        {project_id}` \u002F `gcloud config set project {project_id}`), set the\n        default region (`gcloud config set compute\u002Fregion {region}`, defaulting\n        to **`us-central1`**; see\n        [Google Cloud Locations](https:\u002F\u002Fcloud.google.com\u002Fabout\u002Flocations)), and\n        enable required APIs:\n\n        ```bash\n        gcloud services enable aiplatform.googleapis.com agentregistry.googleapis.com \\\n          agentidentity.googleapis.com agentidentitycredentials.googleapis.com \\\n          networkservices.googleapis.com networksecurity.googleapis.com iap.googleapis.com \\\n          modelarmor.googleapis.com compute.googleapis.com dns.googleapis.com \\\n          certificatemanager.googleapis.com servicenetworking.googleapis.com\n        ```\n2.  **Billing, Least-Privilege IAM, and Product Terminology**:\n    -   Verify an active billing account is attached (`gcloud billing projects\n        describe {project_id} --format=\"value(billingEnabled)\"`) across\n        `{host_project_id}`, `{gov_project_id}`, `{runtime_project_id}`, and\n        `{mcp_project_id}` (required even when evaluating free-tier allowances;\n        review [Google Cloud Pricing](https:\u002F\u002Fcloud.google.com\u002Fpricing)).\n    -   Grant explicit least-privilege IAM roles (`roles\u002Faiplatform.user`,\n        `roles\u002Fnetworkservices.admin`, `roles\u002Fcompute.networkAdmin`,\n        `roles\u002Fcompute.networkUser`, `roles\u002Fiap.egressor`, or a custom role with\n        `networkservices.agentGateways.get,networkservices.agentGateways.use,networkservices.operations.get`)\n        rather than primitive `roles\u002Fowner` or `roles\u002Feditor`.\n    -   Use approved product names: **Gemini platform**,\n        **Agent Runtime** (`reasoningEngines`), **Agent Gateway**\n        (`240.0.0.2:443`), **Agent Connectivity Template (ACT)**, **Agent\n        Registry**, and **Unified Access Policy (UAP Policy V2)** \u002F **Semantic\n        Governance Policy (SGP)**.\n\n---\n\n## 3-Phase Architect Workflow and Decision Tree\n\n```mermaid\ngraph TD\n    Start[\"Enterprise Gemini platform Architecture\"] --> Q1{\"1. Egress Destinations?\"}\n    Q1 -->|\"RFC 1918 + Google APIs Only\"| Priv[\"ACT: vpcEgress = PRIVATE_RANGES_ONLY\u003Cbr\u002F>• Direct Private Google Access (PGA)\"]\n    Q1 -->|\"Public Internet, VPC-SC, or Non-RFC 1918 PUPI\"| All[\"ACT: vpcEgress = ALL_TRAFFIC\u003Cbr\u002F>• 100% Egress via AGW VIP 240.0.0.2:443\u003Cbr\u002F>• Consolidate Core Google APIs FQDNs\"]\n    All --> Q2{\"2. Layer 7 URL List or Cross-Cloud mTLS?\"}\n    Q2 -->|\"No (Standard NAT)\"| Nat[\"Direct Cloud NAT on PSC-I Subnet\u003Cbr\u002F>• ENDPOINT_TYPE_VM,ENDPOINT_TYPE_SWG\"]\n    Q2 -->|\"Yes (Next-Hop SWP)\"| Swp[\"Next-Hop SWP (NEXT_HOP_ROUTING_MODE) + PBR\u003Cbr\u002F>• Internal and Google API DEFAULT_ROUTING bypasses\u003Cbr\u002F>• Default route via SWP ILB IP\u003Cbr\u002F>• Exclude PSC-I from manual Cloud NAT\"]\n```\n\n1.  **Phase 1 — Scope Verification and Architecture Discovery**:\n    -   **Scope Boundaries and Single-Region Discovery**: Decline generic Google\n        Cloud IAM\u002FCompute\u002FStorage debugging unrelated to the Gemini platform\n        stack or requests to run broad multi-region live project scanning loops,\n        pointing instead to `gcloud ai reasoning-engines list --region={region}`.\n    -   **Architecture Design and Engineering**: Identify the project\n        hierarchy (`Host`, `Governance Hub`, `Runtime Spoke`, `Tool\u002FMCP Spoke`),\n        egress mode (`ALL_TRAFFIC` vs `PRIVATE_RANGES_ONLY`), policy plane (UAP\n        V2, SGP, Model Armor), and target output format (topology\n        specification, `gcloud` CLI commands, or REST\u002FYAML manifests).\n2.  **Phase 2 — Draft Architecture Plan and Resource Mapping**:\n    -   Synthesize the topology diagram, project\u002FVPC layout, IAM bootstrap\n        matrix, and security controls using the **Domain Router and Symptom\n        Matrix**, and map each manual's canonical REST\u002FYAML schema and CLI\n        commands into the target deployment artifacts.\n3.  **Phase 3 — Post-Deployment and Audit Log Verification**:\n    -   Pair every architecture design with the **Post-Deployment and Cloud Audit\n        Log Verification** checklist\n        (`references\u002Ftopologies_and_project_layouts.md`) and runtime query\n        validation (`references\u002Fagent_runtime_and_identity.md`).\n\n---\n\n## Domain Router and Symptom Matrix\n\nEach reference manual in `references\u002F` is the **single source of truth** for its\ndomain's CLI commands, REST\u002FYAML schemas, quotas, and CEL expressions. Always\nread the corresponding reference manual before generating configurations or\nanswering domain-specific questions:\n\nArchitecture Domain                                               | Topics and Architectural Decisions Covered                                                                                                                                                                                                                                            | Symptoms and Failure Modes Routed Here                                                                                                                                                                                         | Canonical Reference Manual\n:---------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------\n**1. Project Hierarchy, Shared VPC, VPC-SC, and Custom Routing**  | Multi-project separation (`Host`, `Governance Hub`, `Runtime Spoke`, `Tool\u002FMCP Spoke`), PSC-I subnet sizing, cross-project Service Agent IAM bootstrap, VPC-SC perimeters, non-RFC 1918 PUPI\u002Fpeered custom route exchange, and post-deployment Cloud Audit Log verification.          | PSC-I IP exhaustion, cross-project attachment or `addressGroup` permission denials, VPC-SC perimeter blocks, dropped non-RFC 1918 internal routes, or post-deployment verification.                                            | [`references\u002Ftopologies_and_project_layouts.md`](references\u002Ftopologies_and_project_layouts.md)\n**2. Agent Connectivity Template (ACT) and Agent Gateway**        | Choosing `ALL_TRAFFIC` vs `PRIVATE_RANGES_ONLY`, ACT and Agent Gateway REST\u002FYAML schemas, control-plane URI formatting, registry attachment limits, and container custom Root CA bundle trust.                                                                                        | Control-plane URI validation errors, registry attachment limit errors, or container TLS verification failures (`[SSL: UNEXPECTED_EOF_WHILE_READING]`).                                                                         | [`references\u002Fagent_gateway_and_act.md`](references\u002Fagent_gateway_and_act.md)\n**3. Outbound Routing, Next-Hop SWP, PBR, and Hybrid mTLS**       | Source-range Policy-Based Routes (PBR) for PSC-I subnets, Next-Hop Secure Web Proxy (`NEXT_HOP_ROUTING_MODE`), `swg-autogen-nat` vs manual Cloud NAT coexistence, gRPC\u002FA2A\u002FWebSocket routing, Spanner SA impersonation, and Cross-Cloud mTLS Egress Hubs (`Hybrid NEG`).              | Asymmetric return-routing drops between manual Cloud NAT and `swg-autogen-nat`, outbound URL filtering on PSC-I interfaces, or cross-cloud mTLS origination over Cloud Interconnect\u002FVPN.                                       | [`references\u002Fegress_routing_and_swp.md`](references\u002Fegress_routing_and_swp.md)\n**4. Ingress ALB, URL Rewrites, Private CA, and 3P IdP STS**      | Two-Tier and Single-Tier ALB ingress with URL Map `hostRewrite`\u002F`pathPrefixRewrite`, Private CA `TrustConfig` with Regional Internal ALB + Serverless NEG for Cloud Run MCP servers, and 3P IdP (`EntraID`\u002F`Ping`\u002F`Okta`) token exchange via `LbTrafficExtension` (`ext_proc` + STS). | WebPKI root stripping (`NO_ADDITIONAL_ROOTS`), empty `:authority` drops on Serverless NEGs, `*.run.app` Google-managed certificate mismatches, or OAuth\u002FIAP header collisions.                                                 | [`references\u002Fingress_patterns_and_rewrites.md`](references\u002Fingress_patterns_and_rewrites.md)\n**5. UAP Policy V2, IAP V1, SGP, and Model Armor Governance**     | Organization\u002FFolder\u002FProject UAP Policy V2 and IAP V1 CEL authorization rules, Semantic Governance Policy (SGP `CONTENT_AUTHZ`), custom `AuthzExtension` \u002F `AuthzPolicy` targets, and fail-closed Model Armor Floor Settings, templates, and ADK callbacks.                            | `Egress request is not authorized` (`HTTP 403` \u002F `status.code=7`) on MCP `initialize` or `tools\u002Flist`, `failed to parse the service URL` on `AuthzExtension`, binary gRPC parser crashes, or fail-open safety bypasses.        | [`references\u002Fgovernance_security_policies.md`](references\u002Fgovernance_security_policies.md)\n**6. Agent Registry, Consolidated `googleapis`, and Federation**  | Consolidating core Google APIs FQDNs into a single `googleapis` service (`ALL_TRAFFIC`), registering MCP\u002FA2A\u002FREST services, extracting server-generated `registryResource` UUIDs for `roles\u002Fiap.egressor`, and Event-Driven Spoke-to-Hub Registry Federation.                         | `ALL_TRAFFIC` agent startup or telemetry blackholing, IAM binding target mismatches on Registry resources, OpenAPI\u002FMCP spec size rejections, or multi-project catalog drift.                                                   | [`references\u002Fregistry_and_federation.md`](references\u002Fregistry_and_federation.md)\n**7. ADK Runtime Packaging, Agent Identity, and Day-2 Operations**| Packaging ADK agents with `AGENT_IDENTITY` (SPIFFE) and Auth Manager, regional residency, BigQuery pre-execution cost guards, in-place ACT updates, reverse-dependency teardown, and external Cloud NAT IP verification.                                                              | Raw credential exposure, `HTTP 409 ABORTED` control-plane mutex locks, `HTTP 400 FAILED_PRECONDITION` (`FROM_AGENT_GATEWAY*` or `contains child resources: sessions`), or `X-Forwarded-For: 0.0.0.0` when probing `*.run.app`. | [`references\u002Fagent_runtime_and_identity.md`](references\u002Fagent_runtime_and_identity.md)\n\n---\n\n## Supporting Public Documentation Links\n\n- [Agent Runtime Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fagents.md.txt)\n- [Agent Gateway Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fgovern\u002Fgateways\u002Fagent-gateway-overview.md.txt)\n- [Policies Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fgovern\u002Fpolicies\u002Foverview.md.txt)\n- [Agent Identity Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fgovern\u002Fagent-identity-overview.md.txt)\n- [Agent Registry Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fgovern\u002Fagent-registry.md.txt)\n- [Deploy Agent Gateway Runtime](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fscale\u002Fruntime\u002Fagent-gateway-runtime-deploy.md.txt)\n- [Private Service Connect Interface](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fscale\u002Fruntime\u002Fprivate-service-connect-interface.md.txt)\n","# Gemini platform Architecture and Engineering Guide\n\nThis skill is the reference system for designing, engineering, and validating enterprise-grade **Gemini platform** architectures across multi-project hierarchies, hybrid\u002Fcross-cloud networks, zero-trust identity boundaries, and inline safety\u002Fpolicy enforcement planes.\n\n## Usage Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read and follow the instructions in\n[Usage Attribution](references\u002Fattribution.md).\n\n> [!IMPORTANT] **Architectural Scope and Reference Discipline**: Use `SKILL.md` to\n> select the target topology, egress mode, ingress pattern, and governance\n> plane, then consult the authoritative `references\u002F*.md` manual for exact CLI\n> commands, REST\u002FYAML schemas, Common Expression Language (CEL) expressions, and\n> Python Agent Development Kit (ADK) runtime code (`references\u002F*.md` is the\n> single source of truth for all implementation syntax). When remote Model\n> Context Protocol (MCP) tools (such as the Google Developer Knowledge MCP\n> server or Google-managed MCP endpoints) are available, prefer remote MCP tool\n> invocation over raw CLI\u002FREST commands. Do not execute unrequested live\n> mutations against customer projects when asked for architectural designs.\n\n> [!CAUTION] **Human Approval Gate for Sensitive Operations**: Always prompt the\n> user for explicit confirmation before executing commands or applying\n> configurations that grant permissive Identity and Access Management (IAM)\n> bindings (`roles\u002Fiap.egressor`, `roles\u002Fcompute.networkUser`,\n> `roles\u002Fnetworkservices.admin`), modify Organization Policies\n> (`constraints\u002Fiam.managed.disableAccessPolicyBinding`), update Unified Access\n> Policy (UAP) or VPC Service Controls (VPC-SC) policies, or delete resources\n> (REST `DELETE ...?force=true` or CLI `--quiet`).\n\n---\n\n## Prerequisites, Authentication, Region, and Billing Setup\n\n1.  **Google Cloud SDK, Authentication, and Project Setup**:\n    -   Install the\n        [Google Cloud SDK (`gcloud`)](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall)\n        and authenticate CLI and Application Default Credentials\n        (`gcloud auth login && gcloud auth application-default login`, or set\n        `GOOGLE_APPLICATION_CREDENTIALS`).\n    -   Select or create the target project (`gcloud projects create\n        {project_id}` \u002F `gcloud config set project {project_id}`), set the\n        default region (`gcloud config set compute\u002Fregion {region}`, defaulting\n        to **`us-central1`**; see\n        [Google Cloud Locations](https:\u002F\u002Fcloud.google.com\u002Fabout\u002Flocations)), and\n        enable required APIs:\n\n        ```bash\n        gcloud services enable aiplatform.googleapis.com agentregistry.googleapis.com \\\n          agentidentity.googleapis.com agentidentitycredentials.googleapis.com \\\n          networkservices.googleapis.com networksecurity.googleapis.com iap.googleapis.com \\\n          modelarmor.googleapis.com compute.googleapis.com dns.googleapis.com \\\n          certificatemanager.googleapis.com servicenetworking.googleapis.com\n        ```\n2.  **Billing, Least-Privilege IAM, and Product Terminology**:\n    -   Verify an active billing account is attached (`gcloud billing projects\n        describe {project_id} --format=\"value(billingEnabled)\"`) across\n        `{host_project_id}`, `{gov_project_id}`, `{runtime_project_id}`, and\n        `{mcp_project_id}` (required even when evaluating free-tier allowances;\n        review [Google Cloud Pricing](https:\u002F\u002Fcloud.google.com\u002Fpricing)).\n    -   Grant explicit least-privilege IAM roles (`roles\u002Faiplatform.user`,\n        `roles\u002Fnetworkservices.admin`, `roles\u002Fcompute.networkAdmin`,\n        `roles\u002Fcompute.networkUser`, `roles\u002Fiap.egressor`, or a custom role with\n        `networkservices.agentGateways.get,networkservices.agentGateways.use,networkservices.operations.get`)\n        rather than primitive `roles\u002Fowner` or `roles\u002Feditor`.\n    -   Use approved product names: **Gemini platform**,\n        **Agent Runtime** (`reasoningEngines`), **Agent Gateway**\n        (`240.0.0.2:443`), **Agent Connectivity Template (ACT)**, **Agent\n        Registry**, and **Unified Access Policy (UAP Policy V2)** \u002F **Semantic\n        Governance Policy (SGP)**.\n\n---\n\n## 3-Phase Architect Workflow and Decision Tree\n\n```mermaid\ngraph TD\n    Start[\"Enterprise Gemini platform Architecture\"] --> Q1{\"1. Egress Destinations?\"}\n    Q1 -->|\"RFC 1918 + Google APIs Only\"| Priv[\"ACT: vpcEgress = PRIVATE_RANGES_ONLY\u003Cbr\u002F>• Direct Private Google Access (PGA)\"]\n    Q1 -->|\"Public Internet, VPC-SC, or Non-RFC 1918 PUPI\"| All[\"ACT: vpcEgress = ALL_TRAFFIC\u003Cbr\u002F>• 100% Egress via AGW VIP 240.0.0.2:443\u003Cbr\u002F>• Consolidate Core Google APIs FQDNs\"]\n    All --> Q2{\"2. Layer 7 URL List or Cross-Cloud mTLS?\"}\n    Q2 -->|\"No (Standard NAT)\"| Nat[\"Direct Cloud NAT on PSC-I Subnet\u003Cbr\u002F>• ENDPOINT_TYPE_VM,ENDPOINT_TYPE_SWG\"]\n    Q2 -->|\"Yes (Next-Hop SWP)\"| Swp[\"Next-Hop SWP (NEXT_HOP_ROUTING_MODE) + PBR\u003Cbr\u002F>• Internal and Google API DEFAULT_ROUTING bypasses\u003Cbr\u002F>• Default route via SWP ILB IP\u003Cbr\u002F>• Exclude PSC-I from manual Cloud NAT\"]\n```\n\n1.  **Phase 1 — Scope Verification and Architecture Discovery**:\n    -   **Scope Boundaries and Single-Region Discovery**: Decline generic Google\n        Cloud IAM\u002FCompute\u002FStorage debugging unrelated to the Gemini platform\n        stack or requests to run broad multi-region live project scanning loops,\n        pointing instead to `gcloud ai reasoning-engines list --region={region}`.\n    -   **Architecture Design and Engineering**: Identify the project\n        hierarchy (`Host`, `Governance Hub`, `Runtime Spoke`, `Tool\u002FMCP Spoke`),\n        egress mode (`ALL_TRAFFIC` vs `PRIVATE_RANGES_ONLY`), policy plane (UAP\n        V2, SGP, Model Armor), and target output format (topology\n        specification, `gcloud` CLI commands, or REST\u002FYAML manifests).\n2.  **Phase 2 — Draft Architecture Plan and Resource Mapping**:\n    -   Synthesize the topology diagram, project\u002FVPC layout, IAM bootstrap\n        matrix, and security controls using the **Domain Router and Symptom\n        Matrix**, and map each manual's canonical REST\u002FYAML schema and CLI\n        commands into the target deployment artifacts.\n3.  **Phase 3 — Post-Deployment and Audit Log Verification**:\n    -   Pair every architecture design with the **Post-Deployment and Cloud Audit\n        Log Verification** checklist\n        (`references\u002Ftopologies_and_project_layouts.md`) and runtime query\n        validation (`references\u002Fagent_runtime_and_identity.md`).\n\n---\n\n## Domain Router and Symptom Matrix\n\nEach reference manual in `references\u002F` is the **single source of truth** for its\ndomain's CLI commands, REST\u002FYAML schemas, quotas, and CEL expressions. Always\nread the corresponding reference manual before generating configurations or\nanswering domain-specific questions:\n\nArchitecture Domain                                               | Topics and Architectural Decisions Covered                                                                                                                                                                                                                                            | Symptoms and Failure Modes Routed Here                                                                                                                                                                                         | Canonical Reference Manual\n:---------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------\n**1. Project Hierarchy, Shared VPC, VPC-SC, and Custom Routing**  | Multi-project separation (`Host`, `Governance Hub`, `Runtime Spoke`, `Tool\u002FMCP Spoke`), PSC-I subnet sizing, cross-project Service Agent IAM bootstrap, VPC-SC perimeters, non-RFC 1918 PUPI\u002Fpeered custom route exchange, and post-deployment Cloud Audit Log verification.          | PSC-I IP exhaustion, cross-project attachment or `addressGroup` permission denials, VPC-SC perimeter blocks, dropped non-RFC 1918 internal routes, or post-deployment verification.                                            | [`references\u002Ftopologies_and_project_layouts.md`](references\u002Ftopologies_and_project_layouts.md)\n**2. Agent Connectivity Template (ACT) and Agent Gateway**        | Choosing `ALL_TRAFFIC` vs `PRIVATE_RANGES_ONLY`, ACT and Agent Gateway REST\u002FYAML schemas, control-plane URI formatting, registry attachment limits, and container custom Root CA bundle trust.                                                                                        | Control-plane URI validation errors, registry attachment limit errors, or container TLS verification failures (`[SSL: UNEXPECTED_EOF_WHILE_READING]`).                                                                         | [`references\u002Fagent_gateway_and_act.md`](references\u002Fagent_gateway_and_act.md)\n**3. Outbound Routing, Next-Hop SWP, PBR, and Hybrid mTLS**       | Source-range Policy-Based Routes (PBR) for PSC-I subnets, Next-Hop Secure Web Proxy (`NEXT_HOP_ROUTING_MODE`), `swg-autogen-nat` vs manual Cloud NAT coexistence, gRPC\u002FA2A\u002FWebSocket routing, Spanner SA impersonation, and Cross-Cloud mTLS Egress Hubs (`Hybrid NEG`).              | Asymmetric return-routing drops between manual Cloud NAT and `swg-autogen-nat`, outbound URL filtering on PSC-I interfaces, or cross-cloud mTLS origination over Cloud Interconnect\u002FVPN.                                       | [`references\u002Fegress_routing_and_swp.md`](references\u002Fegress_routing_and_swp.md)\n**4. Ingress ALB, URL Rewrites, Private CA, and 3P IdP STS**      | Two-Tier and Single-Tier ALB ingress with URL Map `hostRewrite`\u002F`pathPrefixRewrite`, Private CA `TrustConfig` with Regional Internal ALB + Serverless NEG for Cloud Run MCP servers, and 3P IdP (`EntraID`\u002F`Ping`\u002F`Okta`) token exchange via `LbTrafficExtension` (`ext_proc` + STS). | WebPKI root stripping (`NO_ADDITIONAL_ROOTS`), empty `:authority` drops on Serverless NEGs, `*.run.app` Google-managed certificate mismatches, or OAuth\u002FIAP header collisions.                                                 | [`references\u002Fingress_patterns_and_rewrites.md`](references\u002Fingress_patterns_and_rewrites.md)\n**5. UAP Policy V2, IAP V1, SGP, and Model Armor Governance**     | Organization\u002FFolder\u002FProject UAP Policy V2 and IAP V1 CEL authorization rules, Semantic Governance Policy (SGP `CONTENT_AUTHZ`), custom `AuthzExtension` \u002F `AuthzPolicy` targets, and fail-closed Model Armor Floor Settings, templates, and ADK callbacks.                            | `Egress request is not authorized` (`HTTP 403` \u002F `status.code=7`) on MCP `initialize` or `tools\u002Flist`, `failed to parse the service URL` on `AuthzExtension`, binary gRPC parser crashes, or fail-open safety bypasses.        | [`references\u002Fgovernance_security_policies.md`](references\u002Fgovernance_security_policies.md)\n**6. Agent Registry, Consolidated `googleapis`, and Federation**  | Consolidating core Google APIs FQDNs into a single `googleapis` service (`ALL_TRAFFIC`), registering MCP\u002FA2A\u002FREST services, extracting server-generated `registryResource` UUIDs for `roles\u002Fiap.egressor`, and Event-Driven Spoke-to-Hub Registry Federation.                         | `ALL_TRAFFIC` agent startup or telemetry blackholing, IAM binding target mismatches on Registry resources, OpenAPI\u002FMCP spec size rejections, or multi-project catalog drift.                                                   | [`references\u002Fregistry_and_federation.md`](references\u002Fregistry_and_federation.md)\n**7. ADK Runtime Packaging, Agent Identity, and Day-2 Operations**| Packaging ADK agents with `AGENT_IDENTITY` (SPIFFE) and Auth Manager, regional residency, BigQuery pre-execution cost guards, in-place ACT updates, reverse-dependency teardown, and external Cloud NAT IP verification.                                                              | Raw credential exposure, `HTTP 409 ABORTED` control-plane mutex locks, `HTTP 400 FAILED_PRECONDITION` (`FROM_AGENT_GATEWAY*` or `contains child resources: sessions`), or `X-Forwarded-For: 0.0.0.0` when probing `*.run.app`. | [`references\u002Fagent_runtime_and_identity.md`](references\u002Fagent_runtime_and_identity.md)\n\n---\n\n## Supporting Public Documentation Links\n\n- [Agent Runtime Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fagents.md.txt)\n- [Agent Gateway Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fgovern\u002Fgateways\u002Fagent-gateway-overview.md.txt)\n- [Policies Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fgovern\u002Fpolicies\u002Foverview.md.txt)\n- [Agent Identity Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fgovern\u002Fagent-identity-overview.md.txt)\n- [Agent Registry Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fgovern\u002Fagent-registry.md.txt)\n- [Deploy Agent Gateway Runtime](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fscale\u002Fruntime\u002Fagent-gateway-runtime-deploy.md.txt)\n- [Private Service Connect Interface](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fscale\u002Fruntime\u002Fprivate-service-connect-interface.md.txt)\n",{"name":5,"license":15,"metadata":25,"description":7},{"version":26,"category":27},"1.0.0","AiAndMachineLearning","main","2a870f189175a48c39f5f7e26a6d93b0be9cd13b",0,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills","https:\u002F\u002Ftangyixiao.github.io\u002Ftangyixiao-skills\u002F","https:\u002F\u002Fgithub.com\u002Ftangyixiao","http:\u002F\u002Fwww.sxyz.net\u002F","I am Tang Yixiao, a student in Shaoxing No.1 High School. I am eager to learn on GitHub and contribute my part to this community.","2026-11-11 15:45:59",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add tangyixiao\u002Ftangyixiao-skills --skill agent-platform-architecture",{"tool":43,"command":44},"bunx","bunx skills add tangyixiao\u002Ftangyixiao-skills --skill agent-platform-architecture",{"tool":46,"command":47},"pnpm","pnpm dlx skills add tangyixiao\u002Ftangyixiao-skills --skill agent-platform-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002FSKILL.md",true,[51,57,61,65,69,73,77,81,85,89],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"INSTALL-SOURCE.json","REFERENCE","参考文档",541,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002FINSTALL-SOURCE.json",{"path":58,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":16},"LICENSE","许可证",11358,{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fagent_gateway_and_act.md",15052,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002Freferences\u002Fagent_gateway_and_act.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fagent_runtime_and_identity.md",28482,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002Freferences\u002Fagent_runtime_and_identity.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fattribution.md",1922,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002Freferences\u002Fattribution.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fegress_routing_and_swp.md",22759,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002Freferences\u002Fegress_routing_and_swp.md",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fgovernance_security_policies.md",30895,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002Freferences\u002Fgovernance_security_policies.md",{"path":82,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fingress_patterns_and_rewrites.md",26114,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002Freferences\u002Fingress_patterns_and_rewrites.md",{"path":86,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fregistry_and_federation.md",20048,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002Freferences\u002Fregistry_and_federation.md",{"path":90,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Ftopologies_and_project_layouts.md",32389,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fagent-platform-architecture\u002Freferences\u002Ftopologies_and_project_layouts.md",[94,102,111,119,127,135],{"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":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":20},"01M7D8JK8FYBFNNAJXWD89CFH7","xlsx","Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fxlsx\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fxlsx\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M7D8JG8ERGGQQAMX0DWCG9GR","writing-shape","Writing, exploit: shape raw material into an article, paragraph by paragraph.","MIT","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-shape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":20},"01M7D8JE672GW3EHSE8EF185M4","writing-fragments","Writing, explore: mine raw fragments, no structure yet.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-fragments\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-fragments\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":123,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M7D8JBK572YDFMND8Q6CEYJW","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-for-agents\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":131,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":20},"01M7D8J5QPWEXX61EGBKYH73R8","writing-clearly-and-concisely","Use when writing prose humans will read—documentation, commit messages, error messages, explanations, reports, or UI text. Applies Strunk's timeless rules for clearer, stronger, more professional writing.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-clearly-and-concisely\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-clearly-and-concisely\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":139,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":20},"01M7D8J36YWC8WZS5DK5AH03CD","writing-beats","Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-beats\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-beats\u002FSKILL.md",[],[]]