safe-sre-investigator

safe-sre-investigator is a skill for Claude Code from gemini-cli-extensions/sre. It costs 56 tokens per session (879 once invoked), scanned A, original, Apache-2.0.

A read-only way to investigate Google Cloud and Kubernetes systems using limited-access service accounts. It also assesses the risk of suggested commands.

In plain words
What is it for?
Investigating GCP projects and GKE clusters, setting up read-only accounts, and suggesting safer gcloud or kubectl commands.
Why use it?
It helps inspect production resources while reducing the chance of making changes or granting too much access. You can see the possible risk before running a command.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash ./scripts/setup_safe_kubectl.sh CLUSTER_NAME CLUSTER_LOCATION.

Part of the sre-extension plugin — 16 skills shipped together

Good fit Investigating GCP projects and GKE clusters, setting up read-only accounts, and suggesting safer gcloud or kubectl commands.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/gemini-cli-extensions/sre
agentmods
npx agentmods add skills/gemini-cli-extensions/sre/safe-sre-investigator

Made for: Claude Code.

Or install sre-extension, the plugin that ships this one along with the rest of its 16 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for safe-sre-investigator

README.md
[![agentmods](https://agentmods.dev/badge/skills/gemini-cli-extensions/sre/safe-sre-investigator/github.svg)](https://agentmods.dev/skills/gemini-cli-extensions/sre/safe-sre-investigator)
Your own site
<a href="https://agentmods.dev/skills/gemini-cli-extensions/sre/safe-sre-investigator"><img src="https://agentmods.dev/badge/skills/gemini-cli-extensions/sre/safe-sre-investigator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for safe-sre-investigator

Your own site · 80×15
<a href="https://agentmods.dev/skills/gemini-cli-extensions/sre/safe-sre-investigator"><img src="https://agentmods.dev/badge/skills/gemini-cli-extensions/sre/safe-sre-investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 879 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 50
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Rogue Agent · line 49
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.00879
Opus 5 $0.00028 $0.00439
Sonnet 5 $0.00011 $0.00176
Haiku 4.5 $0.00006 $0.00088

Measured 13d ago against content hash dce333683767, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

safe-sre-investigator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/safe_gcloud_wrapper.sh, scripts/setup_safe_sre_investigator.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/safe-sre-investigator/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Safe SRE Investigator

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.

Core Tasks

  1. Setup GCP: Initialize the GCP service account and safe_gcloud script.
  2. Setup Kubernetes: Initialize the Kubernetes service account and safe_kubectl script for a specific cluster.
  3. Suggest Commands: Provide gcloud or kubectl commands with risk assessments.

1. Setup GCP (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
  • This script is idempotent.
  • It creates ~/bin/safe_gcloud.
  • The user might need to re-source their shell profile.
  • IAM roles are in references/iam_roles.md.

2. Setup Kubernetes (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
  • This script needs to be run with user credentials that have permissions to create ServiceAccounts and ClusterRoleBindings in the target cluster.
  • It creates a read-only ServiceAccount in the cluster and generates a dedicated kubeconfig in ~/.kube/safe-investigator-configs/.
  • It also creates ~/bin/safe_kubectl.
  • The K8s roles are in references/k8s_readonly_role.yaml.

3. Suggesting Commands

When the user asks for a command:

  • GCP: Use safe_gcloud PROJECT_ID <gcloud commands>.
  • Kubernetes: Use safe_kubectl CLUSTER_NAME -- <kubectl commands>.
  • Risk Assessment: ALWAYS include a risk assessment block. See references/risk_assessment.md.
  • Write Operations: For commands requiring write access, provide the standard gcloud or kubectl command and warn the user to run it with their own credentials, noting the risks.

Read the full file on GitHub · 88 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 88 lines · 56 tokens per session scan A dce333683767

Subscribe to this mod's changes

safe-sre-investigator is a skill published in the GitHub repository gemini-cli-extensions/sre (83 stars, last pushed 10d ago), licensed Apache-2.0. It adds 56 tokens to every session and 879 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

azd-deployment

Deploy containerized frontend + backend applications to Azure Container Apps with remote builds, managed identity, and idempotent infrastructure.

sickn33/agentic-awesome-skills · 29 tokens

openshell-cli

Guide agents through using the OpenShell CLI (openshell) for sandbox management, gateway registration, provider configuration and refresh, policy iteration, settings, service exposure, BYOC workflows, and attached-provider inference. Covers basic through advanced multi-step workflows. Trigger keywords - openshell…

NVIDIA/OpenShell · 128 tokens

langbot-deploy

Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot…

langbot-app/LangBot · 104 tokens

compute-env-setup

Set up a compute environment on a remote provider so Claude Science jobs can run there. Covers direct SSH/conda hosts, Slurm clusters, container-via-bridge runners, and managed-API providers (Modal, GCP, RunPod). Use when standing up a new provider, porting an env to a different backend, adding a tool that needs its…

UnicomAI/wanwu · 134 tokens

azure-cloud-migrate

Assess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/Kubernetes/Cloud Run/Spring Boot→Container Apps. WHEN: migrate Lambda to Functions, AWS to Azure, migrate Beanstalk, migrate Heroku, migrate App Engine, Cloud…

microsoft/skills · 106 tokens

atmos-helmfile

Helmfile orchestration: sync/apply/destroy/diff, Kubernetes deployments, varfile generation, EKS integration, source management.

cloudposse/atmos · 33 tokens