Back to skills
SKILL.md
Gcloud
ASecurityOperate gcloud, Cloud Run, BigQuery (bq), Firebase; search Google dev docs, google/skills.
- 14 stars
- 0 votes
- 0 copies
- 0 views
- Added September 23, 2026
Works with
Security analysis
100/100npx -y skills add fmind/dot --skill gcloud --agent claude-codeAre you the author of Gcloud?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/fmind-gcloud)---
name: gcloud
description: "Operate gcloud, Cloud Run, BigQuery (bq), Firebase; search Google dev docs, google/skills."
license: MIT
metadata:
kind: connector
author: Médéric HURIER (Fmind)
source: github.com/fmind/dot/tree/main/skills/gcloud
created: "2026-08-30"
updated: "2026-12-01"
---
# Google Cloud CLI
Operate Google Cloud accounts, projects, IAM, APIs, billing, and logs with `gcloud` and project-pinned `firebase` (`firebase-tools` in project `mise.toml`, or `npx --yes firebase-tools@<version>`).
## Defaults
Google Cloud is the default cloud for Fmind work (existing project choices win). Resolve project and region from explicit config or ask; prefer Cloud Run over GKE unless Kubernetes is explicitly adopted.
## Workflow
1. **Verify active identity and scope** (never switch configurations silently to force a command through):
```bash
gcloud config configurations list --format='table(name,is_active)'
gcloud config configurations describe <configuration> --format=json
gcloud projects describe <project-id> --format='json(projectId,projectNumber,lifecycleState)'
```
1. **Pin consequential calls**: pass `--configuration`, `--account`, `--project`, and `--billing-project` (plus `--impersonate-service-account` when approved).
1. **Start read-only and bounded**: combine `--filter`, `--limit`, and field-projected `--format`, scoping log queries by time and resource first (retain full IAM/config payloads when auditing completeness).
1. **Authorize mutations**: API enablement, IAM, billing, deletions, and production edits require explicit approval.
## Gotchas
- **`--quiet` only suppresses prompts**: never treats an unapproved mutation as safe.
- **Check principal overrides**: `CLOUDSDK_AUTH_IMPERSONATE_SERVICE_ACCOUNT`, `CLOUDSDK_AUTH_ACCESS_TOKEN_FILE`, and `--impersonate-service-account` replace the active account.
- **Firebase precedence & dry-run hazards**: `firebase` checks cached credentials (`~/.config/configstore/firebase-tools.json`) _before_ ADC; always pass `--non-interactive --project <id> --json`. Treat `firebase deploy --dry-run` carefully (it may still enable required GCP APIs), scope `--only <targets>` (`-f` deletes unlisted Cloud Functions), and delete any `firebase-debug.log` generated by `--debug`.
- **Failures are findings**: report missing principals, denied permissions, or quota errors directly—never switch configs, widen IAM, mint keys, or shift billing projects unasked.
## Task guides
<!-- guides:start -->
- [bigquery](references/bigquery.md): Run FinOps-bounded BigQuery dry runs, parameterized SQL, partition pruning, and Polars Storage Read exports.
- [cloud-run](references/cloud-run/GUIDE.md): Deploy private Python services to Cloud Run via Artifact Registry and OIDC.
- [google-developer](references/google-developer.md): Find Google developer docs and vendor skills (google/skills) across Cloud, Ads, Analytics, and Identity.
<!-- guides:end -->
## Official Skills
Upstream: `google/skills` (`skills/cloud`) via [google-developer](references/google-developer.md). Preview—never install—its colliding `gcloud` guardrail skill ([name collisions](../agent-harnesses/references/vendor-skills.md#name-collisions)).
## Documentation
- [gcloud reference](https://docs.cloud.google.com/sdk/gcloud/reference) · [gcloud auth](https://docs.cloud.google.com/sdk/docs/authenticate) · [Firebase CLI](https://firebase.google.com/docs/cli) · [release notes](https://docs.cloud.google.com/sdk/docs/release-notes)
- Companion skills: [infra-as-code](../infra-as-code/SKILL.md) (provisioned infrastructure), [finops](../finops/SKILL.md) (budgets and unit economics).
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.