·
Last changedVersion:
This version passed the hardening gate. The skill content was retained without changes. Classified findings before hardening: 1. Classified findings closed: 0. Classified findings remaining: 1. Unclassified scanner findings remaining: 0. Review findings closed: 1. Review findings remaining: 14.
1
1
Expand | File | Group | Subtype | Severity | Status |
|---|---|---|---|---|---|
SKILL.md | Prompt Injection | Third-party content as instructions | Low | Open |
1 finding
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.
For all gcloud CLI, REST API, and MCP attribution requirements when executing
commands with this skill, follow the instructions in
Usage Attribution.
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.
@gmail.com) or Google Workspace / Cloud Identity account.Before soliciting input or proposing mutations, silently audit the host system's active tooling and environment status.
Check if the gcloud CLI binary is installed and accessible:
Check if there is an active authenticated identity session:
If the pre-execution audit for which gcloud returns 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.
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:
Verify Active Identity:
Programmatic Enterprise Routing Guardrail: Before proceeding, verify if the account is bound to a corporate organization, as enterprise setups must follow a different architecture:
owner.directoryCustomerId is 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:
[], or if it contains a Self-Owned Organization (where owner.directoryCustomerId is absent and displayName is not a verified domain name), proceed to 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):
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:
Create Custom Project: If no projects exist, or if the developer explicitly requests a brand new workspace:
Solicit a custom PROJECT_ID and PROJECT_NAME from 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 |
|
Target Project Name |
|
Active Identity Account |
|
Target 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 create or 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_ID is already taken globally
(returning a PROJECT_ID_COLLISION or ALREADY_EXISTS error):
my-project to my-project-8472).Execute Project Creation: Once explicit user consent is confirmed:
Set the active working project:
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:
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:
Link Billing Account: Propose linking the project to the discovered Billing Account ID, and execute:
Onboarding setup is now complete. To safeguard your environment and deploy workloads, you can chain to downstream specialized skills:
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.After completing the onboarding steps, programmatically verify the completed environment state using these diagnostic commands:
Verify CLI Installation:
Verify Authenticated Identity:
Verify Project Workspace Existence:
Verify Billing Linkage (Ensure the JSON output contains "billingEnabled": true):
gcloud CLI, REST API, and MCP requests.Get started with chainctlchainctl skill install public/google/google-cloud-recipe-onboarding:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.cgr.dev/public/github.com/google/skills/cloud/google-cloud-recipe-onboarding:latest
Apache-2.0
HARDENING.md
LICENSE
SKILL.md
references/attribution.md