Google Cloud Recipe Onboarding
GoogleOfficialPublished by Google
- Skill
- Workflow
- Cloud and DevOps
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured, non-interactive path for individual developers to set up their Google Cloud environment. It automates the verification of local tooling, authentication, project creation, and billing linkage. Designed for personal or trial accounts, it includes safety guardrails to prevent enterprise-level configuration errors and ensures all actions are performed with explicit user consent.
What it does
- Verifies local gcloud CLI installation and authentication status.
- Audits existing Google Cloud projects to prevent duplicate creation.
- Creates new projects with automated collision handling for project IDs.
- Links projects to active billing accounts to enable resource deployment.
- Provides a structured consent gate before executing any infrastructure mutations.
- Validates the final environment state to ensure successful configuration.
When to use it
- When a new developer needs to set up their first Google Cloud project.
- When you need to verify if a local machine is ready for Google Cloud development.
- When you need to link a new project to an existing billing account.
- When you want a safe, step-by-step process to initialize a cloud workspace.
Advantages
- Prevents accidental creation of duplicate projects.
- Ensures deterministic, machine-parseable outputs using CLI flags.
- Includes built-in safety checks to avoid enterprise-level configuration.
- Provides clear, step-by-step guidance with mandatory user consent gates.
Usage examples
- “I want to get started with Google Cloud.”
- The agent audits your local environment, checks your authentication, and asks if you would like to reuse an existing project or create a new one.
- “Create a new Google Cloud project for my app.”
- The agent prompts for a project name, presents a summary table of the configuration, and waits for your explicit confirmation before creating the project and linking billing.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/google/google-cloud-recipe-onboarding/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip google-cloud-recipe-onboarding.zip -d .agents/skills
Documentation by Google
Onboarding to Google Cloud
This skill provides a streamlined, non-interactive "happy path" for a singleton developer to get started with Google Cloud. It covers everything from environment verification and authentication to project selection, billing account linkage, and downstream safety chaining.
Attribution
For all gcloud CLI, REST API, and MCP attribution requirements when executing
commands with this skill, follow the instructions in
Usage Attribution.
[!IMPORTANT] For autonomous agents executing this skill:
Check-Before-Mutate Audits: Always perform silent pre-execution state audits prior to proposing or executing any project or billing changes.
Single-Question Policy: Ask the user for exactly one operational parameter or confirmation at a time during interactive execution.
Non-Interactive Output: Append non-interactive overrides (
--quiet,--format="json") to all mutation commands to guarantee deterministic, machine-parseable outputs and prevent terminal hangs.First Turn Interaction Rules (Trigger Turn): When the developer first triggers this skill with a general onboarding request (e.g. says "I want to get started with Google Cloud"):
Preamble Guidance: Proactively include a short orienting preamble guiding the developer to create a Google Cloud account (pointing to the console at
https://console.cloud.google.com/) and rungcloud auth loginto authorize their workstation, even if they appear to be already logged in.First Turn Single-Question: Perform pre-flight audits silently, but do not present a complete parameters summary table or ask for final consent in the first turn. Instead, ask the developer exactly one initial operational question (e.g., "Would you like to reuse an existing active project, or create a brand new one?"). Note: If the developer's initial prompt explicitly states "I approve the onboarding configuration", "Let's proceed with onboarding", or requests a dry-run plan (e.g., "Show me the exact plan or dry-run commands"), bypass the general preamble and initial question, and proceed directly to the requested step.
Overview
For an individual developer, onboarding to Google Cloud involves verifying local terminal tools, establishing an authenticated session, selecting or instantiating a workspace (Project), and linking it to an active billing account. Google Cloud offers a Free Tier and a Free Trial with $300 in credits for first-time users. Learn more here.
Prerequisites
A personal Google Account (e.g.,
@gmail.com) or Google Workspace / Cloud Identity account.A valid payment method (credit card or bank account) required for identity verification and to activate the $300 Free Trial credit introduced in the Overview.
Steps
Section 1: Verify Host Tooling Setup
Before soliciting input or proposing mutations, silently audit the host system's active tooling and environment status.
Check if the
gcloudCLI binary is installed and accessible:which gcloudCheck if there is an active authenticated identity session:
gcloud auth list --format="json"If the pre-execution audit for
which gcloudreturns a valid path, proceed directly to Section 2: Authenticate and Route Session.If the binary is missing, halt execution and direct the agent to install gcloud using the gcloud skill. Provide the official Google Cloud CLI Installation Guide to the developer for steps to set up authentication.
Section 2: Authenticate and Route Session
Authorize the gcloud CLI to access Google Cloud using the developer's Google Account, and verify that the account is appropriate for standalone developer onboarding.
Execute Credentials Authentication:
gcloud auth login[!IMPORTANT] New User / Unauthenticated Guidance: If the pre-execution state audits or command failures confirm that the developer is unauthenticated (e.g.,
gcloud auth listis empty or active credentials are missing):Guide them to create a Google Cloud account by navigating to the Google Cloud Console.
Instruct them to execute the
gcloud auth logincommand to authorize their local workstation terminal session.Do not attempt project creation or resource configuration until authentication is completed successfully.
Verify Active Identity:
gcloud config get-value account --format="json"Programmatic Enterprise Routing Guardrail: Before proceeding, verify if the account is bound to a corporate organization, as enterprise setups must follow a different architecture:
gcloud organizations list --format="json"Note that new Free Trial accounts automatically receive a Self-Owned Organization (SOO). To distinguish between a personal Free Trial account and an enterprise organization, inspect the JSON output:
Enterprise Organization (Halt Execution): If the output list contains an organization node where
owner.directoryCustomerIdis present (confirming a domain-verified Google Workspace or Cloud Identity organization), or if the user's prompt explicitly mentions corporate landing zones or multi-tenant project structures:Halt execution of this skill immediately.
Route the developer to the official Google Cloud Setup guided flow.
Personal Account / Free Trial SOO (Proceed): If the output list is empty
[], or if it contains a Self-Owned Organization (whereowner.directoryCustomerIdis absent anddisplayNameis not a verified domain name), proceed to Section 3: Select or Instantiate Your Google Cloud Project.
Section 3: Select or Instantiate Your Google Cloud Project
Google Cloud resources are organized into Projects. When developers sign up for a Free Trial via the console, Google Cloud automatically creates a default project (e.g., "My First Project"). Always audit the active environment first to reuse existing projects and prevent token-burning collision errors.
Silent Project Discovery: List active, accessible projects (limited to prevent context window overflow):
gcloud projects list --filter="lifecycleState=ACTIVE" --limit=20 --format="json"Reuse Existing Project (Recommended): If the list returns an active project, present it to the developer and propose setting it as the default working project:
gcloud config set project {PROJECT_ID} --quietCreate Custom Project: If no projects exist, or if the developer explicitly requests a brand new workspace:
Solicit a custom
PROJECT_IDandPROJECT_NAMEfrom the developer (Single-Question Policy).Structured Confirmation & Consent Gate (Mandatory): Before running any project creation or billing linkage commands, the agent must present a structured markdown table summarizing the target parameters:
Parameter Value Target Project ID {PROJECT_ID}Target Project Name {PROJECT_NAME}Active Identity Account {ACCOUNT}Target Billing Account ID {BILLING_ACCOUNT_ID}Ask the user the exact consent query:
"I am ready to initialize your Google Cloud project and link billing. Do you want me to proceed?"CRITICAL: The agent MUST NOT execute any
gcloud projects createor billing link commands during this turn. You must display this table, ask the exact consent query, and strictly stop to wait for the user's positive affirmation.Project ID Collision Suffix Recovery: If the project creation command fails because the
PROJECT_IDis already taken globally (returning aPROJECT_ID_COLLISIONorALREADY_EXISTSerror):Automatically append a random 4-digit suffix (e.g., changing
my-projecttomy-project-8472).Propose this new available project ID to the developer and re-solicit consent before retrying.
Execute Project Creation: Once explicit user consent is confirmed:
gcloud projects create {PROJECT_ID} --name="{PROJECT_NAME}" --quiet --format="json"Set the active working project:
gcloud config set project {PROJECT_ID} --quiet
Section 4: Verify and Link Billing
To deploy resources on Google Cloud, your project must be linked to an active Cloud Billing account.
Audit Billing Status: Check if the active project is already linked to a billing account:
gcloud billing projects describe {PROJECT_ID} --format="json"If the output contains
"billingEnabled": true, skip linkage and proceed immediately to Section 5: Skill Chaining (Spend Controls & Workloads).Discover Available Billing Accounts: If the project is unlinked, query the available billing account handles linked to the authenticated user identity:
gcloud billing accounts list --format="json"Link Billing Account: Propose linking the project to the discovered Billing Account ID, and execute:
gcloud billing projects link {PROJECT_ID} --billing-account={BILLING_ACCOUNT_ID} --format="json"
Section 5: Skill Chaining (Spend Controls & Workloads)
Onboarding setup is now complete. To safeguard your environment and deploy workloads, you can chain to downstream specialized skills:
Billing Spend Controls: To avoid accidental cost overruns, consider setting up a programmatic control to automatically disable billing. When billing is disabled, all Google Cloud services and usage in the project are terminated to stop further costs:
Direct the developer to the official Disable Billing Usage with Notifications Guide, which provides detailed instructions on how to automatically shut down billing when costs exceed the project budget.
Deploy Workloads: To deploy your first resource, trigger the downstream specialized skill matching your target application (e.g., cloud-run-basics or
bigquery-basics). If the specialized skill is not locally available, direct the developer to the corresponding official quickstart, such as the Cloud Run Container Deployment Quickstart. Note: Those downstream specialized skills are individually responsible for dynamically enabling their own required service APIs (e.g., run.googleapis.com) inline during execution.
Validation Logic
After completing the onboarding steps, programmatically verify the completed environment state using these diagnostic commands:
Verify CLI Installation:
which gcloudVerify Authenticated Identity:
gcloud config get-value accountVerify Project Workspace Existence:
gcloud projects describe {PROJECT_ID} --format="json"Verify Billing Linkage (Ensure the JSON output contains
"billingEnabled": true):gcloud billing projects describe {PROJECT_ID} --format="json"
Additional Resources
Usage Attribution: Standardized usage attribution tags for
gcloudCLI, REST API, and MCP requests.
Files
- ATTRIBUTION.mdAdded by AutoGineer878 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md12.8 KiB
- references/attribution.md1.8 KiB
references/attribution.md
Usage Attribution
Tag every command you execute directly in the terminal while using this skill, so usage can be attributed. The tag identifies only the skill and its version; it carries no user data.
gcloudCLI Commands: Prefix everygcloudinvocation, whatever the subcommand, with the metrics environment variable. Set it inline on each command because shell state may not persist between commands:CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:google-cloud-recipe-onboarding)" \ gcloud <command> [flags]Do not use
gcloud config setfor this: it would persist beyond the current task and mislabel unrelated usage.Direct HTTP, REST, and MCP Requests: On direct HTTP calls to Google Cloud APIs (for example with
curl) or HTTP requests to a remote MCP server, includeagent-skills/1.0 (skill:google-cloud-recipe-onboarding)in theUser-Agentheader. If aUser-Agentheader is already specified, append this string to the end of it rather than overwriting existingUser-Agentdata — the collection pipeline parses theagent-skills/<version>andskill:<name>tokens, so any rewording breaks attribution:User-Agent: <existing_user_agent> agent-skills/1.0 (skill:google-cloud-recipe-onboarding)Constraint for Generated Code: The tracking prefix is strictly for commands you execute directly in the terminal. Do NOT include this tracking prefix in generated scripts, Terraform templates, or code provided to the user for their own repositories.
User Opt-Out: If the user asks to disable or remove tracking or attribution tags, omit the
CLOUDSDK_METRICS_REQUEST_ATTRIBUTIONvariable and customUser-Agentsuffix from all commands.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs a command-line tool, Needs Node.js
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Publisher
- Google (Official)
- Source
- google/skills · skills/cloud/google-cloud-recipe-onboarding · commit 2194d3b
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Also distributed in
- google/skills
AutoGineer is not affiliated with or endorsed by Google or Google.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download google-cloud-recipe-onboarding.zip