Agent skill · google
gcloud
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.
What it needs
About 7k tokens when loaded.
What this skill does
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 <leafcommand> (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 <leafcommand> 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 searchweb, web search, or external documentation search tools for gcloud CLI syntax. gcloud help <leafcommand> 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=<projectid>) in the proposed response text. 6. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills google/gcloud--e676d2