From sre-extension
Verifies and harmonizes Google Cloud authentication across gcloud, Application Default Credentials, and kubectl at session start.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sre-extension:gcp-setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to verify and harmonize your GCP identities at the start of an investigation or session.
Use this skill to verify and harmonize your GCP identities at the start of an investigation or session.
gcp-whoami.sh script to check all three major identities (gcloud, ADC, and kubectl).gcloud: gcloud auth login [ACCOUNT]gcloud auth application-default logingcloud container clusters get-credentials [CLUSTER] --region [REGION] --project [PROJECT]./discover/{gcp-project|azure-subscription}/{PROJECT_ID_OR_NAME} directory exists. If it is missing or empty, you MUST immediately transition to the gcp-architecture-discovery skill and explicitly instruct it to execute a full baseline discovery to sweep and map the entire infrastructure state.scripts/gcp-whoami.sh: Displays current identities for gcloud, ADC, and kubectl.If SAFE_MODE="enabled" is found in the environment or .env file, you MUST activate the safe-sre-investigator skill immediately after verifying the initial setup. This ensures all subsequent operations use read-only/non-mutating service accounts.
Note that the SAFE_MODE might impact kubectl authorization via RBAC.
npx claudepluginhub gemini-cli-extensions/sre --plugin sre-extensionSets up read-only Service Accounts for GCP and Kubernetes investigations, provides safe_gcloud and safe_kubectl wrappers, and includes risk assessments for suggested commands.
Diagnoses and resolves Google Cloud authentication errors for gcloud, bq, dataform, and Python libraries. Verifies credentials and guides user through login.
Fixes GCloud setup errors like ADC not found, auth issues, unset projects, and permission denied. Guides MCP configuration with CLI commands.