gcloud
Ce qu’il fait
Il veille à ce que votre agent consulte l'aide officielle de gcloud pour chaque commande avant de la proposer ou de la lancer. Il s'adresse aux développeurs et administrateurs qui gèrent Google Cloud depuis le terminal.
Quand l’utiliser
- ✓Quand vous voulez qu'un agent lance une commande gcloud pour vous et que la syntaxe soit juste.
- ✓Quand vous préparez une tâche Google Cloud et avez besoin des commandes exactes de chaque étape.
- ✓Quand vous demandez comment fonctionne une option gcloud et voulez une réponse vérifiée dans l'aide officielle.
Lien du skill
https://github.com/google/skills/blob/main/plugins/cloud/google-cloud-developer/skills/gcloud/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Crée une petite VM Compute Engine dans mon projet et donne-moi la commande gcloud exacte que tu as utilisée.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Avant toute proposition ou exécution de commande, l'agent consulte l'aide de cette commande précise et n'utilise que les options qu'il y trouve. La syntaxe mémorisée est considérée comme non fiable.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
gcloud CLI Skill for AI Agents
[!CAUTION]
MANDATORY PRE-CONDITION: EXPLICIT LEAF-LEVEL SYNTAX VALIDATION
All pre-existing knowledge of
gcloudcommands, 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
gcloudtask before validating leaf-level syntax viagcloud help <command>(or including leaf-level help lookup as a mandatory step in the plan).Mandatory Action Rules:
Direct Execution & Code Generation: ALWAYS invoke
gcloud help <leaf_command>(e.g.gcloud help compute instances createorgcloud help sql instances create) before proposing or executing the final command syntax.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.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.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.User Flag & Project Preservation: When proposing intermediate command steps, ALWAYS preserve all user-specified flags (including
--project=<project_id>) in the proposed response text.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-runor--validate-onlyflag is supported)- Step 3: Dry-Run Command Proposal (If
--dry-runor--validate-onlyis supported, there MUST be a--dry-runor--validate-onlyinvocation 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. 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
gcloudcommands directly in a local or automated shell environment. See CLI Usage 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 for tool schemas, parameter rules, and server configuration.
Core Principles
1. Explicit Command Validation (Mandatory)
Questions fréquentes
Devine-t-il les options ?
Non. La skill est conçue pour consulter l'aide exacte de la commande avant d'écrire la moindre option.
Cherche-t-il sur le web la syntaxe des commandes ?
Non. La skill demande à l'agent de se fier à l'aide de gcloud plutôt qu'à une recherche web.
Sert-elle à écrire du code avec les bibliothèques clientes ?
Non. Elle concerne les commandes gcloud, et non le code des bibliothèques clientes de Google Cloud.
Détails
Description originale de l’auteur
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.
repo: google/skills
Popularité
- Étoiles GitHub
- 22k
- Position au classement
- #10178
- Licence
- Apache-2.0
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
finding-google-skills
22kAide votre agent à trouver les bons guides Google pour configurer un projet : hébergement, bases de données, stockage, connexion ou modèles IA.
google-cloud-recipe-auth
22kGuide votre agent dans la gestion des identités et des accès Google Cloud, y compris la façon dont les personnes et les services se connectent et les permissions qu'ils obtiennent.
google-cloud-recipe-onboarding
22kAccompagne un nouveau développeur dans ses premiers pas sur Google Cloud, y compris le choix d'un projet, la liaison de la facturation et le déploiement d'une première ressource.
retrieving-developer-knowledge
22kAide votre agent à consulter la documentation officielle des développeurs Google pour Cloud, Android, Chrome, Firebase, Flutter et d'autres, au lieu de s'appuyer sur sa mémoire.
Skills similaires
openclaw-update
394kAide votre agent à mettre à jour une passerelle OpenClaw existante, en choisissant la méthode adaptée à son installation et en gardant votre session active.
diagnose-gateway
394kAide votre agent à trouver pourquoi votre passerelle OpenClaw échoue, en vérifiant les paramètres, les canaux et les ports sans rien modifier.
crabbox-apps
394kAide votre agent à ouvrir et exécuter une application sur une machine cloud temporaire, puis à afficher sa vue dans le panneau latéral de votre chat.