Agent skill

Gcloud

by Kilo-Org in Kilo-Org/kilo-marketplace

Interacts with Google Cloud services using the gcloud CLI safely and efficiently.

Apache-2.0Auto-check passedBackend & APIs

Install Gcloud

skills CLI
$ npx skills add Kilo-Org/kilo-marketplace --skill gcloud -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Kilo-Org/kilo-marketplace gcloud --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Kilo-Org/kilo-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/gcloud .claude/skills/gcloud && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gcloud
GitHub stars
189
Token cost
~2.9k tokens
SKILL.md length
1,324 words
Files
2
Skills in repo
87
Repo updated
First seen
Licence
Apache-2.0

At a glance

Interacts with Google Cloud services using the gcloud CLI safely and efficiently.

  • Works in 6 steps: Installation → Authorization → Explicit Command Validation (Mandatory) → …
  • Managing cloud resources
  • SKILL.md covers Getting Started, Core Principles, Safety & Guardrails and Structured Workflows, plus 1 more section
  • Calls gcloud

What it does

Gcloud is an agent skill from Kilo-Org/kilo-marketplace. Interacts with Google Cloud services using the gcloud CLI safely and efficiently. Covers command validation, data reduction, safety guardrails with a denylist, and workflows for discovery and investigation. You MUST read this skill before invoking any gcloud command. Use when managing cloud resources, querying configurations, or troubleshooting issues via gcloud. Don't use when writing or debugging Google Cloud client library code or raw REST/gRPC API interactions.

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file.

It sits in Backend & APIs, covering gRPC and Protobuf and LLM guardrails. It works with Google Cloud and gRPC. The repository describes itself as: Kilo Marketplace - A curated collection of Skills, MCP Servers, and Modes for enhancing AI agent capabilities across the Kilo ecosystem—including Kilo Code (VS Code extension)… The licence is Apache-2.0.

When your agent uses it

  • Managing cloud resources
  • Querying configurations
  • Troubleshooting issues via gcloud
  • Debugging Google Cloud client library code

Example prompts

  • “Use the gcloud skill to interact with Google Cloud services using the gcloud CLI safely and efficiently”
  • “/gcloud”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Installation
  2. Authorization
  3. Explicit Command Validation (Mandatory)
  4. Data Reduction Strategies
  5. Execution Constraints
  6. Project and Location Scoping (Critical)

What it can do on your machine

Read from SKILL.md and the folder at commit ff51758. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gcloud

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.cloud.google.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gcloud loads about 2.9k tokens when it runs. Until then it costs about 119 tokens; SKILL.md has 1,324 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~119
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Kilo-Org/kilo-marketplace at commit ff51758, republished under its Apache-2.0 licence (© Kilo-Org). 1,324 words, ~2,869 tokens.

Download SKILL.mdSave it as .claude/skills/gcloud/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
gcloud
description
Interacts with Google Cloud services using the gcloud CLI safely and efficiently. Covers command validation, data reduction, safety guardrails with a denylist, and workflows for discovery and investigation. You MUST read this skill before invoking any gcloud command. Use when managing cloud resources, querying configurations, or troubleshooting issues via gcloud. Don't use when writing or debugging Google Cloud client library code or raw REST/gRPC API interactions.
metadata.category
development

gcloud CLI Skill for AI Agents

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.

Getting Started

1. Installation

If the gcloud executable is missing, refer to the official Google Cloud CLI Installation Guide to install it on your platform (Linux, macOS, Windows, etc.).

2. Authorization

Authenticate the CLI with Google Cloud. Choose the flow that matches your running environment:

  • User Account (Interactive): Run gcloud auth login. Follow the browser prompts to sign in.
  • User Account (Headless Flow): If operating on a terminal without a web browser (e.g. containers, remote SSH), append the --no-browser flag: gcloud auth login --no-browser. Copy the URL, sign in on another machine, and return the authentication code.
  • Application Default Credentials (ADC): To authenticate code calls from local applications or SDK libraries, set up ADC via gcloud auth application-default login (append --no-browser for headless environments).
  • Service Account (Best for Detached/Headless Automation): Authenticate directly using a JSON key file. Ideal for fully automated, background tasks and pipelines: gcloud auth activate-service-account --key-file=path/to/key.json. Note that some organizations may restrict access to JSON key files for security reasons.
  • Service Account Impersonation (Preferred for Local Pair-Programming Agents): Leverage the human developer's existing user credentials to assume a service account identity. Best for local development assistants to avoid insecure private keys on human workstations: gcloud config set auth/impersonate_service_account SERVICE_ACCT_EMAIL

