agentsclimarketplace

Gcp setup

Skill gemini-cli-extensions/sre/skills/gcp-setup

πŸ‰ Initial Google Cloud environment verification and authentication setup. Use when starting a new session to ensure correct identities across gcloud, ADC, and kubectl.From its SKILL.md

Install
npx -y skills add gemini-cli-extensions/sre --skill gcp-setup

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.7 KB, as published. Nobody here has run it

GCP Environment Setup

Use this skill to verify and harmonize your GCP identities at the start of an investigation or session.

Core Workflow

  1. Identity Verification: Run the bundled gcp-whoami.sh script to check all three major identities (gcloud, ADC, and kubectl).
  2. Harmonization: If identities mismatch, offer to fix them.
    • To fix gcloud: gcloud auth login [ACCOUNT]
    • To fix ADC: gcloud auth application-default login
    • To fix GKE/kubectl: gcloud container clusters get-credentials [CLUSTER] --region [REGION] --project [PROJECT]
  3. Next Step: Architecture Discovery(Optional): Once identities are verified and correct, check if the ./discover/{gcp-project|azure-subscription}/{PROJECT_ID_OR_NAME} directory exists. If it is missing or empty, and user asked 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.

Bundled Scripts

  • scripts/gcp-whoami.sh: Displays current identities for gcloud, ADC, and kubectl.

Safe Mode Support

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.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.