[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6996Q0DJB1QSH6ND2WA233N":3,"skill-same:01M6996Q0DJB1QSH6ND2WA233N":109},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":50,"linkOnly":51,"markdownContent":52,"markdownBody":53,"frontMatter":54,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":17,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6996Q0DJB1QSH6ND2WA233N","google-cloud-solution-n-tier-serverless-web-app","Google Cloud 多层无服务器 Web 应用架构","Assists in designing and implementing secure n-tier serverless web applications and microservices on Google Cloud. Use when users need architecture designs, security checklists, Terraform code, or deployment guidance for multi-tier serverless apps, regional data residency \u002F European sovereignty compliance, zero-trust private VPC networking, or Private Service Connect. Don't use for VM, GKE, or non-Google Cloud architectures.","协助设计和实现 Google Cloud 上安全的多层（n-tier）无服务器 Web 应用与微服务。当用户需要多层无服务器应用的架构设计、安全检查清单、Terraform 代码或部署指导，或涉及区域数据驻留 \u002F 欧洲主权合规、零信任私有 VPC 网络、Private Service Connect 时使用。不适用于 VM、GKE 或非 Google Cloud 架构。","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgoogle-cloud-solution-n-tier-serverless-web-app\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BT7QT9C9D1D585RWPEV0M1","云解决方案架构设计","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT9F3Z67AB1M6CHA8X75WW","云架构师","PROFESSION","适用职业",[31,10,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],"google cloud","google cloud solution n tier serverless web app","web","web app","app","cloud","serverless","when","implementing","apps","vpc","zero-trust","gke","data","code","connect","secure","architecture","security","2026-11-10 10:12:30",false,"---\nname: google-cloud-solution-n-tier-serverless-web-app\nmetadata:\n  version: \"1.0.1\"\n  category: MultiProductSolutions\ndescription: >-\n  Assists in designing and implementing secure n-tier serverless web applications and microservices on Google Cloud. Use when users need architecture designs, security checklists, Terraform code, or deployment guidance for multi-tier serverless apps, regional data residency \u002F European sovereignty compliance, zero-trust private VPC networking, or Private Service Connect. Don't use for VM, GKE, or non-Google Cloud architectures.\n---\n\n\u003C!-- disableFinding(all) -->\n\u003C!-- mdlint off -->\n\n# Secure n-tier serverless web application with strict private application tiers\n\nThis skill guides agents through the workflow of designing and implementing a\nsecure serverless web application with as many architectural design layers as\nspecified by the user. It uses Cloud Run for the serverless layers and Cloud SQL\nfor PostgreSQL as the data layer. A three-tier web application might be\nrepresented in three architectural layers: a Cloud Run presentation layer, a\nCloud Run application layer, and a Cloud SQL for PostgreSQL database layer.\n\nThe architecture enforces strict physical and network isolation across all tiers (T1 to TN):\n\n*   **Tier 1 presentation tier (frontend \u002F reverse proxy)**: Public-facing UI rendering\u002Fgateway service (Cloud Run). Exposes the entry point via Cloud Load Balancing and routes requests downstream to internal tiers privately via Direct VPC Egress.\n*   **Tier 2..N application tier (internal microservices \u002F business logic)**: Private application services (Cloud Run). 100% isolated from the internet (Ingress: VPC-internal, `INGRESS_TRAFFIC_INTERNAL_ONLY`), reachable exclusively via upstream VPC routing (`egress = \"ALL_TRAFFIC\"` with Private Google Access on the subnet for `*.run.app` URLs).\n*   **Data tier**: Private Cloud SQL for persistent data and Memorystore for\n    Redis for caching, reachable exclusively from authorized application tiers.\n\n## 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## General guidance to the LLM\n\n### 1. Direct Resource Map (Zero-Search File Access)\nAll necessary reference architectures, HCL templates, and checklists are co-located in this skill. Use exact relative paths from this skill folder:\n\n| Asset Path | Purpose & Usage |\n| :--- | :--- |\n| `assets\u002Fmain.tf` | **Single Source of Truth for Terraform (HCL)**. Contains all security boundaries, Cloud Run v2 configs, PSC endpoints, DNS private zones, and firewall rules. |\n| `assets\u002Foutput-template.md` | Standardized Solution Architecture report markdown structure. |\n| `references\u002Fnon-negotiable-architectural-rules.md` | Non-negotiable security rules, audit checklist, and product mappings. |\n| `references\u002Frelated-guidance.md` | Supplemental deep reference (do NOT read for standard design or IaC tasks; read only if specialized edge-case troubleshooting is explicitly required). |\n\n- **No Directory Crawling**: Do NOT run `list_dir` chains down workspace directories to discover these files.\n- **No Search Thrashing on Local Files**: Do NOT run `code_search` or `find_by_name` queries to look inside `assets\u002Fmain.tf`. Read the file directly using `view_file` once and reuse the context.\n- **No Redundant Skill Searches**: Do NOT call `skill_search` for serverless or n-tier architecture skills while executing this skill.\n\n### 2. Direct Inline Generation (No Subagent Delegation)\n- Perform all architecture compilation, Terraform drafting, `gcloud` command assembly, and validation script generation **directly in the primary conversation**.\n- Do **NOT** invoke subagents (`invoke_subagent`) to research external GitHub Terraform modules, probe environment configs, or draft reports. All required patterns are fully contained in `assets\u002Fmain.tf` and `references\u002F`.\n\n### 3. One-Shot Clean Artifact Writing\n- Generate complete, fully-rendered, and valid HCL blocks and Markdown reports in a single `write_to_file` call.\n- Avoid leaving placeholders or malformed code fences that require multi-turn `replace_file_content` and `grep_search` patch loops.\n- **No Unpopulated Placeholders**: When embedding code or scripts inside architecture reports (e.g., Section 6 of `assets\u002Foutput-template.md`), always inline the actual complete Terraform code, gcloud commands, and validation script code. Never output literal template placeholder comments (e.g., `# [Paste of main.tf file contents]`).\n- **In-Response Direct Rendering (Mandatory)**: Whenever Terraform code, deployment scripts, or architecture reports are requested or generated (e.g., \"provide a design and Terraform code\", \"generate IaC\"), you **MUST print the complete generated ```terraform ... ``` HCL code block and full solution report directly in your chat response text**, in addition to writing them to files on disk. Never output only an architectural design summary or file links when code is requested; automated evaluation frameworks (such as Yardstick) evaluate the raw response text and fail all code assertions if the ```terraform``` code block is missing from the message.\n\n### 4. Technical Completeness Checklist\n- When providing a concise architecture summary or security checklist (e.g., when instructed not to generate full IaC), you MUST explicitly include the following technical specifications:\n    - For regional load balancer deployments: regional proxy-only subnet purpose (`REGIONAL_MANAGED_PROXY`) and `network` parameter on regional forwarding rules.\n    - Cloud SQL PostgreSQL version (`POSTGRES_18`), Edition (`Enterprise Edition`), High Availability (`Regional HA`), and Private Service Connect (`psc_enabled = true`).\n    - Cloud NGFW Firewall Policies:\n        - MUST configure explicit Cloud NGFW network firewall policies (`google_compute_network_firewall_policy`, `google_compute_network_firewall_policy_association`, and `google_compute_network_firewall_policy_rule` with `enable_logging = var.enable_monitoring`) rather than legacy `google_compute_firewall`.\n        - Enforce default egress deny (`0.0.0.0\u002F0`).\n        - Allow frontend egress to backend \u002F PGA VIPs.\n        - Allow backend database egress explicitly permitting TCP port `443` to Private Google Access VIPs (`199.36.153.4\u002F30 \u002F 199.36.153.8\u002F30`) in addition to TCP port `5432` so the Cloud SQL Auth Proxy sidecar can query `sqladmin.googleapis.com` on startup for IAM certificate exchange.\n\n## Workflow\n\n> [!TIP]\n> **Optional MCP Server Integration**: If your AI coding client supports the **Model Context Protocol (`MCP`)**, you can connect the [Google Developer Knowledge MCP Server](https:\u002F\u002Fdevelopers.google.com\u002Fknowledge\u002Fmcp) (`npx -y @google\u002Fmcp-developer-knowledge-server`) to dynamically query real-time Google Cloud documentation (`cloud.google.com\u002Fdocs`) alongside this skill's offline knowledge base (`references\u002Frelated-guidance.md`).\n\nThe solution design and implementation workflow is divided into the following\nphases:\n\n*   **Phase 1: Requirements discovery and analysis**: Analyze the workload's\n    requirements, constraints, dependencies, and current state.\n*   **Phase 2: Solution design & IaC drafting**: Build a technology stack, architecture, and deployment configuration for the workload. **IMPORTANT: You should offer to generate the complete Terraform code (based on `assets\u002Fmain.tf` and adhering to all Phase 3 specifications) alongside the solution architecture during this phase.** This allows the user to immediately review and iteratively modify the code as the conversation continues. However, if the user explicitly states they do not want code, do not generate it yet.\n*   **Phase 3: Implementation plan & iterative refinement**: Modify and refine the generated design and deployment instructions as the conversation and user feedback evolve.\n*   **Phase 4: Solution validation**: Validate that the deployment meets the\n    requirements of the workload.\n\n--------------------------------------------------------------------------------\n\n### Phase 1: Requirements discovery and analysis\n\nTo prevent multi-turn interview fatigue and maintain trajectory determinism across evaluations, adopt an **opinionated 80% default golden path** unless the user explicitly requests deviations:\n\n1.  **Default Golden Path Configuration (`80% Baseline`)**:\n    *   **Architecture**: Secure 3-tier serverless pipeline (`frontend` Cloud Run -> `backend application` Cloud Run -> `Cloud SQL PostgreSQL`).\n    *   **Region**: `us-central1`.\n    *   **Database**: Cloud SQL for PostgreSQL (`POSTGRES_18`) Enterprise Edition via Private Service Connect (`psc_enabled = true`).\n    *   **Edge Protection**: Global external Application Load Balancer with Cloud Armor WAF (`sqli-v33-stable`) and Cloud CDN (`enable_cdn = true`).\n    *   **Domain & SSL Mode**: If the user specifies a domain (e.g., `app.mycompany.com`), configure `var.domain_name` with a Google-managed certificate (`use_self_signed_cert = false`) and provide DNS `A` record instructions. If testing in a sandbox without a domain, enable self-signed mode (`use_self_signed_cert = true`) for immediate testability.\n    *   **Networking & Security**: Direct VPC Egress (`ALL_TRAFFIC`), `run.app.` Cloud DNS private zone, least-privilege Cloud NGFW egress firewall policies (`TCP 5432, 443`), and Cloud SQL Auth Proxy sidecar (`DB_SOCKET_PATH` with IAM Auth).\n\n2.  **Disambiguation Protocol (`Optional Clarification Questions`)**:\n    If the user's initial prompt leaves requirements open-ended (and is not fast-forwarding with exact specs), do **not** present a multi-topic questionnaire. Only ask concise clarifying questions as needed before confirmation:\n    1.  **Load Balancer & Residency Topology**: Do you require a **Global Application Load Balancer with Cloud CDN** (default for worldwide users), or a **Regional Application Load Balancer without CDN** (for strict EU\u002Fregional data residency compliance)?\n    2.  **Custom Domain vs. Sandbox Testing**: Do you have a **registered domain name** to configure with a Google-managed certificate, or should we configure **self-signed testing mode** (`use_self_signed_cert = true`) for immediate sandbox testing over IP?\n    3.  **In-Memory Caching Tier**: Should we provision an optional **Memorystore for Redis** caching tier (`Private Services Access`) alongside Cloud SQL to accelerate read queries?\n\n3.  **Verify & Confirm**: Present the confirmed 3-tier golden path decomposition to the user and request confirmation before proceeding to Phase 2 (or fast-forward automatically when instructed).\n\n### Phase 2: Solution design\n\n1.  **Retrieve Architectural Guidance Efficiently**:\n    *   **Architecture Design & Security Checklist Requests**: Retrieve ONLY the 9 architectural security boundaries and audit checklist from `references\u002Fnon-negotiable-architectural-rules.md`. Do **NOT** retrieve `references\u002Frelated-guidance.md` or `assets\u002Fmain.tf` when only high-level design\u002Fchecklists are requested without full Terraform code.\n    *   **Terraform Implementation Requests**: Retrieve `references\u002Fnon-negotiable-architectural-rules.md` and `assets\u002Fmain.tf` (Single Source of Truth for exact HCL). Do **NOT** retrieve `references\u002Frelated-guidance.md` unless specialized edge-case troubleshooting is explicitly required.\n\n2.  **Map components to Google Cloud products**: Map your confirmed decomposition directly to Google Cloud products using these mandatory product mapping specifications:\n    *   **Public Ingress & WAF**: global or regional external Application Load Balancer (`INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER`), Cloud Armor (`sqli-v33-stable`), Cloud CDN (if global Application Load Balancer; note that Cloud CDN is NOT supported on regional Application Load Balancers). Note: When deploying a regional external Application Load Balancer, an explicit proxy-only subnet (`purpose = \"REGIONAL_MANAGED_PROXY\"`) is required in the VPC and `network` must be specified on the regional forwarding rule.\n    *   **Internal compute tiers (T1 to TN)**: Cloud Run microservices (`INGRESS_TRAFFIC_INTERNAL_ONLY`), Direct VPC Egress configured with `egress = \"ALL_TRAFFIC\"`, Private Google Access enabled on the subnet, and a Cloud DNS Managed Private Zone (`google_dns_managed_zone`) for `run.app.` bound to `vpc_network` mapping `*.run.app` directly to Private Google Access VIPs (`199.36.153.4\u002F30 \u002F 199.36.153.8\u002F30`) when calling internal `*.run.app` URLs, deployed from specified\u002Fplaceholder container image.\n    *   **Private data tier**: Cloud SQL for PostgreSQL (`POSTGRES_18`) via Private Service Connect + IAM DB Auth. If database caching was selected, add Memorystore Redis via Private Services Access. Depending on reliability requirements, specify either \"Cloud SQL for PostgreSQL Enterprise edition instance\" or a \"Cloud SQL for PostgreSQL Enterprise Plus edition instance\".\n    *   **Secrets, Registry, & Security**: Secret Manager, Artifact Registry, Cloud NGFW global\u002Fregional network firewall policies (`google_compute_network_firewall_policy` + `google_compute_network_firewall_policy_rule` explicitly permitting outbound TCP port 5432 to Cloud SQL PSC IP and TCP port 443 to Private Google Access VIPs `199.36.153.4\u002F30, 199.36.153.8\u002F30` on `allow_backend_db_egress`), and optional VPC Service Controls.\n\n3.  **Create architecture diagram**: Create a clean Mermaid format architecture diagram (`assets\u002Foutput-template.md`) illustrating the multi-tier request and data flow across entry point, public reverse proxy, private microservice compute tiers, and private database\u002Fcaching endpoints.\n\n4.  **Draft solution architecture and generate Terraform & `gcloud` CLI code**:\n    Compile the requirements, technical decomposition, product mapping,\n    architecture diagram, design recommendations, AND the complete\n    Infrastructure as Code (`Terraform based on assets\u002Fmain.tf alongside a\n    self-contained sequence of gcloud CLI deployment commands adhering to all\n    Phase 3 mandatory specifications`) into a single Markdown file structured\n    strictly per the standardized Google Cloud Solution Architecture output\n    When saving or outputting the report artifact, append an ISO 8601 UTC timestamp and ensure the filename strictly ends with the `.md` extension (`e.g., workload_name_architecture_report-20260701T212820Z.md`). Verify that all 9 security boundaries from `assets\u002Fmain.tf` are documented cleanly in your report and all template placeholders are replaced with actual complete code blocks. In your response, provide the executive architecture overview, the 9 key security & network boundaries enforced, the complete deploy-ready Terraform code block (` ```terraform ... ``` `), and step-by-step deployment instructions with links to the generated artifacts (always inlining the complete Terraform code directly in the response when code is requested, rather than only providing file links).\n5.  **Request review and iterate**: Present the solution architecture (and Terraform code, `gcloud` script, or validation script if generated) to the user and request feedback. Modify and refine both the architecture and code iteratively as the conversation continues.\n\n--------------------------------------------------------------------------------\n\n### Phase 3: Implementation plan\n\n1.  **Retrieve relevant building block templates from the `assets\u002F` directory**.\n    *Important*: Use the code in `assets\u002Fmain.tf` as the\n    foundation for your Terraform implementation plan (`assets\u002Foutput-template.md` for architecture structure).\n\n2.  **Identify deployment prerequisites**:\n\n    *   Required Google Cloud APIs (`run.googleapis.com`,\n        `sqladmin.googleapis.com`, `redis.googleapis.com`,\n        `servicenetworking.googleapis.com`, `secretmanager.googleapis.com`,\n        `monitoring.googleapis.com`, `dns.googleapis.com`).\n    *   Required IAM permissions (Project Editor, Security Admin, etc.).\n\n3.  **Generate Infrastructure as Code (IaC) (`Architectural Specifications`)**: \n    Retrieve relevant architectural and hierarchy guidance from\n    `references\u002Fnon-negotiable-architectural-rules.md`. Base code strictly on the building blocks in\n    `assets\u002Fmain.tf` (`Section 1.5` for Cloud NGFW firewall policies, `Section 5.1` for Tier 1, `Section 5.2` for Tiers 2..N), ensuring `database_version = \"POSTGRES_18\"` is preserved exactly. Ensure firewall policies strictly use Cloud NGFW resources (`google_compute_network_firewall_policy`, `google_compute_network_firewall_policy_association`, and `google_compute_network_firewall_policy_rule` with `enable_logging = var.enable_monitoring`). NEVER generate legacy `google_compute_firewall` resources or revert to older database versions like `POSTGRES_15`.\n\n4.  **Write deployment instructions & README.md**: Draft comprehensive step-by-step deployment instructions (or a complete `README.md` artifact), ensuring you include:\n    *   Instructions to initialize and apply Terraform (`terraform init`, `terraform apply`). **Zero-Install Environment Recommendation**: Explicitly recommend running `terraform` commands and your generated automated validation script inside **Google Cloud Shell** (`https:\u002F\u002Fshell.cloud.google.com`), where `python3`, `gcloud`, and `terraform` are 100% pre-installed and authenticated out of the box so developers without local SDKs can deploy and validate immediately.\n    *   **Step-by-Step `gcloud` CLI Deployment Commands (`Bottom-Up Wiring`)**: In Section 6.3 (\"Step-by-step gcloud CLI deployment commands\") inside `assets\u002Foutput-template.md`, provide a complete, self-contained sequence of `gcloud` CLI commands required to deploy this exact architecture without Terraform. These commands must enforce reverse\u002Fbottom-up order (`VPC\u002Fsubnets -> data tiers -> internal microservices -> public gateway -> load balancer`), specify `--database-version=POSTGRES_18` when provisioning Cloud SQL, and extract downstream container URLs (`gcloud run services describe... --format='value(status.url)'`) into shell variables to dynamically pass them via `--update-env-vars` into upstream services.\n    *   Explanation of all Terraform variables, **explicitly including and documenting the `enable_vpc_sc` and `use_self_signed_cert` variables** (explaining how setting `use_self_signed_cert = true` enables immediate sandbox verification via `curl -k https:\u002F\u002F\u003CLB_IP>\u002F` without waiting for DNS propagation).\n    *   **Dedicated VPC Service Controls Guidance Section**: Provide specific instructions and gcloud commands for implementing an Org-level VPC-SC service perimeter around Cloud Run (`run.googleapis.com`), Cloud SQL (`sqladmin.googleapis.com`), and Secret Manager (`secretmanager.googleapis.com`) when `enable_vpc_sc = true`.\n    *   Container image deployment strategies (specifying pre-existing image URLs or placeholder bootstrapping followed by CI\u002FCD).\n    *   Cloud DNS Managed Private Zone (`google_dns_managed_zone`) configuration for `run.app.` bound to `vpc_network`, mapping `*.run.app` directly to Private Google Access VIPs (`199.36.153.4\u002F30 \u002F 199.36.153.8\u002F30`), alongside external DNS records and database schema initialization.\n\n5.  **Request review**: Present the implementation plan to the user for\n    approval. Iterate as needed.\n\n--------------------------------------------------------------------------------\n\n### Phase 4: Solution validation\n\n1.  **Define solution verification steps & requirements**: During validation planning, mandate these 5 verification steps across any deployed environment:\n    *   **SSL Provisioning**: Verify that the Google-managed SSL certificate (`google_compute_managed_ssl_certificate`) becomes `ACTIVE` (checking `--global` status or regional equivalents).\n    *   **Frontend Ingress Block**: Verify that direct internet access targeting the Tier 1 Frontend's default `*.run.app` URL is blocked (`HTTP 403 Forbidden` from edge screening).\n    *   **Backend Ingress Block**: Verify that direct internet access targeting internal compute tiers' `*.run.app` URLs (`INGRESS_TRAFFIC_INTERNAL_ONLY`) is blocked across all internal microservice tiers (`HTTP 404 Not Found` or `HTTP 403 Forbidden`).\n    *   **Frontend Public Access via Application Load Balancer**: Verify that accessing the custom domain routes successfully to the presentation tier via the Application Load Balancer (`HTTP 200` to `399`).\n    *   **Edge WAF Protection**: Verify that a simulated SQL injection request (`\u002F?id=1%20OR%201=1` on the custom domain) is intercepted and blocked (`HTTP 403 Forbidden` from Cloud Armor).\n    *   **Private Server-to-Server Connectivity**: Verify via Cloud Run application logs (`Logs Explorer`) and database connection pooling telemetry (`Cloud SQL Query Insights`) that tier 1 -> tier 2 -> data tier queries succeed over private VPC fiber (`Direct VPC Egress` + `Private Service Connect` \u002F `Private Services Access`).\n\n2.  **Generate tailored automated validation script**: Rather than relying on a static pre-packaged script, **generate a custom automated validation script** (e.g., self-contained Python validation script using standard built-in `urllib` \u002F `subprocess` libraries, or a cross-platform bash\u002FPowerShell script) customized precisely to the user's deployed domain, SSL certificate name, and exact multi-tier `*.run.app` URIs.\n\n3.  **Provide cross-platform execution guidance**: Explain how the user can execute the generated script across their target OS (`macOS`, `Linux`, `Windows PowerShell`, or zero-install **Google Cloud Shell** (`https:\u002F\u002Fshell.cloud.google.com`)).\n\n4.  **Compile validation report**: Document the validation checks, the generated verification script code, execution commands, and expected outcomes in Section 6.4 (\"Solution verification guide and custom automated validation script\") inside `assets\u002Foutput-template.md`.\n\n5.  **Conduct validation and finalize**: Assist the user in running the generated verification script, inspecting logs, and troubleshooting any DNS or WAF propagation issues. Request final approval.\n","\u003C!-- disableFinding(all) -->\n\u003C!-- mdlint off -->\n\n# Secure n-tier serverless web application with strict private application tiers\n\nThis skill guides agents through the workflow of designing and implementing a\nsecure serverless web application with as many architectural design layers as\nspecified by the user. It uses Cloud Run for the serverless layers and Cloud SQL\nfor PostgreSQL as the data layer. A three-tier web application might be\nrepresented in three architectural layers: a Cloud Run presentation layer, a\nCloud Run application layer, and a Cloud SQL for PostgreSQL database layer.\n\nThe architecture enforces strict physical and network isolation across all tiers (T1 to TN):\n\n*   **Tier 1 presentation tier (frontend \u002F reverse proxy)**: Public-facing UI rendering\u002Fgateway service (Cloud Run). Exposes the entry point via Cloud Load Balancing and routes requests downstream to internal tiers privately via Direct VPC Egress.\n*   **Tier 2..N application tier (internal microservices \u002F business logic)**: Private application services (Cloud Run). 100% isolated from the internet (Ingress: VPC-internal, `INGRESS_TRAFFIC_INTERNAL_ONLY`), reachable exclusively via upstream VPC routing (`egress = \"ALL_TRAFFIC\"` with Private Google Access on the subnet for `*.run.app` URLs).\n*   **Data tier**: Private Cloud SQL for persistent data and Memorystore for\n    Redis for caching, reachable exclusively from authorized application tiers.\n\n## 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## General guidance to the LLM\n\n### 1. Direct Resource Map (Zero-Search File Access)\nAll necessary reference architectures, HCL templates, and checklists are co-located in this skill. Use exact relative paths from this skill folder:\n\n| Asset Path | Purpose & Usage |\n| :--- | :--- |\n| `assets\u002Fmain.tf` | **Single Source of Truth for Terraform (HCL)**. Contains all security boundaries, Cloud Run v2 configs, PSC endpoints, DNS private zones, and firewall rules. |\n| `assets\u002Foutput-template.md` | Standardized Solution Architecture report markdown structure. |\n| `references\u002Fnon-negotiable-architectural-rules.md` | Non-negotiable security rules, audit checklist, and product mappings. |\n| `references\u002Frelated-guidance.md` | Supplemental deep reference (do NOT read for standard design or IaC tasks; read only if specialized edge-case troubleshooting is explicitly required). |\n\n- **No Directory Crawling**: Do NOT run `list_dir` chains down workspace directories to discover these files.\n- **No Search Thrashing on Local Files**: Do NOT run `code_search` or `find_by_name` queries to look inside `assets\u002Fmain.tf`. Read the file directly using `view_file` once and reuse the context.\n- **No Redundant Skill Searches**: Do NOT call `skill_search` for serverless or n-tier architecture skills while executing this skill.\n\n### 2. Direct Inline Generation (No Subagent Delegation)\n- Perform all architecture compilation, Terraform drafting, `gcloud` command assembly, and validation script generation **directly in the primary conversation**.\n- Do **NOT** invoke subagents (`invoke_subagent`) to research external GitHub Terraform modules, probe environment configs, or draft reports. All required patterns are fully contained in `assets\u002Fmain.tf` and `references\u002F`.\n\n### 3. One-Shot Clean Artifact Writing\n- Generate complete, fully-rendered, and valid HCL blocks and Markdown reports in a single `write_to_file` call.\n- Avoid leaving placeholders or malformed code fences that require multi-turn `replace_file_content` and `grep_search` patch loops.\n- **No Unpopulated Placeholders**: When embedding code or scripts inside architecture reports (e.g., Section 6 of `assets\u002Foutput-template.md`), always inline the actual complete Terraform code, gcloud commands, and validation script code. Never output literal template placeholder comments (e.g., `# [Paste of main.tf file contents]`).\n- **In-Response Direct Rendering (Mandatory)**: Whenever Terraform code, deployment scripts, or architecture reports are requested or generated (e.g., \"provide a design and Terraform code\", \"generate IaC\"), you **MUST print the complete generated ```terraform ... ``` HCL code block and full solution report directly in your chat response text**, in addition to writing them to files on disk. Never output only an architectural design summary or file links when code is requested; automated evaluation frameworks (such as Yardstick) evaluate the raw response text and fail all code assertions if the ```terraform``` code block is missing from the message.\n\n### 4. Technical Completeness Checklist\n- When providing a concise architecture summary or security checklist (e.g., when instructed not to generate full IaC), you MUST explicitly include the following technical specifications:\n    - For regional load balancer deployments: regional proxy-only subnet purpose (`REGIONAL_MANAGED_PROXY`) and `network` parameter on regional forwarding rules.\n    - Cloud SQL PostgreSQL version (`POSTGRES_18`), Edition (`Enterprise Edition`), High Availability (`Regional HA`), and Private Service Connect (`psc_enabled = true`).\n    - Cloud NGFW Firewall Policies:\n        - MUST configure explicit Cloud NGFW network firewall policies (`google_compute_network_firewall_policy`, `google_compute_network_firewall_policy_association`, and `google_compute_network_firewall_policy_rule` with `enable_logging = var.enable_monitoring`) rather than legacy `google_compute_firewall`.\n        - Enforce default egress deny (`0.0.0.0\u002F0`).\n        - Allow frontend egress to backend \u002F PGA VIPs.\n        - Allow backend database egress explicitly permitting TCP port `443` to Private Google Access VIPs (`199.36.153.4\u002F30 \u002F 199.36.153.8\u002F30`) in addition to TCP port `5432` so the Cloud SQL Auth Proxy sidecar can query `sqladmin.googleapis.com` on startup for IAM certificate exchange.\n\n## Workflow\n\n> [!TIP]\n> **Optional MCP Server Integration**: If your AI coding client supports the **Model Context Protocol (`MCP`)**, you can connect the [Google Developer Knowledge MCP Server](https:\u002F\u002Fdevelopers.google.com\u002Fknowledge\u002Fmcp) (`npx -y @google\u002Fmcp-developer-knowledge-server`) to dynamically query real-time Google Cloud documentation (`cloud.google.com\u002Fdocs`) alongside this skill's offline knowledge base (`references\u002Frelated-guidance.md`).\n\nThe solution design and implementation workflow is divided into the following\nphases:\n\n*   **Phase 1: Requirements discovery and analysis**: Analyze the workload's\n    requirements, constraints, dependencies, and current state.\n*   **Phase 2: Solution design & IaC drafting**: Build a technology stack, architecture, and deployment configuration for the workload. **IMPORTANT: You should offer to generate the complete Terraform code (based on `assets\u002Fmain.tf` and adhering to all Phase 3 specifications) alongside the solution architecture during this phase.** This allows the user to immediately review and iteratively modify the code as the conversation continues. However, if the user explicitly states they do not want code, do not generate it yet.\n*   **Phase 3: Implementation plan & iterative refinement**: Modify and refine the generated design and deployment instructions as the conversation and user feedback evolve.\n*   **Phase 4: Solution validation**: Validate that the deployment meets the\n    requirements of the workload.\n\n--------------------------------------------------------------------------------\n\n### Phase 1: Requirements discovery and analysis\n\nTo prevent multi-turn interview fatigue and maintain trajectory determinism across evaluations, adopt an **opinionated 80% default golden path** unless the user explicitly requests deviations:\n\n1.  **Default Golden Path Configuration (`80% Baseline`)**:\n    *   **Architecture**: Secure 3-tier serverless pipeline (`frontend` Cloud Run -> `backend application` Cloud Run -> `Cloud SQL PostgreSQL`).\n    *   **Region**: `us-central1`.\n    *   **Database**: Cloud SQL for PostgreSQL (`POSTGRES_18`) Enterprise Edition via Private Service Connect (`psc_enabled = true`).\n    *   **Edge Protection**: Global external Application Load Balancer with Cloud Armor WAF (`sqli-v33-stable`) and Cloud CDN (`enable_cdn = true`).\n    *   **Domain & SSL Mode**: If the user specifies a domain (e.g., `app.mycompany.com`), configure `var.domain_name` with a Google-managed certificate (`use_self_signed_cert = false`) and provide DNS `A` record instructions. If testing in a sandbox without a domain, enable self-signed mode (`use_self_signed_cert = true`) for immediate testability.\n    *   **Networking & Security**: Direct VPC Egress (`ALL_TRAFFIC`), `run.app.` Cloud DNS private zone, least-privilege Cloud NGFW egress firewall policies (`TCP 5432, 443`), and Cloud SQL Auth Proxy sidecar (`DB_SOCKET_PATH` with IAM Auth).\n\n2.  **Disambiguation Protocol (`Optional Clarification Questions`)**:\n    If the user's initial prompt leaves requirements open-ended (and is not fast-forwarding with exact specs), do **not** present a multi-topic questionnaire. Only ask concise clarifying questions as needed before confirmation:\n    1.  **Load Balancer & Residency Topology**: Do you require a **Global Application Load Balancer with Cloud CDN** (default for worldwide users), or a **Regional Application Load Balancer without CDN** (for strict EU\u002Fregional data residency compliance)?\n    2.  **Custom Domain vs. Sandbox Testing**: Do you have a **registered domain name** to configure with a Google-managed certificate, or should we configure **self-signed testing mode** (`use_self_signed_cert = true`) for immediate sandbox testing over IP?\n    3.  **In-Memory Caching Tier**: Should we provision an optional **Memorystore for Redis** caching tier (`Private Services Access`) alongside Cloud SQL to accelerate read queries?\n\n3.  **Verify & Confirm**: Present the confirmed 3-tier golden path decomposition to the user and request confirmation before proceeding to Phase 2 (or fast-forward automatically when instructed).\n\n### Phase 2: Solution design\n\n1.  **Retrieve Architectural Guidance Efficiently**:\n    *   **Architecture Design & Security Checklist Requests**: Retrieve ONLY the 9 architectural security boundaries and audit checklist from `references\u002Fnon-negotiable-architectural-rules.md`. Do **NOT** retrieve `references\u002Frelated-guidance.md` or `assets\u002Fmain.tf` when only high-level design\u002Fchecklists are requested without full Terraform code.\n    *   **Terraform Implementation Requests**: Retrieve `references\u002Fnon-negotiable-architectural-rules.md` and `assets\u002Fmain.tf` (Single Source of Truth for exact HCL). Do **NOT** retrieve `references\u002Frelated-guidance.md` unless specialized edge-case troubleshooting is explicitly required.\n\n2.  **Map components to Google Cloud products**: Map your confirmed decomposition directly to Google Cloud products using these mandatory product mapping specifications:\n    *   **Public Ingress & WAF**: global or regional external Application Load Balancer (`INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER`), Cloud Armor (`sqli-v33-stable`), Cloud CDN (if global Application Load Balancer; note that Cloud CDN is NOT supported on regional Application Load Balancers). Note: When deploying a regional external Application Load Balancer, an explicit proxy-only subnet (`purpose = \"REGIONAL_MANAGED_PROXY\"`) is required in the VPC and `network` must be specified on the regional forwarding rule.\n    *   **Internal compute tiers (T1 to TN)**: Cloud Run microservices (`INGRESS_TRAFFIC_INTERNAL_ONLY`), Direct VPC Egress configured with `egress = \"ALL_TRAFFIC\"`, Private Google Access enabled on the subnet, and a Cloud DNS Managed Private Zone (`google_dns_managed_zone`) for `run.app.` bound to `vpc_network` mapping `*.run.app` directly to Private Google Access VIPs (`199.36.153.4\u002F30 \u002F 199.36.153.8\u002F30`) when calling internal `*.run.app` URLs, deployed from specified\u002Fplaceholder container image.\n    *   **Private data tier**: Cloud SQL for PostgreSQL (`POSTGRES_18`) via Private Service Connect + IAM DB Auth. If database caching was selected, add Memorystore Redis via Private Services Access. Depending on reliability requirements, specify either \"Cloud SQL for PostgreSQL Enterprise edition instance\" or a \"Cloud SQL for PostgreSQL Enterprise Plus edition instance\".\n    *   **Secrets, Registry, & Security**: Secret Manager, Artifact Registry, Cloud NGFW global\u002Fregional network firewall policies (`google_compute_network_firewall_policy` + `google_compute_network_firewall_policy_rule` explicitly permitting outbound TCP port 5432 to Cloud SQL PSC IP and TCP port 443 to Private Google Access VIPs `199.36.153.4\u002F30, 199.36.153.8\u002F30` on `allow_backend_db_egress`), and optional VPC Service Controls.\n\n3.  **Create architecture diagram**: Create a clean Mermaid format architecture diagram (`assets\u002Foutput-template.md`) illustrating the multi-tier request and data flow across entry point, public reverse proxy, private microservice compute tiers, and private database\u002Fcaching endpoints.\n\n4.  **Draft solution architecture and generate Terraform & `gcloud` CLI code**:\n    Compile the requirements, technical decomposition, product mapping,\n    architecture diagram, design recommendations, AND the complete\n    Infrastructure as Code (`Terraform based on assets\u002Fmain.tf alongside a\n    self-contained sequence of gcloud CLI deployment commands adhering to all\n    Phase 3 mandatory specifications`) into a single Markdown file structured\n    strictly per the standardized Google Cloud Solution Architecture output\n    When saving or outputting the report artifact, append an ISO 8601 UTC timestamp and ensure the filename strictly ends with the `.md` extension (`e.g., workload_name_architecture_report-20260701T212820Z.md`). Verify that all 9 security boundaries from `assets\u002Fmain.tf` are documented cleanly in your report and all template placeholders are replaced with actual complete code blocks. In your response, provide the executive architecture overview, the 9 key security & network boundaries enforced, the complete deploy-ready Terraform code block (` ```terraform ... ``` `), and step-by-step deployment instructions with links to the generated artifacts (always inlining the complete Terraform code directly in the response when code is requested, rather than only providing file links).\n5.  **Request review and iterate**: Present the solution architecture (and Terraform code, `gcloud` script, or validation script if generated) to the user and request feedback. Modify and refine both the architecture and code iteratively as the conversation continues.\n\n--------------------------------------------------------------------------------\n\n### Phase 3: Implementation plan\n\n1.  **Retrieve relevant building block templates from the `assets\u002F` directory**.\n    *Important*: Use the code in `assets\u002Fmain.tf` as the\n    foundation for your Terraform implementation plan (`assets\u002Foutput-template.md` for architecture structure).\n\n2.  **Identify deployment prerequisites**:\n\n    *   Required Google Cloud APIs (`run.googleapis.com`,\n        `sqladmin.googleapis.com`, `redis.googleapis.com`,\n        `servicenetworking.googleapis.com`, `secretmanager.googleapis.com`,\n        `monitoring.googleapis.com`, `dns.googleapis.com`).\n    *   Required IAM permissions (Project Editor, Security Admin, etc.).\n\n3.  **Generate Infrastructure as Code (IaC) (`Architectural Specifications`)**: \n    Retrieve relevant architectural and hierarchy guidance from\n    `references\u002Fnon-negotiable-architectural-rules.md`. Base code strictly on the building blocks in\n    `assets\u002Fmain.tf` (`Section 1.5` for Cloud NGFW firewall policies, `Section 5.1` for Tier 1, `Section 5.2` for Tiers 2..N), ensuring `database_version = \"POSTGRES_18\"` is preserved exactly. Ensure firewall policies strictly use Cloud NGFW resources (`google_compute_network_firewall_policy`, `google_compute_network_firewall_policy_association`, and `google_compute_network_firewall_policy_rule` with `enable_logging = var.enable_monitoring`). NEVER generate legacy `google_compute_firewall` resources or revert to older database versions like `POSTGRES_15`.\n\n4.  **Write deployment instructions & README.md**: Draft comprehensive step-by-step deployment instructions (or a complete `README.md` artifact), ensuring you include:\n    *   Instructions to initialize and apply Terraform (`terraform init`, `terraform apply`). **Zero-Install Environment Recommendation**: Explicitly recommend running `terraform` commands and your generated automated validation script inside **Google Cloud Shell** (`https:\u002F\u002Fshell.cloud.google.com`), where `python3`, `gcloud`, and `terraform` are 100% pre-installed and authenticated out of the box so developers without local SDKs can deploy and validate immediately.\n    *   **Step-by-Step `gcloud` CLI Deployment Commands (`Bottom-Up Wiring`)**: In Section 6.3 (\"Step-by-step gcloud CLI deployment commands\") inside `assets\u002Foutput-template.md`, provide a complete, self-contained sequence of `gcloud` CLI commands required to deploy this exact architecture without Terraform. These commands must enforce reverse\u002Fbottom-up order (`VPC\u002Fsubnets -> data tiers -> internal microservices -> public gateway -> load balancer`), specify `--database-version=POSTGRES_18` when provisioning Cloud SQL, and extract downstream container URLs (`gcloud run services describe... --format='value(status.url)'`) into shell variables to dynamically pass them via `--update-env-vars` into upstream services.\n    *   Explanation of all Terraform variables, **explicitly including and documenting the `enable_vpc_sc` and `use_self_signed_cert` variables** (explaining how setting `use_self_signed_cert = true` enables immediate sandbox verification via `curl -k https:\u002F\u002F\u003CLB_IP>\u002F` without waiting for DNS propagation).\n    *   **Dedicated VPC Service Controls Guidance Section**: Provide specific instructions and gcloud commands for implementing an Org-level VPC-SC service perimeter around Cloud Run (`run.googleapis.com`), Cloud SQL (`sqladmin.googleapis.com`), and Secret Manager (`secretmanager.googleapis.com`) when `enable_vpc_sc = true`.\n    *   Container image deployment strategies (specifying pre-existing image URLs or placeholder bootstrapping followed by CI\u002FCD).\n    *   Cloud DNS Managed Private Zone (`google_dns_managed_zone`) configuration for `run.app.` bound to `vpc_network`, mapping `*.run.app` directly to Private Google Access VIPs (`199.36.153.4\u002F30 \u002F 199.36.153.8\u002F30`), alongside external DNS records and database schema initialization.\n\n5.  **Request review**: Present the implementation plan to the user for\n    approval. Iterate as needed.\n\n--------------------------------------------------------------------------------\n\n### Phase 4: Solution validation\n\n1.  **Define solution verification steps & requirements**: During validation planning, mandate these 5 verification steps across any deployed environment:\n    *   **SSL Provisioning**: Verify that the Google-managed SSL certificate (`google_compute_managed_ssl_certificate`) becomes `ACTIVE` (checking `--global` status or regional equivalents).\n    *   **Frontend Ingress Block**: Verify that direct internet access targeting the Tier 1 Frontend's default `*.run.app` URL is blocked (`HTTP 403 Forbidden` from edge screening).\n    *   **Backend Ingress Block**: Verify that direct internet access targeting internal compute tiers' `*.run.app` URLs (`INGRESS_TRAFFIC_INTERNAL_ONLY`) is blocked across all internal microservice tiers (`HTTP 404 Not Found` or `HTTP 403 Forbidden`).\n    *   **Frontend Public Access via Application Load Balancer**: Verify that accessing the custom domain routes successfully to the presentation tier via the Application Load Balancer (`HTTP 200` to `399`).\n    *   **Edge WAF Protection**: Verify that a simulated SQL injection request (`\u002F?id=1%20OR%201=1` on the custom domain) is intercepted and blocked (`HTTP 403 Forbidden` from Cloud Armor).\n    *   **Private Server-to-Server Connectivity**: Verify via Cloud Run application logs (`Logs Explorer`) and database connection pooling telemetry (`Cloud SQL Query Insights`) that tier 1 -> tier 2 -> data tier queries succeed over private VPC fiber (`Direct VPC Egress` + `Private Service Connect` \u002F `Private Services Access`).\n\n2.  **Generate tailored automated validation script**: Rather than relying on a static pre-packaged script, **generate a custom automated validation script** (e.g., self-contained Python validation script using standard built-in `urllib` \u002F `subprocess` libraries, or a cross-platform bash\u002FPowerShell script) customized precisely to the user's deployed domain, SSL certificate name, and exact multi-tier `*.run.app` URIs.\n\n3.  **Provide cross-platform execution guidance**: Explain how the user can execute the generated script across their target OS (`macOS`, `Linux`, `Windows PowerShell`, or zero-install **Google Cloud Shell** (`https:\u002F\u002Fshell.cloud.google.com`)).\n\n4.  **Compile validation report**: Document the validation checks, the generated verification script code, execution commands, and expected outcomes in Section 6.4 (\"Solution verification guide and custom automated validation script\") inside `assets\u002Foutput-template.md`.\n\n5.  **Conduct validation and finalize**: Assist the user in running the generated verification script, inspecting logs, and troubleshooting any DNS or WAF propagation issues. Request final approval.\n",{"name":5,"metadata":55,"description":7},{"version":56,"category":57},"1.0.1","MultiProductSolutions","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fcloud\u002Fgoogle-cloud-solution-n-tier-serverless-web-app",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":9,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add google\u002Fskills --skill google-cloud-solution-n-tier-serverless-web-app",{"tool":73,"command":74},"bunx","bunx skills add google\u002Fskills --skill google-cloud-solution-n-tier-serverless-web-app",{"tool":76,"command":77},"pnpm","pnpm dlx skills add google\u002Fskills --skill google-cloud-solution-n-tier-serverless-web-app","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgoogle-cloud-solution-n-tier-serverless-web-app\u002FSKILL.md",true,[81,87,93,97,101,105],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"agents\u002Fopenai.yaml","REFERENCE","参考文档",166,"https:\u002F\u002Fgithub.com\u002FEthanYoQ\u002FSkill-hub\u002Fblob\u002Fmine\u002Farchives\u002Fuser-installed-skills\u002Fto-questionnaire\u002Ffa833da1bd480861\u002Fto-questionnaire\u002Fagents\u002Fopenai.yaml",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"assets\u002Fmain.tf","ASSET","资产文件",30912,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgoogle-cloud-solution-n-tier-serverless-web-app\u002Fassets\u002Fmain.tf",{"path":94,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":95,"sourceHtmlUrl":96},"assets\u002Foutput-template.md",16135,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgoogle-cloud-solution-n-tier-serverless-web-app\u002Fassets\u002Foutput-template.md",{"path":98,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fattribution.md",1989,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgoogle-cloud-solution-n-tier-serverless-web-app\u002Freferences\u002Fattribution.md",{"path":102,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fnon-negotiable-architectural-rules.md",8464,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgoogle-cloud-solution-n-tier-serverless-web-app\u002Freferences\u002Fnon-negotiable-architectural-rules.md",{"path":106,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Frelated-guidance.md",28616,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgoogle-cloud-solution-n-tier-serverless-web-app\u002Freferences\u002Frelated-guidance.md",[110,118,125,132,139,146],{"skillNo":111,"name":112,"nameZh":17,"description":113,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":117},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":119,"name":120,"nameZh":17,"description":121,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":117},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":17,"description":128,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":117},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":17,"description":135,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":117},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":140,"name":141,"nameZh":17,"description":142,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":117},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":147,"name":148,"nameZh":17,"description":149,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":117},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]