[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6992E7PWRA4Z3GZBQ4HGT0H":3,"skill-same:01M6992E7PWRA4Z3GZBQ4HGT0H":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":17,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M6992E7PWRA4Z3GZBQ4HGT0H","gcloud","gcloud CLI 命令安全校验","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\u002FgRPC API requests.","为跨 Google Cloud Platform (GCP) 各项服务和基础设施的 gcloud CLI 操作提供安全关键验证、防护栏和数据精简。在规划、生成、构造、提议、描述或执行任何 gcloud CLI 命令时使用——包括回答有关 gcloud 语法或标志格式的问题时。不用于编写 Google Cloud 客户端库代码或原始 REST\u002FgRPC API 请求。","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgcloud\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS500GKZYSCKH93NWY5MDS","云合规与数据边界管理","SCENARIO","使用场景",[5,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,10],"Guardrails","when","critical","formatting","commands","across","flags","syntax","api","Safety","writing","gcp","data","library","code","infrastructure","google cloud","cli","2026-11-10 10:12:30",false,"---\nname: gcloud\nmetadata:\n  version: \"1.0.4\"\n  category: CloudInfrastructureAndServices\ndescription: >-\n  Provides safety-critical validation, guardrails, and data reduction for gcloud\n  CLI operations across Google Cloud Platform (GCP) services and infrastructure.\n  Use when planning, generating, constructing, proposing, describing, or\n  executing any gcloud CLI commands - including when answering questions about\n  gcloud syntax, or formatting flags. Don't use when writing Google Cloud\n  client library code or raw REST\u002FgRPC API requests.\n---\n\n# gcloud CLI Skill for AI Agents\n\n> [!CAUTION]\n>\n> ### MANDATORY PRE-CONDITION: EXPLICIT LEAF-LEVEL SYNTAX VALIDATION\n>\n> All pre-existing knowledge of `gcloud` commands, flags, flag values, and\n> positional argument syntax is **stale and prone to hallucination**.\n>\n> NEVER propose command parameters, output flag options, execute commands, OR\n> outline step-by-step plans for any `gcloud` task before validating leaf-level\n> syntax via `gcloud help \u003Ccommand>` (or including leaf-level help lookup as a\n> mandatory step in the plan).\n>\n> **Mandatory Action Rules**:\n>\n> 1.  **Direct Execution & Code Generation**: **ALWAYS** invoke `gcloud help\n>     \u003Cleaf_command>` (e.g. `gcloud help compute instances create` or `gcloud\n>     help sql instances create`) before proposing or executing the final\n>     command syntax, **UNLESS** the user prompt already provides `gcloud help`\n>     output, states to assume command syntax is already validated, or instructs\n>     not to execute any commands. When instructed not to execute any commands,\n>     **NEVER** invoke `run_command` (not even for `gcloud help` or directory\n>     listing commands like `ls`); read bundled reference files\n>     (`references\u002Fcli-usage.md`, `references\u002Fmcp-usage.md`, and\n>     `references\u002Fattribution.md`) directly with `read_file`.\n>\n> 2.  **Planning & Strategy Queries**: When asked for a plan, strategy, or next\n>     steps to achieve a user goal (e.g., *\"What is your plan to accomplish\n>     X...\"*), the response **MUST explicitly include running `gcloud help\n>     \u003Cleaf_command>`** as Step 1 of the plan before proposing flags or\n>     executing commands.\n>\n> 3.  **Non-Transitive Validation**: Parent command group help (e.g. `gcloud\n>     help compute`) is not sufficient for leaf-level syntax validation.\n>     Validation must occur at the specific leaf subcommand level.\n>\n> 4.  **FORBIDDEN Web Search Fallback**: NEVER use `search_web`, web search, or\n>     external documentation search tools for gcloud CLI syntax. `gcloud help\n>     \u003Cleaf_command>` is the **EXCLUSIVE** authorized authority for command\n>     syntax.\n>\n> 5.  **User Flag & Project Preservation**: When proposing intermediate command\n>     steps, **ALWAYS** preserve all user-specified flags (including\n>     `--project=\u003Cproject_id>`) in the proposed response text.\n>\n> 6.  **Mandatory Plan Template**: When generating a plan, the response **MUST**\n>     copy this exact 4-step structure:\n>\n>     -   **Step 1**: Syntax Validation via `gcloud help \u003Cleaf_command>`\n>     -   **Step 2**: Parameter Verification (confirming required and optional\n>         flags, and explicitly checking if the `--dry-run` or `--validate-only`\n>         flag is supported)\n>     -   **Step 3**: Dry-Run Command Proposal (If `--dry-run` or\n>         `--validate-only` is supported, there MUST be a `--dry-run` or\n>         `--validate-only` invocation before the next step.)\n>     -   **Step 4**: Command Proposal & Authorization (If the command is on the\n>         \"Prohibited Operations\" denylist, state that autonomous execution is\n>         forbidden, and the user MUST be explicitly asked for authorization to\n>         proceed. If the command is NOT on the denylist, propose or proceed\n>         with execution, while following *ALL* \"Execution Constraints\" below.)\n\nThis document provides essential guidelines and best practices for AI agents\ninteracting with the Google Cloud SDK (`gcloud` CLI). Following these rules is\ncritical to avoid hallucinated commands, flags, flag values, and positional\nargument syntax, prevent destructive actions, and minimize context window usage.\n\n## Usage Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read and follow the instructions in\n[Usage Attribution](references\u002Fattribution.md). If a more specific product or\ndomain skill (e.g., `cloud-run-basics`, `bigquery-basics`, `gke-basics`) is\nalso loaded or active for the current task, **ALWAYS** use that specific\nskill's `skill:\u003Cname>` attribution tag instead of `skill:gcloud`. For commands\nexecuted directly in the terminal when no product-specific skill applies (never\nin generated scripts, Terraform, or user code), prefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:gcloud)\"`\nand append `agent-skills\u002F1.0 (skill:gcloud)` to `User-Agent` headers.\n\n## Execution Modes\n\nAI agents can interact with Google Cloud resources in two primary ways:\n\n-   **Direct CLI Execution**: Executing `gcloud` commands directly in a local or\n    automated shell environment. See [CLI Usage](references\u002Fcli-usage.md) for\n    installation, authentication flows, and configuration management.\n-   **Model Context Protocol (MCP)**: Invoking structured tools via the Cloud\n    CLI remote MCP server (`run_gcloud_command`). See\n    [MCP Usage](references\u002Fmcp-usage.md) for tool schemas, parameter rules, and\n    server configuration.\n\n## Core Principles\n\n### 1. Explicit Command Validation (Mandatory)\n\n*   **Action**: **ALWAYS** call `gcloud help \u003Ccommand>` for the *exact* command\n    that is intended to be run (e.g., `gcloud help compute instances create`).\n*   **Verify**: Ensure the command, flags, flag values, and positional argument\n    syntax are valid for that specific leaf command before attempting execution\n    or presenting plans. Validation is not transitive from parent groups.\n\n### 2. Data Reduction Strategies (Mandatory)\n\nMinimize the volume of data returned by `gcloud` to save context window space\nand reduce latency. DO NOT execute any `list` command without including at least\none data reduction flag (`--limit`, `--filter`, or `--format`).\n\n*   **Projection**: Use `--format=\"json(key1, key2, ...)\"` to select only the\n    specific fields needed for the task. To understand the advanced projection\n    and formatting syntax, refer to `gcloud topic projections` and `gcloud topic\n    formats`.\n\n*   **Limiting**: Use `--limit=N` to cap the number of resources returned.\n\n*   **Filtering**: Use `--filter` to narrow down results server-side. Prioritize\n    `:` for pattern matching and never quote the right side of the colon. Treat\n    the entire filter flag as a singular string without quoting or escaping\n    characters. To study the filter expression syntax, refer to `gcloud topic\n    filters`.\n\n*   **Schema Discovery**: Unconstrained resource lists can quickly exhaust the\n    context window with redundant data. To prevent this, discover a resource's\n    schema before executing queries. If unsure of the JSON key path for\n    projecting fields (`--format`) or filtering (`--filter`), run the targeted\n    resource's list command (if supported) with a single-item limit:\n\n    ```bash\n    gcloud \u003CGROUP> \u003CRESOURCE> list --limit=1 --format=json\n    ```\n\n    Examine this single instance's JSON structure to safely identify the correct\n    schema keys before requesting full or filtered datasets.\n\n### 3. Execution Constraints\n\n*   **Single Commands**: Execute a single `gcloud` command at a time. No command\n    chaining or sequencing.\n*   **No Shell Operators**: Do not use command substitution (`$(...)`), pipes\n    (`|`), or redirection (`>`, `>>`, `\u003C`). This is to increase command safety\n    and ensure commands are more easily understandable and reviewable by users.\n*   **Non-Interactive Execution (`--quiet` \u002F `-q`)**: Pass the `--quiet` (or\n    `-q`) global flag on all execution commands (e.g., `gcloud pubsub topics\n    delete temp-topic --quiet --project=test-project`). AI agents run in\n    headless, non-interactive environments without a TTY or `stdin` input\n    handler. Without `--quiet`, commands that prompt for user confirmation (such\n    as deleting resources, approving defaults, or selecting unspecified regions)\n    will pause execution indefinitely waiting for input, causing background task\n    timeouts. Including `--quiet` forces non-interactive mode, causing `gcloud`\n    to automatically accept safe default choices or fail immediately with an\n    explicit error if required parameters are missing.\n*   **No Blind Lists**: NEVER execute a `list` command without `--limit`,\n    `--filter`, or `--format`.\n\n### 4. Project and Location Scoping (Critical)\n\nTo ensure commands are deterministic, non-interactive, and target the correct\nenvironment, they must explicitly provide project and location scoping.\n\n*   **Explicit Project Target**: Do not rely on active configuration defaults.\n    Always append `--project=\u003CPROJECT_ID>` to all resource-manipulating and\n    querying commands (unless running pure local config commands). This avoids\n    accidental execution against the wrong project.\n\n*   **Prevent Location Prompts**: Many Google Cloud resources are regional or\n    zonal. If the location flag is omitted (e.g., `--region`, `--zone`, or\n    `--location`), `gcloud` will trigger an interactive prompt to select a\n    zone\u002Fregion. This violates the **No Interactivity** rule. Always provide\n    explicit location flags if the command requires them.\n\n*   **Location Discovery**: If the correct region, zone, or location for a\n    service is not known, run discovery commands first (remembering to limit\n    results if there are many):\n\n    *   **Compute Engine (VMs, Networks)**:\n\n        *   `gcloud compute regions list --project=\u003CPROJECT_ID>`\n        *   `gcloud compute zones list --project=\u003CPROJECT_ID>`\n\n    *   **Other Services (Standard API Style)**: Many GCP services utilize a\n        unified `locations list` command:\n\n        *   `gcloud \u003CGROUP> locations list --project=\u003CPROJECT_ID>`\n        *   *Examples*: `gcloud artifacts locations list`, `gcloud kms locations\n            list`, `gcloud secrets locations list`.\n\n## Safety & Guardrails\n\n> [!CAUTION] **Destructive actions (delete, update, remove) MUST be explicitly\n> authorized by the user.** Never invoke them autonomously unless explicitly\n> instructed to do so in the context of a safe, pre-approved workflow.\n\n### Prohibited Operations (Denylist)\n\nNEVER execute the following commands autonomously. These require explicit\nhuman-in-the-loop authorization:\n\n*   **Any IAM policy, role, or binding modification** (Security): Risk of\n    privilege escalation, administrative lockout, service disruption, or\n    unauthorized data exposure.\n*   **No Proactive API Enabling**: Assume necessary APIs are enabled. To prevent\n    unexpected resource provisioning or billing charges, do not proactively try\n    to enable APIs. User approval is required to enable any API.\n*   **No Proactive `gcloud` CLI Installation** (Host Modification): Never\n    autonomously install the Google Cloud CLI (`gcloud` CLI) or additional\n    `gcloud` CLI components (`gcloud components install`, `gcloud components\n    update`, or system package manager installs of the `gcloud` CLI). If the\n    `gcloud` binary or a required CLI component is missing, you **must** inform\n    the user, ask for explicit user confirmation (e.g., *\"I am ready to install\n    the Google Cloud CLI (`gcloud`). Do you want me to proceed?\"*), and\n    **strictly stop** to wait for the user's positive affirmation before\n    executing any installation commands.\n*   **`gcloud * delete`** (Destructive): Irreversible resource destruction\n    (e.g., project deletion) or data wiping.\n*   **`gcloud billing *`** (Financial): Risk of service disruption or unbounded\n    costs.\n*   **`gcloud organizations *`** (Governance): Org-level changes affect security\n    posture for all users.\n*   **`gcloud kms *`** (Encryption): Risk of permanently locking data.\n*   **`gcloud infra-manager deployments apply`** (Destructive): Autonomous IaC\n    execution can destroy managed resources.\n\n### Execution Guidelines\n\n*   **Dry Run (Mandatory)**: If the `--dry-run` or `--validate-only` flag (or\n    equivalent) is listed in the command help output, ALWAYS include the flag in\n    the proposed command or initial execution step. ALWAYS preview changes with\n    `--dry-run` or `--validate-only` prior to actual execution.\n\n*   **Long Running Operations**: For commands that support it, the `--async`\n    flag is highly recommended for long-running operations to avoid blocking the\n    agentic flow. Note that not every command has an `--async` flag. For\n    commands that return an operation ID (whether via `--async` or by default),\n    operation status must be polled for completion, if needed for the next step.\n\n*   **Non-Interactive Flag (`--quiet`)**: Include `--quiet` (or `-q`) on all\n    proposed or executed commands to guarantee non-interactive execution without\n    waiting for TTY confirmation prompts.\n\n## Structured Workflows\n\n### Discovery Workflow\n\nWhen asked to perform a task on a service that is unfamiliar:\n\n1.  **Invoke Help**: Call `gcloud help \u003CCOMMAND>` on the target leaf command\n    prior to execution.\n2.  **Traverse Command Tree**: Run help on command groups (e.g., `gcloud help\n    compute` or `gcloud help`) to discover available subgroups and commands if\n    the exact command is unknown.\n3.  **Discover Schema**: Run `gcloud \u003CGROUP> \u003CRESOURCE> list --limit=1\n    --format=json` to inspect JSON keys before constructing filters or\n    projections. DO NOT execute unconstrained `list` commands without scoping\n    flags (e.g., `--limit=1`) to prevent context window exhaustion.\n4.  **Enforce Data Reduction**: Include data reduction flags (`--limit`,\n    `--filter`, `--format`) on all command executions.\n\n## Quick Reference \u002F Cheat Sheet\n\nTask               | Command Template\n------------------ | ----------------------------------------------------------\nDiscover Schema    | `gcloud \u003CGROUP> \u003CRESOURCE> list --limit=1 --format=json`\nFiltered List      | `gcloud \u003CGROUP> \u003CRESOURCE> list --filter=\"status:RUNNING\"`\nSpecific Columns   | `gcloud \u003CGROUP> \u003CRESOURCE> list --format=\"json(name, id)\"`\nLearn Filters      | `gcloud topic filters`\nLearn Formats      | `gcloud topic formats`\nLearn Projections  | `gcloud topic projections`\nAsynchronous Op    | `gcloud \u003CCOMMAND> --async`\nCheck Operation    | `gcloud \u003CGROUP> operations describe \u003COPERATION_ID>`\nCommon commands    | `gcloud cheat-sheet`\nList Regions (GCE) | `gcloud compute regions list --project=\u003CPROJECT_ID>`\nList Zones (GCE)   | `gcloud compute zones list --project=\u003CPROJECT_ID>`\nList Locations     | `gcloud \u003CGROUP> locations list --project=\u003CPROJECT_ID>`\n\nRefer to the\n[gcloud CLI Scripting Guide](https:\u002F\u002Fdocs.cloud.google.com\u002Fsdk\u002Fdocs\u002Fscripting-gcloud.md.txt)\nfor guidance on using the gcloud CLI in automation.\n\n## Reference Directory\n\n-   [CLI Usage](references\u002Fcli-usage.md): Platform installation, authentication\n    methods (interactive, headless, ADC, service account keys, impersonation),\n    and local configuration management.\n\n-   [MCP Usage](references\u002Fmcp-usage.md): Using the Cloud CLI remote MCP\n    server (`run_gcloud_command`), project parameter scoping, input files, and\n    execution guidelines.\n\n-   [Usage Attribution](references\u002Fattribution.md): Standardized usage\n    attribution tags and multi-skill precedence rules for `gcloud` CLI, REST\n    API, and MCP requests.\n","# gcloud CLI Skill for AI Agents\n\n> [!CAUTION]\n>\n> ### MANDATORY PRE-CONDITION: EXPLICIT LEAF-LEVEL SYNTAX VALIDATION\n>\n> All pre-existing knowledge of `gcloud` commands, flags, flag values, and\n> positional argument syntax is **stale and prone to hallucination**.\n>\n> NEVER propose command parameters, output flag options, execute commands, OR\n> outline step-by-step plans for any `gcloud` task before validating leaf-level\n> syntax via `gcloud help \u003Ccommand>` (or including leaf-level help lookup as a\n> mandatory step in the plan).\n>\n> **Mandatory Action Rules**:\n>\n> 1.  **Direct Execution & Code Generation**: **ALWAYS** invoke `gcloud help\n>     \u003Cleaf_command>` (e.g. `gcloud help compute instances create` or `gcloud\n>     help sql instances create`) before proposing or executing the final\n>     command syntax, **UNLESS** the user prompt already provides `gcloud help`\n>     output, states to assume command syntax is already validated, or instructs\n>     not to execute any commands. When instructed not to execute any commands,\n>     **NEVER** invoke `run_command` (not even for `gcloud help` or directory\n>     listing commands like `ls`); read bundled reference files\n>     (`references\u002Fcli-usage.md`, `references\u002Fmcp-usage.md`, and\n>     `references\u002Fattribution.md`) directly with `read_file`.\n>\n> 2.  **Planning & Strategy Queries**: When asked for a plan, strategy, or next\n>     steps to achieve a user goal (e.g., *\"What is your plan to accomplish\n>     X...\"*), the response **MUST explicitly include running `gcloud help\n>     \u003Cleaf_command>`** as Step 1 of the plan before proposing flags or\n>     executing commands.\n>\n> 3.  **Non-Transitive Validation**: Parent command group help (e.g. `gcloud\n>     help compute`) is not sufficient for leaf-level syntax validation.\n>     Validation must occur at the specific leaf subcommand level.\n>\n> 4.  **FORBIDDEN Web Search Fallback**: NEVER use `search_web`, web search, or\n>     external documentation search tools for gcloud CLI syntax. `gcloud help\n>     \u003Cleaf_command>` is the **EXCLUSIVE** authorized authority for command\n>     syntax.\n>\n> 5.  **User Flag & Project Preservation**: When proposing intermediate command\n>     steps, **ALWAYS** preserve all user-specified flags (including\n>     `--project=\u003Cproject_id>`) in the proposed response text.\n>\n> 6.  **Mandatory Plan Template**: When generating a plan, the response **MUST**\n>     copy this exact 4-step structure:\n>\n>     -   **Step 1**: Syntax Validation via `gcloud help \u003Cleaf_command>`\n>     -   **Step 2**: Parameter Verification (confirming required and optional\n>         flags, and explicitly checking if the `--dry-run` or `--validate-only`\n>         flag is supported)\n>     -   **Step 3**: Dry-Run Command Proposal (If `--dry-run` or\n>         `--validate-only` is supported, there MUST be a `--dry-run` or\n>         `--validate-only` invocation before the next step.)\n>     -   **Step 4**: Command Proposal & Authorization (If the command is on the\n>         \"Prohibited Operations\" denylist, state that autonomous execution is\n>         forbidden, and the user MUST be explicitly asked for authorization to\n>         proceed. If the command is NOT on the denylist, propose or proceed\n>         with execution, while following *ALL* \"Execution Constraints\" below.)\n\nThis document provides essential guidelines and best practices for AI agents\ninteracting with the Google Cloud SDK (`gcloud` CLI). Following these rules is\ncritical to avoid hallucinated commands, flags, flag values, and positional\nargument syntax, prevent destructive actions, and minimize context window usage.\n\n## Usage Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read and follow the instructions in\n[Usage Attribution](references\u002Fattribution.md). If a more specific product or\ndomain skill (e.g., `cloud-run-basics`, `bigquery-basics`, `gke-basics`) is\nalso loaded or active for the current task, **ALWAYS** use that specific\nskill's `skill:\u003Cname>` attribution tag instead of `skill:gcloud`. For commands\nexecuted directly in the terminal when no product-specific skill applies (never\nin generated scripts, Terraform, or user code), prefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:gcloud)\"`\nand append `agent-skills\u002F1.0 (skill:gcloud)` to `User-Agent` headers.\n\n## Execution Modes\n\nAI agents can interact with Google Cloud resources in two primary ways:\n\n-   **Direct CLI Execution**: Executing `gcloud` commands directly in a local or\n    automated shell environment. See [CLI Usage](references\u002Fcli-usage.md) for\n    installation, authentication flows, and configuration management.\n-   **Model Context Protocol (MCP)**: Invoking structured tools via the Cloud\n    CLI remote MCP server (`run_gcloud_command`). See\n    [MCP Usage](references\u002Fmcp-usage.md) for tool schemas, parameter rules, and\n    server configuration.\n\n## Core Principles\n\n### 1. Explicit Command Validation (Mandatory)\n\n*   **Action**: **ALWAYS** call `gcloud help \u003Ccommand>` for the *exact* command\n    that is intended to be run (e.g., `gcloud help compute instances create`).\n*   **Verify**: Ensure the command, flags, flag values, and positional argument\n    syntax are valid for that specific leaf command before attempting execution\n    or presenting plans. Validation is not transitive from parent groups.\n\n### 2. Data Reduction Strategies (Mandatory)\n\nMinimize the volume of data returned by `gcloud` to save context window space\nand reduce latency. DO NOT execute any `list` command without including at least\none data reduction flag (`--limit`, `--filter`, or `--format`).\n\n*   **Projection**: Use `--format=\"json(key1, key2, ...)\"` to select only the\n    specific fields needed for the task. To understand the advanced projection\n    and formatting syntax, refer to `gcloud topic projections` and `gcloud topic\n    formats`.\n\n*   **Limiting**: Use `--limit=N` to cap the number of resources returned.\n\n*   **Filtering**: Use `--filter` to narrow down results server-side. Prioritize\n    `:` for pattern matching and never quote the right side of the colon. Treat\n    the entire filter flag as a singular string without quoting or escaping\n    characters. To study the filter expression syntax, refer to `gcloud topic\n    filters`.\n\n*   **Schema Discovery**: Unconstrained resource lists can quickly exhaust the\n    context window with redundant data. To prevent this, discover a resource's\n    schema before executing queries. If unsure of the JSON key path for\n    projecting fields (`--format`) or filtering (`--filter`), run the targeted\n    resource's list command (if supported) with a single-item limit:\n\n    ```bash\n    gcloud \u003CGROUP> \u003CRESOURCE> list --limit=1 --format=json\n    ```\n\n    Examine this single instance's JSON structure to safely identify the correct\n    schema keys before requesting full or filtered datasets.\n\n### 3. Execution Constraints\n\n*   **Single Commands**: Execute a single `gcloud` command at a time. No command\n    chaining or sequencing.\n*   **No Shell Operators**: Do not use command substitution (`$(...)`), pipes\n    (`|`), or redirection (`>`, `>>`, `\u003C`). This is to increase command safety\n    and ensure commands are more easily understandable and reviewable by users.\n*   **Non-Interactive Execution (`--quiet` \u002F `-q`)**: Pass the `--quiet` (or\n    `-q`) global flag on all execution commands (e.g., `gcloud pubsub topics\n    delete temp-topic --quiet --project=test-project`). AI agents run in\n    headless, non-interactive environments without a TTY or `stdin` input\n    handler. Without `--quiet`, commands that prompt for user confirmation (such\n    as deleting resources, approving defaults, or selecting unspecified regions)\n    will pause execution indefinitely waiting for input, causing background task\n    timeouts. Including `--quiet` forces non-interactive mode, causing `gcloud`\n    to automatically accept safe default choices or fail immediately with an\n    explicit error if required parameters are missing.\n*   **No Blind Lists**: NEVER execute a `list` command without `--limit`,\n    `--filter`, or `--format`.\n\n### 4. Project and Location Scoping (Critical)\n\nTo ensure commands are deterministic, non-interactive, and target the correct\nenvironment, they must explicitly provide project and location scoping.\n\n*   **Explicit Project Target**: Do not rely on active configuration defaults.\n    Always append `--project=\u003CPROJECT_ID>` to all resource-manipulating and\n    querying commands (unless running pure local config commands). This avoids\n    accidental execution against the wrong project.\n\n*   **Prevent Location Prompts**: Many Google Cloud resources are regional or\n    zonal. If the location flag is omitted (e.g., `--region`, `--zone`, or\n    `--location`), `gcloud` will trigger an interactive prompt to select a\n    zone\u002Fregion. This violates the **No Interactivity** rule. Always provide\n    explicit location flags if the command requires them.\n\n*   **Location Discovery**: If the correct region, zone, or location for a\n    service is not known, run discovery commands first (remembering to limit\n    results if there are many):\n\n    *   **Compute Engine (VMs, Networks)**:\n\n        *   `gcloud compute regions list --project=\u003CPROJECT_ID>`\n        *   `gcloud compute zones list --project=\u003CPROJECT_ID>`\n\n    *   **Other Services (Standard API Style)**: Many GCP services utilize a\n        unified `locations list` command:\n\n        *   `gcloud \u003CGROUP> locations list --project=\u003CPROJECT_ID>`\n        *   *Examples*: `gcloud artifacts locations list`, `gcloud kms locations\n            list`, `gcloud secrets locations list`.\n\n## Safety & Guardrails\n\n> [!CAUTION] **Destructive actions (delete, update, remove) MUST be explicitly\n> authorized by the user.** Never invoke them autonomously unless explicitly\n> instructed to do so in the context of a safe, pre-approved workflow.\n\n### Prohibited Operations (Denylist)\n\nNEVER execute the following commands autonomously. These require explicit\nhuman-in-the-loop authorization:\n\n*   **Any IAM policy, role, or binding modification** (Security): Risk of\n    privilege escalation, administrative lockout, service disruption, or\n    unauthorized data exposure.\n*   **No Proactive API Enabling**: Assume necessary APIs are enabled. To prevent\n    unexpected resource provisioning or billing charges, do not proactively try\n    to enable APIs. User approval is required to enable any API.\n*   **No Proactive `gcloud` CLI Installation** (Host Modification): Never\n    autonomously install the Google Cloud CLI (`gcloud` CLI) or additional\n    `gcloud` CLI components (`gcloud components install`, `gcloud components\n    update`, or system package manager installs of the `gcloud` CLI). If the\n    `gcloud` binary or a required CLI component is missing, you **must** inform\n    the user, ask for explicit user confirmation (e.g., *\"I am ready to install\n    the Google Cloud CLI (`gcloud`). Do you want me to proceed?\"*), and\n    **strictly stop** to wait for the user's positive affirmation before\n    executing any installation commands.\n*   **`gcloud * delete`** (Destructive): Irreversible resource destruction\n    (e.g., project deletion) or data wiping.\n*   **`gcloud billing *`** (Financial): Risk of service disruption or unbounded\n    costs.\n*   **`gcloud organizations *`** (Governance): Org-level changes affect security\n    posture for all users.\n*   **`gcloud kms *`** (Encryption): Risk of permanently locking data.\n*   **`gcloud infra-manager deployments apply`** (Destructive): Autonomous IaC\n    execution can destroy managed resources.\n\n### Execution Guidelines\n\n*   **Dry Run (Mandatory)**: If the `--dry-run` or `--validate-only` flag (or\n    equivalent) is listed in the command help output, ALWAYS include the flag in\n    the proposed command or initial execution step. ALWAYS preview changes with\n    `--dry-run` or `--validate-only` prior to actual execution.\n\n*   **Long Running Operations**: For commands that support it, the `--async`\n    flag is highly recommended for long-running operations to avoid blocking the\n    agentic flow. Note that not every command has an `--async` flag. For\n    commands that return an operation ID (whether via `--async` or by default),\n    operation status must be polled for completion, if needed for the next step.\n\n*   **Non-Interactive Flag (`--quiet`)**: Include `--quiet` (or `-q`) on all\n    proposed or executed commands to guarantee non-interactive execution without\n    waiting for TTY confirmation prompts.\n\n## Structured Workflows\n\n### Discovery Workflow\n\nWhen asked to perform a task on a service that is unfamiliar:\n\n1.  **Invoke Help**: Call `gcloud help \u003CCOMMAND>` on the target leaf command\n    prior to execution.\n2.  **Traverse Command Tree**: Run help on command groups (e.g., `gcloud help\n    compute` or `gcloud help`) to discover available subgroups and commands if\n    the exact command is unknown.\n3.  **Discover Schema**: Run `gcloud \u003CGROUP> \u003CRESOURCE> list --limit=1\n    --format=json` to inspect JSON keys before constructing filters or\n    projections. DO NOT execute unconstrained `list` commands without scoping\n    flags (e.g., `--limit=1`) to prevent context window exhaustion.\n4.  **Enforce Data Reduction**: Include data reduction flags (`--limit`,\n    `--filter`, `--format`) on all command executions.\n\n## Quick Reference \u002F Cheat Sheet\n\nTask               | Command Template\n------------------ | ----------------------------------------------------------\nDiscover Schema    | `gcloud \u003CGROUP> \u003CRESOURCE> list --limit=1 --format=json`\nFiltered List      | `gcloud \u003CGROUP> \u003CRESOURCE> list --filter=\"status:RUNNING\"`\nSpecific Columns   | `gcloud \u003CGROUP> \u003CRESOURCE> list --format=\"json(name, id)\"`\nLearn Filters      | `gcloud topic filters`\nLearn Formats      | `gcloud topic formats`\nLearn Projections  | `gcloud topic projections`\nAsynchronous Op    | `gcloud \u003CCOMMAND> --async`\nCheck Operation    | `gcloud \u003CGROUP> operations describe \u003COPERATION_ID>`\nCommon commands    | `gcloud cheat-sheet`\nList Regions (GCE) | `gcloud compute regions list --project=\u003CPROJECT_ID>`\nList Zones (GCE)   | `gcloud compute zones list --project=\u003CPROJECT_ID>`\nList Locations     | `gcloud \u003CGROUP> locations list --project=\u003CPROJECT_ID>`\n\nRefer to the\n[gcloud CLI Scripting Guide](https:\u002F\u002Fdocs.cloud.google.com\u002Fsdk\u002Fdocs\u002Fscripting-gcloud.md.txt)\nfor guidance on using the gcloud CLI in automation.\n\n## Reference Directory\n\n-   [CLI Usage](references\u002Fcli-usage.md): Platform installation, authentication\n    methods (interactive, headless, ADC, service account keys, impersonation),\n    and local configuration management.\n\n-   [MCP Usage](references\u002Fmcp-usage.md): Using the Cloud CLI remote MCP\n    server (`run_gcloud_command`), project parameter scoping, input files, and\n    execution guidelines.\n\n-   [Usage Attribution](references\u002Fattribution.md): Standardized usage\n    attribution tags and multi-skill precedence rules for `gcloud` CLI, REST\n    API, and MCP requests.\n",{"name":5,"metadata":54,"description":7},{"version":55,"category":56},"1.0.4","CloudInfrastructureAndServices","main","4c6800d20130b5a3233e414609f1241013cec8cc","skills\u002Fcloud\u002Fgcloud",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":9,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add google\u002Fskills --skill gcloud",{"tool":72,"command":73},"bunx","bunx skills add google\u002Fskills --skill gcloud",{"tool":75,"command":76},"pnpm","pnpm dlx skills add google\u002Fskills --skill gcloud","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgcloud\u002FSKILL.md",true,[80,86,90],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fattribution.md","REFERENCE","参考文档",2425,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgcloud\u002Freferences\u002Fattribution.md",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fcli-usage.md",4880,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgcloud\u002Freferences\u002Fcli-usage.md",{"path":91,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fmcp-usage.md",7931,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgcloud\u002Freferences\u002Fmcp-usage.md",[95,103,110,117,124,131],{"skillNo":96,"name":97,"nameZh":17,"description":98,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":102},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":104,"name":105,"nameZh":17,"description":106,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":102},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":17,"description":113,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":102},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":17,"description":120,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":102},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":17,"description":127,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":102},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":17,"description":134,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":102},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]