Separation of Privilege (Critical): Both service account approaches ensure the agent's permissions remain strictly distinct from the human user's wide access limits (enforcing least privilege), and ensure actions are properly audited under the agent's focused identity. (Impersonation requires roles/iam.serviceAccountTokenCreator).

For more detailed strategies and authentication types (such as Workload Identity Federation), see Authorizing the gcloud CLI.

Core Principles

1. Explicit Command Validation (Mandatory)

Your internal knowledge of gcloud may be stale or prone to hallucination (e.g., hallucinating commands, flags, flag values, or positional argument syntax). You are FORBIDDEN from executing commands until you have validated the exact syntax at the leaf level.

  • Action: Always call gcloud help <command> for the exact command you intend to 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. Validation is not transitive from parent groups.
2. Data Reduction Strategies

To save context window space and reduce latency, always minimize the volume of data returned by gcloud.

  • Projection: Use --format=json(key1, key2, ...) to select only the specific fields needed for your 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 your context window with redundant data. To prevent this, discover a resource's schema before executing queries. If you are unsure of the JSON key path for projecting fields (--format) or filtering (--filter), run the targeted resource's list command (if supported) with a single-item limit:

    bash
    gcloud <GROUP> <RESOURCE> list --limit=1 --format=json

    Examine this single instance's JSON structure to safely identify the correct schema keys before requesting full or filtered datasets.

3. Execution Constraints
  • Single Commands: Execute a single gcloud command at a time. No command chaining or sequencing.
  • No Shell Operators: Do not use command substitution ($(...)), pipes (|), or redirection (>, >>, <). This is to increase command safety and ensure commands are more easily understandable and reviewable by users.
  • No Interactivity: Do not run interactive commands or commands requiring a TTY (e.g., gcloud interactive). You must enforce non-interactive mode by appending --quiet (or -q) to your commands. This ensures that defaults are used or errors are raised if input is required.
4. Project and Location Scoping (Critical)

To ensure commands are deterministic, non-interactive, and target the correct environment, you must explicitly manage project and location scoping.

  • Explicit Project Target: Do not rely on active configuration defaults. Always append --project=<PROJECT_ID> to all resource-manipulating and querying commands (unless running pure local config commands). This avoids accidental execution against the wrong project.

  • Prevent Location Prompts: Many Google Cloud resources are regional or zonal. If you omit the location flag (e.g., --region, --zone, or --location), gcloud will trigger an interactive prompt to select a zone/region. This violates the No Interactivity rule. Always provide explicit location flags if the command requires them.

  • Location Discovery: If you do not know the correct region, zone, or location for a service, run discovery commands first (remembering to limit results if there are many):

    • Compute Engine (VMs, Networks):

      • gcloud compute regions list --project=<PROJECT_ID>
      • gcloud compute zones list --project=<PROJECT_ID>
    • Other Services (Standard API Style): Many GCP services utilize a unified locations list command:

      • gcloud <GROUP> locations list --project=<PROJECT_ID>
      • Examples: gcloud artifacts locations list, gcloud kms locations list, gcloud secrets locations list.
Show full SKILL.md (469 more words)Show less

Safety & Guardrails

[!CAUTION] Destructive actions (delete, update, remove) MUST be explicitly authorized by the user. Never invoke them autonomously unless explicitly instructed to do so in the context of a safe, pre-approved workflow.

Prohibited Operations (Denylist)

You are strictly prohibited from executing the following commands autonomously. These require explicit human-in-the-loop authorization:

  • Any IAM policy, role, or binding modification (Security): Risk of privilege escalation, administrative lockout, service disruption, or unauthorized data exposure.
  • No Proactive API Enabling: Assume necessary APIs are enabled. To prevent unexpected resource provisioning or billing charges, do not proactively try to enable APIs. User approval is required to enable any API.
  • gcloud * delete (Destructive): Irreversible resource destruction (e.g., project deletion) or data wiping.
  • gcloud billing * (Financial): Risk of service disruption or unbounded costs.
  • gcloud organizations * (Governance): Org-level changes affect security posture for all users.
  • gcloud kms * (Encryption): Risk of permanently locking data.
  • gcloud infra-manager deployments apply (Destructive): Autonomous IaC execution can destroy managed resources.
