cloud-cli-safety

cloud-cli-safety is a skill for Claude Code from catpilotai/catpilot-ai-guardrails. It costs 92 tokens per session (4,639 once invoked), scanned A, original, MIT.

A safety procedure for cloud commands that change infrastructure, including commands for AWS, Azure, Google Cloud, Kubernetes, and Terraform.

In plain words
What is it for?
It helps query current state, show the complete command and likely impact, request confirmation, and prepare a rollback before changing cloud infrastructure.
Why use it?
It reduces the risk of replacing or deleting existing settings when a command affects more of a resource than expected.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex; built for openclaw.

Part of the catpilot-guardrails plugin — 19 skills shipped together

Good fit It helps query current state, show the complete command and likely impact, request confirmation, and prepare a rollback before changing cloud infrastructure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/catpilotai/catpilot-ai-guardrails/cloud-cli-safety
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add catpilotai/catpilot-ai-guardrails --skill cloud-cli-safety
Clone the repo
git clone --depth 1 https://github.com/catpilotai/catpilot-ai-guardrails

Made for: Claude Code.

Or install catpilot-guardrails, the plugin that ships this one along with the rest of its 19 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 cloud-cli-safety

README.md
[![agentmods](https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/cloud-cli-safety/github.svg)](https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/cloud-cli-safety)
Your own site
<a href="https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/cloud-cli-safety"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/cloud-cli-safety/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 cloud-cli-safety

Your own site · 80×15
<a href="https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/cloud-cli-safety"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/cloud-cli-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,639 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.
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.00092 $0.04639
Opus 5.5 $0.00037 $0.01856
Sonnet 5.5 $0.00018 $0.00928
Haiku 4.5 $0.00009 $0.00464

Measured 1mo ago against content hash b133b8b59c92, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloud-cli-safety 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/env_patch.py), 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.

src/skills/core/cloud-cli-safety/SKILL.md · 434 lines

How it starts

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

Baseline

Applies when: Before invoking a mutating az, aws, gcloud/gsutil, kubectl, helm, or terraform command, or a custom deploy wrapper (./deploy.sh, make deploy), especially against production-heuristic targets.

Always:

  • Query current state (read-only) and show the relevant fields before any mutating command.
  • Show the full command and affected targets; preserve env/secret references and never expand credentials into chat, logs, or history.
  • Enumerate fields that will change (env vars, IAM bindings, replica counts, CPU/memory, probes).
  • Get explicit confirmation (a literal "yes") before executing; do not infer consent.
  • Prepare a rollback command before executing the forward command.
  • Know which flags merge and which replace: az containerapp update --set-env-vars adds or updates only the named variables and keeps the rest; --replace-env-vars and --yaml replace the whole set; aws lambda update-function-configuration --environment replaces the whole map.
  • Verify after execution by re-running the read-only query and diffing against the pre-change snapshot.

Never:

  • az containerapp update --yaml <partial> — overwrites all unspecified fields; --replace-env-vars removes unspecified variables too.
  • aws lambda update-function-configuration --environment "Variables={ONLY_ONE=value}" — replaces, does not merge.
  • aws s3 rm s3://bucket --recursive without prior aws s3 ls and explicit confirmation.
  • gcloud projects set-iam-policy PROJECT policy.json — wipes existing bindings; use add-iam-policy-binding instead.
  • terraform apply -auto-approve / terraform destroy -auto-approve anywhere production is plausible.
  • kubectl delete namespace production or kubectl delete pods --all -n <ns> against a non-dev namespace.

Open the full component before acting: it has the examples, the remediation steps, and the detection patterns.

Why

This skill exists because of a specific outage.

An AI assistant was asked to update the liveness probe on an Azure Container App. It generated a small YAML file containing only the probes: block and ran:

Read the full file on GitHub · 434 lines

Files

What ships with it

1 file 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. 1mo ago Changed · +45 lines b133b8b59c92
  2. 1mo ago Changed · +11 lines 98fe8294b711
  3. 1mo ago First seen · 378 lines · 92 tokens per session scan A 2e9b76c1091b

Subscribe to this mod's changes

cloud-cli-safety is a skill published in the GitHub repository catpilotai/catpilot-ai-guardrails (2 stars, last pushed 12d ago), licensed MIT. It adds 92 tokens to every session and 4,639 once invoked, about $0.0004 per session on Opus 5.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-31.