gcloud
Use gcloud for Google Cloud projects, IAM, billing, APIs, and logs.
Install
npx skills add https://github.com/fmind/dot/tree/main/skills/gcloud
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install fmind-dot@llmmart
git clone https://github.com/fmind/dot.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole fmind/dot collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Google Cloud CLI
Operate Google Cloud accounts, projects, IAM, APIs, billing, and logs with gcloud and firebase.
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
Verify active identity and scope (never switch configurations silently to force a command through):
gcloud config configurations list --format='table(name,is_active)' gcloud config configurations describe <configuration> --format=json gcloud config get auth/impersonate_service_account --configuration <configuration> gcloud config get auth/access_token_file --configuration <configuration> gcloud projects describe <project-id> --format='json(projectId,projectNumber,lifecycleState)'Pin consequential calls: pass
--configuration,--account,--project, and--billing-project(plus--impersonate-service-accountwhen approved).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).Authorize mutations: API enablement, IAM, billing, deletions, and production edits require explicit approval.
Gotchas
--quietonly 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-accountreplace the active account. - Firebase reuses ADC: skip
firebase login, pass--project <id>and--json, and gatefirebase deploylike any mutation. - Linked BigQuery datasets (
type = "LINKED") inheritprojectReaders:google_logging_linked_datasetcarriesspecialGroup: projectReadersand rejects dataset-level IAM (HTTP 400); projectroles/bigquery.dataViewerorroles/viewergrants BigQuery reads regardless ofroles/logging.viewAccessor. - 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
- google-developer: Find Google developer docs and vendor skills (google/skills) across Cloud, Ads, Analytics, and Identity.
Official Skills
Upstream: google/skills (skills/cloud) via google-developer. Preview—never install—its colliding gcloud guardrail skill (name collisions).
Documentation
- gcloud reference · Authenticate for the gcloud CLI
- Releases: gcloud release notes
- Companion skills: cloud-run (deployment), infra-as-code (provisioned infrastructure).
Files (dot)
-
references
-
google-developer.md 2.7 KB
Loading…
-
-
SKILL.md 3.4 KB
--- name: gcloud description: "Operate Google Cloud and Firebase CLIs; search Google developer docs and 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-11-11" --- # Google Cloud CLI Operate Google Cloud accounts, projects, IAM, APIs, billing, and logs with `gcloud` and `firebase`. ## 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 config get auth/impersonate_service_account --configuration <configuration> gcloud config get auth/access_token_file --configuration <configuration> 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 reuses ADC**: skip `firebase login`, pass `--project <id>` and `--json`, and gate `firebase deploy` like any mutation. - **Linked BigQuery datasets (`type = "LINKED"`) inherit `projectReaders`**: `google_logging_linked_dataset` carries `specialGroup: projectReaders` and rejects dataset-level IAM (`HTTP 400`); project `roles/bigquery.dataViewer` or `roles/viewer` grants BigQuery reads regardless of `roles/logging.viewAccessor`. - **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 --> - [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-project/references/vendor-skills.md#name-collisions)). ## Documentation - [gcloud reference](https://docs.cloud.google.com/sdk/gcloud/reference) · [Authenticate for the gcloud CLI](https://docs.cloud.google.com/sdk/docs/authenticate) - Releases: [gcloud release notes](https://docs.cloud.google.com/sdk/docs/release-notes) - Companion skills: [cloud-run](../cloud-run/SKILL.md) (deployment), [infra-as-code](../infra-as-code/SKILL.md) (provisioned infrastructure).
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.