/sre:safe-sre-investigatorfrom sre
Sets up read-only GCP and Kubernetes service accounts for safe investigations, wrapping gcloud/kubectl with least-privilege scripts and providing risk assessments for suggested commands.
Ships in sre. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill helps set up and use dedicated read-only Service Accounts for investigating GCP and Kubernetes resources.
It provides wrapper scripts safe_gcloud and safe_kubectl to ensure commands are run with these limited-privilege accounts.
When suggesting commands, it includes a risk assessment.
safe_gcloud script.safe_kubectl script for a specific cluster.gcloud or kubectl commands with risk assessments.safe_gcloud)When first using this skill for a project, or if the user asks for setup, guide them through the one-time setup process for GCP access.
Action: Ask the user for the Project ID.
Script: Run the setup script:
bash ./scripts/setup_safe_sre_investigator.sh PROJECT_ID
~/bin/safe_gcloud.references/iam_roles.md.safe_kubectl)This setup must be run for EACH Kubernetes cluster you want to investigate.
Action: Ask the user for the Cluster Name and Cluster Location (Zone or Region).
Script: Run the setup script:
bash ./scripts/setup_safe_kubectl.sh CLUSTER_NAME CLUSTER_LOCATION
~/.kube/safe-investigator-configs/.~/bin/safe_kubectl.references/k8s_readonly_role.yaml.When the user asks for a command:
safe_gcloud PROJECT_ID <gcloud commands>.safe_kubectl CLUSTER_NAME -- <kubectl commands>.references/risk_assessment.md.gcloud or kubectl command and warn the user to run it with their own credentials, noting the risks.Example safe_gcloud:
# 🎬 Check GKE cluster status
# ⚠️ Risk: ⚪ NONE: This is a read-only operation.
safe_gcloud my-project container clusters list
Example safe_kubectl:
# 🎬 List pods in the default namespace
# ⚠️ Risk: ⚪ NONE: This is a read-only operation.
safe_kubectl my-cluster -- get pods -n default
scripts/setup_safe_sre_investigator.sh: GCP setup.scripts/safe_gcloud_wrapper.sh: Template for ~/bin/safe_gcloud.scripts/setup_safe_kubectl.sh: Kubernetes setup.scripts/safe_kubectl_wrapper.sh: Template for ~/bin/safe_kubectl.references/iam_roles.md: GCP IAM roles.references/k8s_readonly_role.yaml: Kubernetes ClusterRole definition.references/risk_assessment.md: Risk assessment format.BUGS.md (opens in a new tab)CHANGELOG.md (opens in a new tab)references/email_to_admin.md (opens in a new tab)references/iam_roles.md (opens in a new tab)references/iam_roles.txt (opens in a new tab)references/risk_assessment.md (opens in a new tab)scripts/safe_gcloud_wrapper.sh (opens in a new tab)scripts/setup_safe_sre_investigator.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub googlecloudplatform/sre-plugin --plugin sre-extension16 skills in this plugin
/anomaly-detection🐉 Detects anomalies in time-series data from various sources./cloud-logging🐉 Skill for interacting with and analyzing Google Cloud Logging and Error Reporting. Use this when you need to process large JSON logs from GCP or convert them to Apache format for easier analysis./cloud-monitoring🐉 Skill for interacting with Google Cloud Monitoring (CM) via APIs to avoid large context bloat. Produces nice short synoptic "gists" of graphs/data-ingestion🐉 Fetches and parses time-series data from various sources./gcp-architecture-discovery🐉 Discover and map GCP infrastructure architecture including compute, networking, storage, and service dependencies./gcp-mcp-setup🐉 Use when the user wants to set up Google Managed MCP (OneMCP) servers for their CLI environment. Automates enabling services, MCP servers, generating API keys, and configuring the MCP settings file for the active harness (Gemini, Antigravity, or Copilot CLI).Other plugins' skills for the same job