Execution Guidelines
  • Dry Run (Mandatory): You MUST invoke a command with --dry-run (or equivalent) first if it exists, before executing the actual command, to preview changes.

  • Long Running Operations: For commands that support it, the --async flag is highly recommended for long-running operations to avoid blocking the agentic flow. Note that not every command has an --async flag. For commands that return an operation ID (whether via --async or by default), you are responsible for polling for completion if the operation status is needed for the next step.

Structured Workflows

Discovery Workflow

When asked to perform a task on a service you are not familiar with:

  1. You MUST invoke help on a command (e.g., gcloud help <COMMAND>) before invoking it.
  2. If you do not know the exact command, traverse the command tree by invoking help on a command group (e.g., gcloud help compute) to discover available subcommands and groups.
  3. Schema Discovery: If you need to filter or project fields from a list command, but do not know the exact JSON keys, first run gcloud <GROUP> <RESOURCE> list --limit=1 --format=json to safely discover the schema. Never run a raw list command without scoping constraints (like --limit=1), as unconstrained results will pollute and exhaust your context window.
  4. Execute with data reduction flags.

Quick Reference / Cheat Sheet

TaskCommand Template
Discover Schemagcloud <GROUP> <RESOURCE> list --limit=1 --format=json
Filtered Listgcloud <GROUP> <RESOURCE> list --filter="status:RUNNING"
Specific Columnsgcloud <GROUP> <RESOURCE> list --format="json(name, id)"
Learn Filtersgcloud topic filters
Learn Formatsgcloud topic formats
Learn Projectionsgcloud topic projections
Asynchronous Opgcloud <COMMAND> --async
Check Operationgcloud operations describe <OPERATION_ID>
Common commandsgcloud cheat-sheet
List Regions (GCE)gcloud compute regions list --project=<PROJECT_ID>
List Zones (GCE)gcloud compute zones list --project=<PROJECT_ID>
List Locationsgcloud <GROUP> locations list --project=<PROJECT_ID>

Refer to the gcloud CLI Scripting Guide for guidance on using the gcloud CLI in automation.

© Kilo-Org, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/gcloud of Kilo-Org/kilo-marketplace.

  • SKILL.md
  • LICENSE

Open the folder on GitHubat commit ff51758

Compare with similar skills

Gcloud next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gcloud compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gcloud this skillKilo-Org/kilo-marketplace189—~2.9kAutomated safety check: PassApache-2.0
Gcloudgoogle/skills21k—~3.4kAutomated safety check: PassApache-2.0
Golang Proantoniopaya22/go-rest-template1723 repos~1.2kAutomated safety check: PassMIT
Dev Rulesrust-dd/tako162—~810Automated safety check: PassMIT
Release WorkflowGoldziher/spikard123—~909Automated safety check: PassMIT
Using Dotnetnovotnyllc/dotnet-artisan233—~2.3kAutomated safety check: WarnMIT

