google-cloud-solution-architecture
google/skills
该技能可交互式地发现特定云工作负载的需求,并生成设计建议和架构指南,用于在 Google Cloud 上构建多产品解决方案。利用此技能,可针对 Google Cloud 上复杂的多产品工作负载及特定用例,生成全面的端到端设计建议和架构指南。 当其他专用技能(例如特定产品技能或以 google-cloud-recipe-* 开头的技能)能直接满足用户的 workload 或 us 需求时,请勿使用此技能。
...展开全部关于google-cloud-solution-architecture
该技能提供了一个交互式、分阶段的工作流,用于在 Google Cloud 上设计多产品解决方案。它能够针对复杂的工作负载生成全面、端到端的架构建议,同时避免过早锁定特定产品。 该工作流包含四个阶段:需求探索、解决方案架构、解决方案验证以及解决方案打包与展示,各阶段之间设有严格的防护机制。
该技能强制执行规范化的操作流程:在需求发现阶段,必须在收集完功能需求、非功能需求(安全、隐私、合规性、可靠性、灾难恢复、成本、运维、性能、可持续性)、当前状态及依赖关系之前,不得提出任何架构、产品或技术分解方案;并且在设计之前,必须发现并解决所有模糊点或矛盾之处。 每项交付成果(包括技术分解、产品建议、图表、架构描述和部署脚本)在继续推进前,均需提交给用户明确批准。 值得注意的是,该规范禁止自主执行任何生成的脚本或代码,必须获得用户的明确许可,因为运行这些脚本或代码可能会意外配置云资源、产生费用或改变现有的基础设施;同时,该规范通过 Google Developer Knowledge MCP 服务器,确保生成的内容符合 Google Cloud 的官方指导方针。 参考资料涵盖架构指南、决策指南、最佳实践指南以及输出模板。
目标用户包括云架构师、解决方案工程师以及负责规划复杂、涉及多种 Google Cloud 产品的负载的技术团队。典型用例包括:结构化需求收集、生成技术分解方案、制定基于实际的架构建议和验证计划,以及打包完整的解决方案指南;同时,当特定产品技能直接涉及工作负载时,可将这些技能的处理推迟至后续阶段。
常见问题
该工作流包含哪些阶段?
共有四个阶段:需求发现、解决方案架构、解决方案验证(为用户创建验证计划、操作说明和可执行脚本),以及解决方案打包与展示。
它会立即设计架构吗?
不会。该流程严格执行阶段分离,必须先收集功能性和非功能性需求、当前状态及依赖关系,并解决任何歧义或矛盾,然后才会提出任何架构、产品或分解方案。
它会自行运行脚本或配置资源吗?
不会。它明确禁止自主执行生成的脚本或代码,要求用户给予明确授权,因为执行操作可能会意外配置云资源、产生费用或改变现有的基础设施,因此它始终提供手动执行选项。
它如何确保建议的准确性?
它通过 Google Developer Knowledge MCP 服务器,将生成的内容与官方 Google Cloud 指南进行比对,并参考内置的架构、决策和最佳实践指南。
何时不应使用此技能?
当有更专业的技能(如针对特定产品的技能或以 google-cloud-recipe-* 命名的技能)能直接满足用户的工作负载或使用场景时;本技能适用于整体性、复杂且涉及多种产品的解决方案。
所有文件
5 个文件SKILL.md13.2 KB查看assets/output-template.md5.2 KB查看references/architecture-guides.md84.4 KB查看references/decision-making-guides.md14.3 KB 查看 references/best-practices-guides.md14.1 KB 查看Overview of the workflow
The workflow consists of the following phases:
- Phase 1: Requirements discovery. Gather detailed requirements related tothe cloud workload or use case that the user needs assistance for.
- Phase 2: Solution architecture. Use the requirements that were gatheredin Phase 1 to generate a detailed solution architecture for the cloudworkload or use case.
- Phase 3: Solution validation. Create a plan to validate the generatedsolution, generate validation instructions and scripts, and provide them tothe user to execute (or perform a dry-run validation with explicitpermission from the user).
- Phase 4: Solution packing and presentation. Consolidate the generatedcontent and present the solution.
Important notes about the workflow:
Strict phase separation: During Phase 1 (Requirements discovery), whenyou ask the user clarifying questions, don't recommend, propose, or outlineany architectural designs, technical decompositions, cloud services, orcomponent mappings. Proposing solutions before functional and non-functionalrequirements are thoroughly assessed causes confirmation bias and risksanchoring the solution on specific products, features, or tools prematurely.
Iterative approval & task transitions: For each deliverable in thisworkflow (technical decompositions, product recommendations, diagrams,architectural descriptions, and deployment scripts), explicitly present youroutput to the user for approval. If the user requests modifications,iteratively revise the content until approved before progressing to thesubsequent task or phase.
No autonomous execution of code and scripts: Don't run any scripts orcode that you generate without explicit, unambiguous permission from theuser. Executing scripts autonomously can provision unintended cloudresources (incurring unexpected costs), mutate live infrastructure, or posesecurity and safety risks. Always offer the option for the user to executethe commands manually.
When you can skip certain phases: If the user's prompt indicates that aspecific phase or task in this workflow is already completed or approved(e.g., "requirements discovery stage is completed", "product selection isapproved", or "architecture is confirmed"), don't repeat that phase or task.Instead, skip directly to the requested task (such as generating thetechnical decomposition, recommending products, or compiling the solutionguide).
Phase 1: Requirements discovery
Gather the following requirements related to the workload or use case forwhich the user needs assistance.
CRITICAL: You MUST NOT generate any architecture designs, productrecommendations, or technical decompositions until the user provides theserequirements.
- Functional requirements: Ask the user to describe the businessprocesses, activities, and use cases of their workload.
- Non-functional requirements: Ask the user to describe requirementsfor security, privacy, compliance, reliability, disaster recovery, cost,operations, performance, and sustainability.
- CRITICAL: If non-functional requirements are missing orincomplete, you MUST ask the user to describe the requirements andexplicitly explain why they are important (e.g., because theydirectly dictate operational SLAs, availability tiers, scalingconfiguration, cost budgets, resource types, and the securityposture) when asking the user to supply them.
- Current state: Ask whether the workload currently runs on othercloud providers or on-premises (if yes, prompt for the architecture ofthe existing deployment).
- System dependencies: Ask the user to describe any dependenciesbetween their application and other workloads, products, systems, ortools.
Review the input that the user has provided so far, and check whether thereare any ambiguities or contradictions (e.g., conflicting goals like completenetwork isolation with zero internet exposure vs. real-time ingestion frompublic APIs).
If you identify any ambiguities or contradictions in the user'srequirements, you must:
- Clearly describe the ambiguities and contradictions.
- Explain why the contradictory requirements cannot be simultaneouslysatisfied.
- Request the user to clarify their trade-off preferences and choices toresolve the ambiguities and contradictions.
- If the user delegates the choice to you (e.g., the user replies with"do what you think is best" or "you decide"), then provide a clearsuggestion to resolve the ambiguity or contradiction, explain yourreasoning, and ask the user to approve your suggestion.
CRITICAL: Until all the ambiguities and contradictions that you identifyare resolved, don't recommend or generate any architecture design, technicaldecomposition, or Google Cloud product recommendations. Ambiguous orcontradictory requirements lead to invalid architectural assumptions.
Generate a technical decomposition of the components of the workload thatbreaks down the solution into logical components. Present it to the user andobtain approval before proceeding to Phase 2.
CRITICAL: Before proceeding to Phase 2, ensure that the user hasapproved the technical decomposition. Misalignment of the technicaldecomposition with the user's requirements will invalidate the outputs ofthe subsequent phases in this workflow.
Phase 2: Solution architecture
Use the approved requirements from Phase 1 to generate a comprehensive solutionarchitecture.
Ground all generated content
For each task in this phase, to ensure that the generated content aligns withthe latest and official Google Cloud guidance, you must ground the generatedcontent by using the following resources:
- Google Developer Knowledge MCP server
- Server: https://developerknowledge.googleapis.com/mcp
- Tools:
developerknowledge:search_documentsdeveloperknowledge:get_documentsdeveloperknowledge:answer_query
- Relevant skills from https://github.com/google/skills
- Official Google Cloud documentation, including the following:
- Reference architectures and design guides that are relevant to thetechnology category of the workload:
references/architecture-guides.md - Decision-making guides for the products and topics that are relevant tothe workload:
references/decision-making-guides.md - Best-practices guides for the products and topics that are relevant tothe workload:
references/best-practices-guides.md
- Reference architectures and design guides that are relevant to thetechnology category of the workload:
For each item in the generated guidance, you must include citations to therelevant official Google Cloud documentation pages.
Task 2.1: Identify Google Cloud products and features required for the workload.
Recommend the products and features that are appropriate for each componentof the user's workload.
CRITICAL:
- Don't recommend any products or features that are deprecated, retired,decommissioned, or unsupported. To check the status of a product orfeature, call
developerknowledge:answer_queryordeveloperknowledge:search_documentswith query strings like:"{product_name} release status". - If multiple products or features can be used for a component of theworkload, then do the following:
- Recommend the most appropriate product or feature. When alternativeproducts exist, the relevant product documentation might provideguidance on when to choose each product. Follow that guidance.
- Mention the available alternative products or features.
- Explain the pros and cons of each alternative product or feature.
- Don't recommend any products or features that are deprecated, retired,decommissioned, or unsupported. To check the status of a product orfeature, call
Present the generated product recommendations to the user and ask whetherany changes are needed.
CRITICAL: Don't generate anything further (architecture diagrams,descriptions, or deployment configurations) in the same turn. Halt executionimmediately after listing the product choices until the user approves theproduct selections.
After the user approves the product selections, proceed to Task 2.2.
Task 2.2: Generate an architecture diagram.
- Generate an architecture diagram in Mermaid format:https://github.com/mermaid-js/mermaid.
- Present the generated diagram to the user and obtain approval beforeproceeding to Task 2.3.
Task 2.3: Generate an architecture description.
- Generate a description that explains the purpose of each component, therelationships between the components, and the task flow or data flow.
- Present the generated architecture description to the user and obtainapproval before proceeding to Task 2.4.
Task 2.4: Generate design recommendations.
Generate design recommendations and best practices to optimally configureeach component in the architecture based on the workload's requirements.Important:
- When generating design recommendations, incorporate the following:
- Functional requirements that were gathered in Phase 1.
- Non-functional requirements that were gathered in Phase 1.
- To generate guidance for non-functional requirements, use the followingskills, as appropriate:
google-cloud-waf-securitygoogle-cloud-waf-reliabilitygoogle-cloud-waf-cost-optimizationgoogle-cloud-waf-operational-excellencegoogle-cloud-waf-performance-optimizationgoogle-cloud-waf-sustainability
If any of the specialized
google-cloud-waf-*skills are not available inyour current workspace, derive design guidance directly from thedocumentation references inreferences/best-practices-guides.md.- When generating design recommendations, incorporate the following:
Present the generated recommendations to the user and obtain approval beforeproceeding to Task 2.5.
Task 2.5: Generate deployment guidance.
- Generate deployment guidance, including infrastructure-as-code andinstructions to enable the user to deploy the solution.
- Present the generated deployment guidance to the user and obtain approvalbefore proceeding to Phase 3.
Phase 3: Solution validation
Task 3.1: Pre-deployment validation
- Create a pre-deployment plan to statically validate the generated solutionand verify that it meets the workload's requirements without provisioninglive resources:
- Deployment dry-run: Validate infrastructure syntax and preview theresources that will be provisioned using dry-run commands (e.g.,
terraform planor (where supported)gcloud ... --dry-run). - Architecture & policy analysis: Perform static verification ofnetwork routing topologies, firewall rules, and IAM enforcement againstbest practices.
- Deployment dry-run: Validate infrastructure syntax and preview theresources that will be provisioned using dry-run commands (e.g.,
- Present the static validation plan to the user and obtain explicitpermission from the user to execute the dry-run commands. If the user givespermission, then run the commands; otherwise, or if the user prefers,provide the exact commands that the user can run manually.
- Troubleshoot and fix any errors or policy discrepancies identified duringdry-run checks until validation succeeds.
- Proceed to Task 3.2
Task 3.2: Runtime validation (Post-deployment)
- Ask the user whether they choose to deploy the infrastructure now to performlive runtime verification, or skip directly to Phase 4.
- If the user chooses to deploy the infrastructure:
- After the user deploys the infrastructure, generate runtime verificationcommands (using tools like
curl,ping, orgcloud) and provide themto the user to execute, to test live endpoint reachability, networkingpaths, and load balancer routing. - Troubleshoot any deployment or runtime routing issues until checks pass.
- After the user deploys the infrastructure, generate runtime verificationcommands (using tools like
- Proceed to Phase 4.
Phase 4: Solution packaging and presentation
Package all the generated text and code artifacts for final presentation.
- Consolidate the text artifacts that were generated in Phase 2 and Phase 3into a single Markdown file named
solution-architecture-guide.md, based onthe template inassets/output-template.md. - Request the user's permission to write the code files in the user'sworkspace.
- After the user gives permission, write the code files in the user'sworkspace.
所有文件
0 个文件安装 google-cloud-solution-architecture
下载技能文件并将其解压到 .claude/skills/ 目录下。
下载ZIP克隆仓库并复制技能文件到您的项目中。
git clone https://github.com/google/skills/blob/main/skills/cloud/google-cloud-solution-architecture/SKILL.md # Copy SKILL.md to your .claude/skills/ directory
复制





首页
