application-design-center-design-deploy
它能做什么
这项技能帮助以谨慎、经过审查的方式设计和部署 Google Cloud 上的云基础设施。适合希望把基础设施写成代码、并在上线前检查的工程师。
适用场景
- ✓当你想在部署前把 Google Cloud 基础设施设计成 Terraform 代码时。
- ✓当你需要把设计模板导入 Application Design Center 并进行部署时。
- ✓当 Google Cloud 基础设施部署失败,你需要了解原因时。
技能链接
https://github.com/google/skills/blob/main/skills/cloud/application-design-center-design-deploy/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请用 Terraform 为一个小型网站设计 Google Cloud 配置,检查后通过 Application Design Center 部署。”
每周 5 个新技能,1 分钟读完。
工作原理
它会在你的电脑上编写并验证 Terraform 文件,然后对计划运行最佳实践检查。之后它会把设计同步到 Application Design Center,以便部署。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Designing and Deploying GCP Infrastructure with Application Design Center
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:application-design-center-design-deploy)"
and append agent-skills/1.0 (skill:application-design-center-design-deploy) to User-Agent headers.
Overview
This skill provides a prescriptive, production-grade workflow for the entire
infrastructure lifecycle on Google Cloud Platform (GCP). It replaces the
automated, opaque-box GAD design_infra tool with an agent-controlled design
and validation loop utilizing modular Terraform and local CLI validation,
followed by a shifted-left best practices plan scan prior to synchronization
with the Application Design Center (ADC) registry for deployment and lifecycle
management.
Always maintain the persona of a Principal Cloud Architect. Keep the local Terraform configuration as the source of truth, and ensure the design is fully compliant with best practices before importing it into the cloud registry.
Index
- Pre-requisites: Setup & Confirmation
- Phase 1: Local Infrastructure Design & Validation
- Phase 2: Shifted-Left Best Practices Assessment & Iterative Remediation
- Phase 3: Import IaC to Application Design Center
- Phase 4: Application Deployment & Monitoring
- Phase 5: Troubleshoot Deployment Failures
- Phase 6: Verification & E2E Testing
Pre-requisites: Setup & Confirmation
Before executing Phase 1, you must perform the following setup steps:
Confirm Target Project & Location:
Explicitly ask the user to confirm the target GCP project ID and location (region).
If the user does not specify a location, use
us-central1as the default.Verify that your local environment has the active project set:
gcloud config set project <project_id>
Phase 1: Local Infrastructure Design & Validation
Goal: Transform user requirements and codebase characteristics into a 100% validated, secure, and compile-ready Terraform configuration locally.
- Invoke the
designSkill: Call and execute thedesignskill (defined in design) for the user's prompt.- The
designskill will autonomously perform the Codebase Analysis, query the catalog registry, planning, HCL generation, and local CLI validation loop (terraform init,validate,plan) in a dedicated scratch directory.
- The
- Locate Validated HCL: Identify the scratch directory where the
designskill saved the validated, compile-ready Terraform files (e.g.,scratch/tf_validate_<session_id>/). - Verify Handover (MANDATORY): Ensure that the local validation loop in
the
designskill completed successfully with a clean plan before proceeding. Meticulously inspect the HCL to verify:- Secret-Safe Policy: Confirm that no plaintext credentials,
passwords, or hardcoded secrets are written in
terraform.tfvarsor HCL resource blocks. All sensitive inputs must be wired through GCP Secret Manager. - State Isolation Policy: Confirm that there is no remote backend
block (e.g.,
backend "gcs" {}) in the HCL files. State must remain local in the scratch folder during validation, allowing ADC to handle the remote state registry upon import. - Remediation: If any violations are found, correct them in the HCL, re-run local validation, and verify again. Do not proceed with unvalidated or insecure code.
- Secret-Safe Policy: Confirm that no plaintext credentials,
passwords, or hardcoded secrets are written in
- **Export Terraform Plan t
常见问题
它也适用于其他云吗?
不适用。它只针对 Google Cloud 基础设施。
哪一份是主版本?
你电脑上的 Terraform 文件仍是事实来源,云端注册表会根据它们进行更新。
最佳实践扫描做什么?
它会在任何内容发送到云端注册表之前,检查计划中常见的问题。
详情
作者的原始描述
Processes GCP infrastructure design and deployment workflows within Application Design Center (ADC). Use when: - Designing GCP infrastructure with Terraform. - Validating local HCL. - Performing best-practice plan scans. - Importing templates to Application Design Center (ADC). - Deploying templates. - Troubleshooting deployment failures. Boundaries: - Only use for GCP-specific cloud infrastructure. - Only use for Terraform coding within the ADC context.
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10216
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。