gcloud
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.
Skill by googleOfficial
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/google-gcloud-770313
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, devops, cloud, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
gcloud- 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.
- License
- Apache-2.0
- Metadata
- version: 1.0.2 · category: CloudInfrastructureAndServices
- Instructions
- 279 lines in SKILL.md · view on GitHub
Files (4)
- SKILL.md
- attribution.md · references/
- cli-usage.md · references/
- mcp-usage.md · references/
SKILL.md (first lines)
# gcloud CLI Skill for AI Agents
> [!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.
## Usage Attribution
**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.
## Execution Modes
AI agents can interact with Google Cloud resources in two primary ways:
- **Direct CLI Execution**: Executing `gcloud` commands directly in a local or
automated shell environment. See [CLI Usage](references/cli-usage.md) for
installation, authentication flows, and configuration management.
- **Model Context Protocol (MCP)**: Invoking structured tools via the Cloud
CLI remote MCP server (`run_gcloud_command`). See
[MCP Usage](references/mcp-usage.md) for tool schemas, parameter rules, and
server configuration.
## Core Principles
### 1. Explicit Command Validation (Mandatory)
* **Action**: **ALWAYS** call `gcloud help <command>` for the *exact* command
that is intended to be run (e.g., `gcloud help compute instances create`).
* **Verify**: Ensure the command, flags, flag values, and positional argument
syntax are valid for that specific leaf command before attempting execution
or presenting plans. Validation is not transitive from parent groups.
### 2. Data Reduction Strategies (Mandatory)
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`).
* **Projection**: Use `--format="json(key1, key2, ...)"` to select only the
specific fields needed for the task. To understand the advanced projection
and formatting syntax, refer to `gcloud topic projections` and `gcloud topic
formats`.
* **Limiting**: Use `--limit=N` to cap the number of resources returned.
* **Filtering**: Use `--filter` to narrow down results server-side. Prioritize
`:` for pattern matching and never quote the right side of the colon. Treat
the entire filter flag as a singular string without quoting or escaping
characters. To study the filter expression syntax, refer to `gcloud topic
filters`.
* **Schema Discovery**: Unconstrained resource lists can quickly exhaust the
context window with redundant data. To prevent this, discover a resource's
schema before executing queries. If unsure of the JSON key path for
projecting fields (`--format`) or filtering (`--filter`), run the targetedFrom google/skills, Apache-2.0.
More from google/skills
- 0.865score
google-ads-api-account-diagnostics
google-ads-api-teamOfficial
Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due…
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-triage
Google LLCOfficial
Expert guidance for security alert triage in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-detection-engineering
Google LLCOfficial
Author, validate, test, and deploy YARA-L 2.0 detection rules and evaluate end-to-end detection coverage gaps in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-hunt
Google LLCOfficial
Expert guidance for proactive threat hunting in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-cases
Google LLCOfficial
Manage Google Security Operations (SecOps) SOAR cases throughout their lifecycle.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-investigate
Google LLCOfficial
Expert guidance for deep security incident and entity investigations in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.824score
google-ads-api-quickstart
google-ads-api-teamOfficial
Guides developers through Google Ads API quickstart: credential setup, choosing from 6 client libraries/REST, configuring environments, and running a…
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.819score
google-ads-api-mcp-setup
google-ads-api-teamOfficial
Guides developers through downloading, configuring, and installing the official open-source Google Ads MCP Server.
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.815score
ima-dai-sdk
Google LLCOfficial
Integrates the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI) SDK into websites, web apps, mobile apps, or TV apps.
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.815score
ima-sdk-client-side
Google LLCOfficial
Supports Interactive Media Ads (IMA) SDK.
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.699score
gcloud
googleOfficial
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
agent-platform-deploy
googleOfficial
Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up…
SkillAFreshness: A★ 21.5KClaude Code +9
Signals
- Stars
- 21,542
- Forks
- 1,821
- Open issues
- 21
- Last commit (this folder)
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.2
- License
- Apache-2.0
- Repository
- github.com/google/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.699score
gcloud
googleOfficial
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.318score
gcloud
artanphn-dotcom
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.
SkillBFreshness: BClaude Code +9
More from google
- 0.699score
retrieving-developer-knowledge
googleOfficial
Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome, Web, Flutter, Go, Firebase, and…
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
data-manager-api-setup
googleOfficial
Guides developers through client library installation and authentication setup steps for the Data Manager API.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
agent-platform-migrate-from-ai-studio
googleOfficial
Guides agents and users through migrating from Gemini API in Google AI Studio to Gemini Enterprise Agent Platform (formerly Vertex AI).
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
gcloud
googleOfficial
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
google-cloud-recipe-onboarding
googleOfficial
Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying a first resource.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
agent-platform-deploy
googleOfficial
Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up…
SkillAFreshness: A★ 21.5KClaude Code +9
Cite this page
gcloud skill. Agent Mart. https://agentmart.dev/skills/google-gcloud-770313 (last updated 2026-10-24)