Skip to main content

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.

来源信息

仓库
gemini-cli-extensions/sre
最近来源活动
2026年6月30日 13:23
检测到的 SKILL.md 语言
英语
星标
84
分支
9

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
gcp-setup
description
🐉 Initial Google Cloud environment verification and authentication setup. Use when starting a new session to ensure correct identities across gcloud, ADC, and kubectl.
metadata
{"author":"Google","version":"0.0.2"}
# 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.
在 GitHub 查看