/google-cloud-recipe-foundation-builder
Deploys a baseline landing zone foundation for a Google Cloud Organization, establishing security guardrails using Organization Policies, resource hierarchy folders and projects, billing association, and centralized logging and monitoring. Deploys Google Cloud's recommended
$ npx -y skills add google/skills --skill google-cloud-recipe-foundation-builder --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/google-cloud-recipe-foundation-builder
Context preview
The summary Claude sees to decide when to auto-load this skill.
Deploys a baseline landing zone foundation for a Google Cloud Organization, establishing security guardrails using Organization Policies, resource hierarchy folders and projects, billing association, and centralized logging and monitoring. Deploys Google Cloud's recommended
SKILL.md
google-cloud-recipe-foundation-builder.SKILL.mdname: google-cloud-recipe-foundation-builder
metadata:
category: GettingStarted
description: >-
Deploys a baseline landing zone foundation for a Google Cloud Organization, establishing security guardrails using Organization Policies, resource hierarchy folders and projects, billing association, and centralized logging and monitoring. Deploys Google Cloud's recommended security controls and architecture.
Use when setting up a new Google Cloud Organization or establishing a secure, enterprise-grade landing zone foundation.
Don't use for individual project onboarding (use google-cloud-recipe-onboarding or product-specific skills instead).
Google Cloud Recipe: Foundation Builder
> [!WARNING] This skill is currently in a preview state. It will deploy a secure > foundation, but does not have all advanced features. Users who want more > options should visit > [Google Cloud Setup](https://docs.cloud.google.com/docs/enterprise/cloud-setup).
This skill guides the setup of a secure, enterprise-grade Google Cloud landing zone foundation. It establishes baseline security controls, organizes the initial resource hierarchy, and configures centralized audit logging and cross-environment monitoring.
Overview
The recipe provisions the following core components at the organization root:
- **Security Guardrails**: Enforces 17 baseline Google Cloud Organization
Policies to secure the environment (13 Boolean, 4 List constraints).
- **Resource Hierarchy**: Establishes 4 folders (`Common`, `Production`,
`Non-Production`, `Development`) and provisions corresponding projects sequentially with globally unique ID prefixes (`logging-`, `prod-`, `non-prod-`, `dev-` followed by a shared suffix).
- **Billing & API Enablement**: Links all projects to your billing account and
activates critical logging/monitoring services.
- **Centralized Logging & Monitoring**: Deploys a global, centralized log
bucket with 30-day retention, configures an organization-wide audit log sink, and sets up a cross-environment metrics scope.
--------------------------------------------------------------------------------
Clarifying Questions
Before executing this recipe, the agent **must** gather the following details:
1. **Organization ID**: Run `gcloud organizations list` to retrieve the available organizations, present them to the user, and ask them to select the target **Organization ID**. 2. **Billing Account ID**: Run `gcloud billing accounts list --filter=open=true` to retrieve only the active (open) billing accounts, present them to the user, and ask them to select the active **Billing Account ID**. 3. **Project ID Suffix**: Ask if the user has a preferred prefix or target suffix for Project IDs (default uses prefix + a shared random 8-character string, e.g., `prod-ab12cd34`). 4. **Log Bucket Region**: Ask for the target region for resources if they want to override the default `global` log bucket location.
--------------------------------------------------------------------------------
Prerequisites
Ensure the following prerequisites are met before beginning the deployment:
- **GCP Identity**: You must have a Google Cloud Organization resource set up.
- **Administrative IAM Roles**: The identity executing these commands must
hold the required administrative permissions. If any step fails with a `Permission Denied` error, the agent will attempt to self-remediate by granting the corresponding recommended role as detailed in **Phase 2: Error Recovery & Lazy Role Remediation Strategy**.
- **Tools**: The `gcloud` CLI must be installed, authorized with the above
identity, and configured for use.
--------------------------------------------------------------------------------
Steps to Complete the Recipe
Phase 1: Pre-flight Confirmation
Identify the target organization and obtain explicit user approval before making changes.
1. **Identify and Discover Organization**: Verify the target organization. If only the display name is known, list organizations to find the ID. Then, retrieve the organization metadata to dynamically calculate the **Directory Customer ID** and **Domain Name**:
# List to find ID if needed
gcloud organizations list
# Describe the organization to retrieve metadata
gcloud organizations describe [ORGANIZATION_ID]*Calculate values:*
- **Domain Name** (`[ORG_NAME]` / `[YOUR_DOMAIN]`): Use the `displayName`
value from the output (e.g., `my-business.com`).
- **Customer ID** (`[DIRECTORY_CUSTOMER_ID]`): Use the
`owner.directoryCustomerId` value from the output (e.g., `C01234567`).
2. **Present Blueprint Summary**: Present the exact details of the blueprint to the user and request confirmation to proceed:
> **Proposed Foundation Deployment Summary for Organization: `[ORG_NAME]` > (`[ORGANIZATION_ID]`)** > > * **Security:** Enforce 17 baseline Organization Policies (13 Boolean, 4 > List). > * **Folders:** Create 4 folders sequentially (`Common`, `Production`, > `Non-Production`, `Development`). > * **Projects:** Create 4 projects sequentially with unique IDs > (`logging-[SUFFIX]`, `prod-[SUFFIX]`, `non-prod-[SUFFIX]`, > `dev-[SUFFIX]`). > * **Billing:** Link all projects to Billing Account > `[BILLING_ACCOUNT_ID]`. > * **APIs:** Enable Logging and Monitoring APIs on the central project. > * **Centralized Logging:** Deploy a `global` log bucket > `[ORG_NAME]-logging` (30-day retention), configure an > organization-level sink > `[ORGANIZATION_ID]-logbucketsink-[RANDOM_HEX]`, and establish > cross-project metrics scopes. > > Do you wish to proceed with this deployment? (Yes/No)
> [!IMPORTANT] **Pause execution** and wait for explicit user approval before > moving to Ph
Read more
name: google-cloud-recipe-foundation-builder metadata: category: GettingStarted description: >- Deploys a baseline landing zone foundation for a Google Cloud Organization, establishing security guardrails using Organization Policies, resource hierarchy folders and projects, billing association, and centralized logging and monitoring. Deploys Google Cloud's recommended security controls and architecture. Use when setting up a new Google Cloud Organization or establishing a secure, enterprise-grade landing zone foundation. Don't use for individual project onboarding (use google-cloud-recipe-onboarding or product-specific skills instead).
Google Cloud Recipe: Foundation Builder
> [!WARNING] This skill is currently in a preview state. It will deploy a secure > foundation, but does not have all advanced features. Users who want more > options should visit > [Google Cloud Setup](https://docs.cloud.google.com/docs/enterprise/cloud-setup).
This skill guides the setup of a secure, enterprise-grade Google Cloud landing zone foundation. It establishes baseline security controls, organizes the initial resource hierarchy, and configures centralized audit logging and cross-environment monitoring.
Overview
The recipe provisions the following core components at the organization root:
- **Security Guardrails**: Enforces 17 baseline Google Cloud Organization
Policies to secure the environment (13 Boolean, 4 List constraints).
- **Resource Hierarchy**: Establishes 4 folders (`Common`, `Production`,
`Non-Production`, `Development`) and provisions corresponding projects sequentially with globally unique ID prefixes (`logging-`, `prod-`, `non-prod-`, `dev-` followed by a shared suffix).
- **Billing & API Enablement**: Links all projects to your billing account and
activates critical logging/monitoring services.
- **Centralized Logging & Monitoring**: Deploys a global, centralized log
bucket with 30-day retention, configures an organization-wide audit log sink, and sets up a cross-environment metrics scope.
--------------------------------------------------------------------------------
Clarifying Questions
Before executing this recipe, the agent **must** gather the following details:
1. **Organization ID**: Run `gcloud organizations list` to retrieve the available organizations, present them to the user, and ask them to select the target **Organization ID**. 2. **Billing Account ID**: Run `gcloud billing accounts list --filter=open=true` to retrieve only the active (open) billing accounts, present them to the user, and ask them to select the active **Billing Account ID**. 3. **Project ID Suffix**: Ask if the user has a preferred prefix or target suffix for Project IDs (default uses prefix + a shared random 8-character string, e.g., `prod-ab12cd34`). 4. **Log Bucket Region**: Ask for the target region for resources if they want to override the default `global` log bucket location.
--------------------------------------------------------------------------------
Prerequisites
Ensure the following prerequisites are met before beginning the deployment:
- **GCP Identity**: You must have a Google Cloud Organization resource set up.
- **Administrative IAM Roles**: The identity executing these commands must
hold the required administrative permissions. If any step fails with a `Permission Denied` error, the agent will attempt to self-remediate by granting the corresponding recommended role as detailed in **Phase 2: Error Recovery & Lazy Role Remediation Strategy**.
- **Tools**: The `gcloud` CLI must be installed, authorized with the above
identity, and configured for use.
--------------------------------------------------------------------------------
Steps to Complete the Recipe
Phase 1: Pre-flight Confirmation
Identify the target organization and obtain explicit user approval before making changes.
1. **Identify and Discover Organization**: Verify the target organization. If only the display name is known, list organizations to find the ID. Then, retrieve the organization metadata to dynamically calculate the **Directory Customer ID** and **Domain Name**:
# List to find ID if needed
gcloud organizations list
# Describe the organization to retrieve metadata
gcloud organizations describe [ORGANIZATION_ID]*Calculate values:*
- **Domain Name** (`[ORG_NAME]` / `[YOUR_DOMAIN]`): Use the `displayName`
value from the output (e.g., `my-business.com`).
- **Customer ID** (`[DIRECTORY_CUSTOMER_ID]`): Use the
`owner.directoryCustomerId` value from the output (e.g., `C01234567`).
2. **Present Blueprint Summary**: Present the exact details of the blueprint to the user and request confirmation to proceed:
> **Proposed Foundation Deployment Summary for Organization: `[ORG_NAME]` > (`[ORGANIZATION_ID]`)** > > * **Security:** Enforce 17 baseline Organization Policies (13 Boolean, 4 > List). > * **Folders:** Create 4 folders sequentially (`Common`, `Production`, > `Non-Production`, `Development`). > * **Projects:** Create 4 projects sequentially with unique IDs > (`logging-[SUFFIX]`, `prod-[SUFFIX]`, `non-prod-[SUFFIX]`, > `dev-[SUFFIX]`). > * **Billing:** Link all projects to Billing Account > `[BILLING_ACCOUNT_ID]`. > * **APIs:** Enable Logging and Monitoring APIs on the central project. > * **Centralized Logging:** Deploy a `global` log bucket > `[ORG_NAME]-logging` (30-day retention), configure an > organization-level sink > `[ORGANIZATION_ID]-logbucketsink-[RANDOM_HEX]`, and establish > cross-project metrics scopes. > > Do you wish to proceed with this deployment? (Yes/No)
> [!IMPORTANT] **Pause execution** and wait for explicit user approval before > moving to Ph
This repository contains Agent Skills for Google products and technologies, including Google Cloud. This repository is under active development.
Repo: google/skills
Other skills on google-skills.
- /data-manager-api-audience-ingestion
Guides developers through managing (adding, removing, and clearing) audience members for Google products using the Data Manager API and its associated client libraries. Use this skill when the user wants to upload audience members, remove specific users, or clear/replace an
Open skill - /data-manager-api-event-ingestion
Guides developers through implementing event and conversion ingestion to Google products using the Data Manager API /v1/events/ingest endpoint and its associated client libraries. Use this skill when the user wants to upload offline conversions, enhanced conversions for leads,
Open skill - /data-manager-api-setup
Guides developers through client library installation and authentication setup steps for the Data Manager API. Use this skill when a user is getting started with the Data Manager API and needs to setup their local environment, install the client library, or setup access to the
Open skill - /google-ads-api-account-diagnostics
Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due to ad rank, bids, or budgets. Use when troubleshooting sudden performance drops, analyzing campaign impression share
Open skill - /google-ads-api-mcp-setup
Guides developers through downloading, configuring, and installing the official open-source Google Ads MCP Server. Use this skill when a user wants to connect their AI assistant (such as Gemini, Claude Code, or Cursor) to their Google Ads account to query campaigns or retrieve
Open skill - /google-ads-api-quickstart
Guides developers through Google Ads API quickstart: credential setup, choosing from 6 client libraries/REST, configuring environments, and running a "retrieve campaigns" script. Troubleshoots common setup errors: USER_PERMISSION_DENIED, login_customer_id issues, and
Open skill

