somaz94

Whatdies — DevOps skill for Claude Code

DevOps community

See what your AI agent's infrastructure command would actually destroy before it runs: a Claude Code hook that reads Terraform plans and kubectl state.

How to install Whatdies

This entry records only its repository, not the path inside it, so there is no exact command to give. Open somaz94/whatdies and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Whatdies does

See what your AI agent's infrastructure command would actually destroy before it runs: a Claude Code hook that reads Terraform plans and kubectl state.

Alternatives in DevOps

  • Contributing To Terraform Skill — Thank you for your interest in improving terraform-skill 1.4k ★
  • Infra Deploy — Use when changing Terraform, Docker, AWS or Azure deployment assets, or deployment documentation, including te 47 ★
  • Chop — CLI output compressor for Claude Code 43 ★

README

whatdies

[![CI](https://github.com/somaz94/whatdies/actions/workflows/ci.yml/badge.svg)](https://github.com/somaz94/whatdies/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

**See what your AI agent's infrastructure command would actually destroy, before it runs.**

![whatdies gives the same kubectl command opposite verdicts as the volume's reclaim policy changes, and refuses a terraform apply with no saved plan](examples/demo/demo.gif)

Same command, opposite verdict. A guard that reads the command text cannot tell these apart, because the text is identical:

$ whatdies check "kubectl delete ns shop"
DENY
  deletes namespace shop on kind-whatdies-demo with 1 pod(s), 0 deployment(s), 0 statefulset(s), 1 PVC(s)
  PVC data -> PV pvc-da35d82e (1Gi) reclaim=Delete: the volume and its data are deleted

# reclaim policy changed to Retain; the command is identical
$ whatdies check "kubectl delete ns shop"
ASK
  deletes namespace shop on kind-whatdies-demo with 1 pod(s), 0 deployment(s), 0 statefulset(s), 1 PVC(s); its volumes have reclaim=Retain, so they outlive it

And the opposite trap, a command that looks routine:

$ whatdies check "terraform apply tfplan"
DENY
  replaces aws_db_instance.main (aws_db_instance holds data)

whatdies is a single Go binary that runs as a [Claude Code](https://code.claude.com/docs/en/hooks) `PreToolUse` hook. It needs no API key and sends nothing anywhere: it reads your saved Terraform plan and asks your own `kubectl` read-only questions.


Why

Coding agents have run `terraform destroy` against production and taken the database and its snapshots with it ([AI Incident 1424](https://incidentdatabase.ai/cite/1424)). The developer in that case watched the command go by and did not stop it. An approval prompt only helps if the person can see what the command does, and `terraform apply` does not say.


Install