Skills Prompts Hues

Popular categories

Agent skill · Google Agent Skills

/gcloud Run gcloud commands safely with checked syntax and small output

The gcloud skill treats the agent's memory of gcloud flags as unreliable. Before proposing or running a command it reads help for that exact subcommand, checks for a dry-run option, and keeps output small with limits, filters and field projections. Risky categories such as deletes, IAM changes, billing, organisation settings and KMS are never run without your explicit go-ahead.

Works with

  • Any agent supported by the skills CLI
  • Claude Code
  • Codex
  • Antigravity CLI

Used forCloud platforms

When to use it

  • You want the agent to inspect or change Google Cloud resources from the terminal.
  • You keep getting gcloud commands with flags that do not exist.
  • Large list commands are filling the agent's context window.

How it works

  1. 1
    Validate the leaf command

    The agent runs gcloud help on the specific subcommand it intends to use, since help for a parent group does not count.

  2. 2
    Check for a dry run

    It confirms required flags and, when a dry-run or validate-only flag exists, previews the change with it first.

  3. 3
    Scope every call

    Each command names the project and region or zone explicitly and adds --quiet so it never stalls on a prompt.

  4. 4
    Keep output small

    List calls always carry a limit, filter or format projection, and unknown schemas are read from a single returned item.

  5. 5
    Ask before risky actions

    Commands on the denylist, including enabling APIs or installing the CLI, are proposed for your approval instead of run.

What it steers the agent away from

  • Hallucinated flags and positional arguments.
  • Commands that hit the wrong project because they relied on the active configuration.
  • Unbounded list output and chained shell pipelines that are hard to review.

Install this skill

It installs with the Google Agent Skills pack.

Any agent supported by the skills CLIPrompts you to choose skills, target agents and project or global scope; the update command can also remove skills that were dropped.
npx skills add google/skills
npx skills update
Claude Code (plugins)Plugins bundle skills with the matching Google MCP servers.
claude plugin marketplace add google/skills
claude plugin install <plugin>@google-plugins
Codex (plugins)After adding the marketplace, install plugins from the /plugins browser.
codex plugin marketplace add google/skills
Antigravity CLIPoint the command at the path of the plugin you want inside the repository.
agy plugin install https://github.com/google/skills/<plugin-path>

Commands come from the author’s README; check it for changes before you run them.

Questions

Can it use the gcloud MCP server instead of a shell?

Yes. The skill covers both direct CLI execution and the Cloud CLI remote MCP server's run_gcloud_command tool.

Why can't it pipe or chain commands?

The skill limits the agent to one gcloud command at a time without pipes, substitution or redirection so each step stays easy for you to review.

More guides from Google Agent Skills

Also in this pack

All 30 skills →

Summary by trendhub. The skill itself lives in google/skills/plugins/cloud/google-cloud-developer/skills/gcloud by Google (Apache-2.0); read the full, current text there.