Similar skills

  • Gcloud

    google/skills

    Official

    Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.

    21k GitHub stars~3.4k tokensUpdated today
    Backend & APIsAuto-check passed
  • Golang Pro

    antoniopaya22/go-rest-template

    Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with…

    172 GitHub starsUsed in 3 repos~1.2k tokens
    Backend & APIsAuto-check passed
  • Dev Rules

    rust-dd/tako

    General coding-style rules to apply to every project. An agent skill from rust-dd/tako.

    162 GitHub stars~810 tokensUpdated 6 days ago
    Backend & APIsAuto-check passed
  • Release Workflow

    Goldziher/spikard

    Release/publish the spikard Rust core crate and CLI end-to-end.

    123 GitHub stars~909 tokensUpdated 4 days ago
    Backend & APIsAuto-check passed
  • Using Dotnet

    novotnyllc/dotnet-artisan

    Detects .NET intent for any C, ASP.NET Core, EF Core, Blazor, MAUI, Uno Platform, WPF, WinUI, SignalR, gRPC, xUnit, NuGet, or MSBuild request from prompt keywords and repository signals (.sln…

    233 GitHub stars~2.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check: warnings
  • Profile Training

    marin-community/marin

    Profile a named JAX, Levanter, or Marin run, or investigate a measured startup, compilation, initialization, or throughput bottleneck.

    3.9k GitHub stars~2.5k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from Kilo-Org/kilo-marketplace

All 87 skills in this repo
  • AzureML Project Scaffolding

    Kilo-Org/kilo-marketplace

    Sets up and maintains AzureML-ready Python projects as uv workspaces with devcontainers, a Makefile and job YAML, so local runs match cloud jobs and experiments stay reproducible.

    189 GitHub stars~3.1k tokensUpdated 9 days ago
    Auto-check: notes
  • Jupyter Notebook Builder

    Kilo-Org/kilo-marketplace

    Creates, inspects, edits and runs Jupyter notebooks, scaffolding experiment or tutorial notebooks from templates and preferring a Jupyter MCP server over raw JSON edits.

    189 GitHub stars~1.3k tokensUpdated 9 days ago
    Auto-check passed
  • Tableau Dashboard Creator

    Kilo-Org/kilo-marketplace

    Takes a plain-language dashboard request through brand setup, data exploration, planning, an interactive HTML mock and a Tableau implementation spec.

    189 GitHub stars~3.8k tokensUpdated 9 days ago
    Auto-check: notes
  • Elasticsearch File Ingest

    Kilo-Org/kilo-marketplace

    Ingest and transform data files (CSV/JSON/Parquet/Arrow IPC) into Elasticsearch with stream processing and custom transforms.

    189 GitHub stars~2.8k tokensUpdated 9 days ago
    Auto-check passed
  • Nifi Flow Layout

    Kilo-Org/kilo-marketplace

    A skill your agent uses when arranging Apache NiFi processors, process groups, ports, comments, numbering, crossing connections, dense fan-in/fan-out, or reusable readable canvas layouts.

    189 GitHub stars~1.5k tokensUpdated 9 days ago
    Auto-check passed
  • Splunk Ingest Processor Setup

    Kilo-Org/kilo-marketplace

    Render Cisco Data Fabric ingest-time routing workflows and Splunk Cloud Platform Ingest Processor setup plans with SPL2 pipelines, source types, destinations, lifecycle handoffs, queue and…

    189 GitHub stars~1.2k tokensUpdated 9 days ago
    Auto-check passed

Questions about Gcloud

What does Gcloud do?

Interacts with Google Cloud services using the gcloud CLI safely and efficiently. Gcloud is an agent skill from Kilo-Org/kilo-marketplace. Interacts with Google Cloud services using the gcloud CLI safely and efficiently.

When should I use Gcloud?

Gcloud fits situations like: managing cloud resources; querying configurations; troubleshooting issues via gcloud; debugging Google Cloud client library code.

How do I install Gcloud in Claude Code?

Run `npx skills add Kilo-Org/kilo-marketplace --skill gcloud -a claude-code`. Or copy the skill folder (skills/gcloud in Kilo-Org/kilo-marketplace) into .claude/skills/gcloud in your project. Claude Code loads it when a task matches its description.

How do I install Gcloud in Codex?

Run `npx skills add Kilo-Org/kilo-marketplace --skill gcloud -a codex`. Or copy the skill folder (skills/gcloud in Kilo-Org/kilo-marketplace) into .agents/skills/gcloud in your project. Codex loads it when a task matches its description.

Can I use Gcloud in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Kilo-Org/kilo-marketplace --skill gcloud -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gcloud, .gemini/skills/gcloud, .github/skills/gcloud and .opencode/skills/gcloud in your project.

What does Gcloud need to run?

Going by SKILL.md and its folder, Gcloud needs the command-line tools its instructions call (gcloud).

Does Gcloud access the network?

SKILL.md names 1 domain. As links in the text: docs.cloud.google.com. This is read from the text; nothing was executed.

Is Gcloud safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gcloud use?

Gcloud is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gcloud use?

About 2.9k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gcloud?

Skills that share tags, products or a category with Gcloud: Gcloud (google/skills, 21k stars), Golang Pro (antoniopaya22/go-rest-template, 172 stars), Dev Rules (rust-dd/tako, 162 stars) and Release Workflow (Goldziher/spikard, 123 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gcloud?

Kilo-Org (a GitHub organization) maintains it in Kilo-Org/kilo-marketplace, which has 189 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on September 28, 2026.

Source: Kilo-Org/kilo-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.