Skip to content
Back to skills

Cli Gcloud

ASecurity

Drive Google Cloud through the connected gcloud CLI (the cli_gcloud tool) — billing/costs, projects, compute, storage, IAM — instead of opening the Cloud Console in a browser via Computer-Use (which stalls on the login page). Read-first; treat resource-changing commands as consequential.

  • 161 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 10, 2026
ai-agentsgobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 10, 2026

npx -y skills add Dodaios/Dodaios --skill cli-gcloud --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli Gcloud?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cli Gcloud
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dodaios-cli-gcloud/badge)](https://www.skillsdirectory.com/skills/dodaios-cli-gcloud)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
schema_version: "1"
name: cli-gcloud
version: "1.0.0"
description: |
  Drive Google Cloud through the connected gcloud CLI (the cli_gcloud tool) —
  billing/costs, projects, compute, storage, IAM — instead of opening the Cloud
  Console in a browser via Computer-Use (which stalls on the login page).
  Read-first; treat resource-changing commands as consequential.
when_to_use: >-
  Use when the user asks about their Google Cloud — billing/costs, projects,
  VMs, buckets, IAM roles — and gcloud is connected. Reach for the cli_gcloud
  tool, never the browser console.
category: meta
tags: [gcloud, google-cloud, cli, billing, google cloud, cloud costs, cloud billing, kostet, kosten, cuesta, coste, costos] # i18n-allow: billing search vocabulary
author: builtin
license: Apache-2.0
requires_tools: [cli_gcloud]
risk_policy:
  default_tier: ask
---

# Google Cloud via gcloud (not the browser)

When gcloud is connected, drive Google Cloud through the **`cli_gcloud`** tool —
headless, no browser login. This is the recipe for the common read tasks; it
does NOT replace the risk gate (resource-changing commands still confirm).

## Rules

- **Read-first.** List/describe before changing anything. Treat any command that
  creates, deletes, or modifies a resource as consequential — confirm first.
- **Non-interactive.** gcloud runs with prompts disabled; never wait on a `(y/N)`.
- **Honest on failure.** If a command exits non-zero (e.g. "billing API not
  enabled", "permission denied"), say exactly that — never invent a number.

## Costs / billing

```bash
gcloud billing accounts list --format=json
gcloud billing projects list --billing-account=<ACCOUNT_ID> --format=json
```

Billing detail needs the Cloud Billing API enabled and the right IAM role. If
either is missing the command fails — report the failure honestly, do not guess.

## Projects, compute, storage

```bash
gcloud projects list --format=json
gcloud compute instances list --format=json
gcloud storage buckets list --format=json
```

## IAM

```bash
gcloud projects get-iam-policy <PROJECT_ID> --format=json
```

Summarize the result for the user (account/project, amount + currency + period
for billing); omit raw ids unless asked.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.