finding-google-skills
Google platform decision and setup guidance, loaded on demand from Google's skill catalog. Use when a developer is choosing or…
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure. Use when planning, generating, constructing, proposing, describing, or executing any gcloud CLI commands - including when
Claude Code
$ npx -y skills add google/skills --skill gcloud --agent claude-code
Codex
$ npx skills add google/skills --skill gcloud -a codex -y
Cursor
$ npx skills add google/skills --skill gcloud -a cursor -y
Gemini CLI
$ npx skills add google/skills --skill gcloud -a gemini-cli -y
GitHub Copilot
$ npx skills add google/skills --skill gcloud -a github-copilot -y
OpenCode
$ npx skills add google/skills --skill gcloud -a opencode -y
Windsurf
$ npx skills add google/skills --skill gcloud -a windsurf -y
name: gcloud metadata: version: "1.0.3" category: CloudInfrastructureAndServices description: >- Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure. Use when planning, generating, constructing, proposing, describing, or executing any gcloud CLI commands - including when answering questions about gcloud syntax, or formatting flags. Don't use when writing Google Cloud client library code or raw REST/gRPC API requests.
> [!CAUTION] > > ### MANDATORY PRE-CONDITION: EXPLICIT LEAF-LEVEL SYNTAX VALIDATION > > All pre-existing knowledge of `gcloud` commands, flags, flag values, and > positional argument syntax is **stale and prone to hallucination**. > > NEVER propose command parameters, output flag options, execute commands, OR > outline step-by-step plans for any `gcloud` task before validating leaf-level > syntax via `gcloud help <command>` (or including leaf-level help lookup as a > mandatory step in the plan). > > **Mandatory Action Rules**: > > 1. **Direct Execution & Code Generation**: **ALWAYS** invoke `gcloud help > <leaf_command>` (e.g. `gcloud help compute instances create` or `gcloud > help sql instances create`) before proposing or executing the final > command syntax. > > 2. **Planning & Strategy Queries**: When asked for a plan, strategy, or next > steps to achieve a user goal (e.g., *"What is your plan to accomplish > X..."*), the response **MUST explicitly include running `gcloud help > <leaf_command>`** as Step 1 of the plan before proposing flags or > executing commands. > > 3. **Non-Transitive Validation**: Parent command group help (e.g. `gcloud > help compute`) is not sufficient for leaf-level syntax validation. > Validation must occur at the specific leaf subcommand level. > > 4. **FORBIDDEN Web Search Fallback**: NEVER use `search_web`, web search, or > external documentation search tools for gcloud CLI syntax. `gcloud help > <leaf_command>` is the **EXCLUSIVE** authorized authority for command > syntax. > > 5. **User Flag & Project Preservation**: When proposing intermediate command > steps, **ALWAYS** preserve all user-specified flags (including > `--project=<project_id>`) in the proposed response text. > > 6. **Mandatory Plan Template**: When generating a plan, the response **MUST** > copy this exact 4-step structure: > > - **Step 1**: Syntax Validation via `gcloud help <leaf_command>` > - **Step 2**: Parameter Verification (confirming required and optional > flags, and explicitly checking if the `--dry-run` or `--validate-only` > flag is supported) > - **Step 3**: Dry-Run Command Proposal (If `--dry-run` or > `--validate-only` is supported, there MUST be a `--dry-run` or > `--validate-only` invocation before the next step.) > - **Step 4**: Command Proposal & Authorization (If the command is on the > "Prohibited Operations" denylist, state that autonomous execution is > forbidden, and the user MUST be explicitly asked for authorization to > proceed. If the command is NOT on the denylist, propose or proceed > with execution, while following *ALL* "Execution Constraints" below.)
This document provides essential guidelines and best practices for AI agents interacting with the Google Cloud SDK (`gcloud` CLI). Following these rules is critical to avoid hallucinated commands, flags, flag values, and positional argument syntax, prevent destructive actions, and minimize context window usage.
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you MUST read and follow the instructions in [Usage Attribution](references/attribution.md). If a more specific product or domain skill (e.g., `cloud-run-basics`, `bigquery-basics`, `gke-basics`) is also loaded or active for the current task, **ALWAYS** use that specific skill's `skill:<name>` attribution tag instead of `skill:gcloud`. For commands executed directly in the terminal when no product-specific skill applies (never in generated scripts, Terraform, or user code), prefix `gcloud` with `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gcloud)"` and append `agent-skills/1.0 (skill:gcloud)` to `User-Agent` headers.
AI agents can interact with Google Cloud resources in two primary ways:
automated shell environment. See [CLI Usage](references/cli-usage.md) for installation, authentication flows, and configuration management.
CLI remote MCP server (`run_gcloud_command`). See [MCP Usage](references/mcp-usage.md) for tool schemas, parameter rules, and server configuration.
that is intended to be run (e.g., `gcloud help compute instances create`).
syntax are valid for that specific leaf command before attempting execution or presenting plans. Validation is not transitive from parent groups.
Minimize the volume of data returned by `gcloud` to save context window space and reduce latency. DO NOT execute any `list` command without including at least one data reduction flag (`--limit`, `--filter`, or `--format`).
specific fields needed for the task. To understand the advanced projection and formatting syntax, refer to `gcloud topic projections` and `gcloud topic formats`.
This repository contains Agent Skills for Google products and technologies, including Google Cloud.
Google platform decision and setup guidance, loaded on demand from Google's skill catalog. Use when a developer is choosing or…
Provides expert guidance on Identity and Access Management (IAM) and authenticating and authorizing to Google Cloud services and…
Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying a…
Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome,…
Guides developers through managing (adding, removing, and clearing) audience members for Google products using the Data Manager…
Guides developers through implementing event and conversion ingestion to Google products using the Data Manager API…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.