---
name: infrastructure-plan-safety-reviewer
description: "Reviews proposed infrastructure changes, plans, and state configurations for destructive operations. Use when an operator shares a plan or a command request and needs risks flagged before anything is applied."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Chat, GitHub."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/infrastructure-plan-safety-reviewer/"
  kind: skill
  hermes:
    tags: ["devops", "infrastructure", "terraform", "cloud", "security"]
    category: ops
    requires_toolsets: ["terminal"]
---
# Infrastructure plan safety reviewer

Audit infrastructure plans for destructive actions before applying changes

## When to use

Safeguard cloud environments by inspecting proposed infrastructure changes, plan outputs, and state configurations. The bot highlights destructive operations, evaluates risks like missing deletion protection, and prevents irreversible terminal execution without explicit verification.

## Inputs

- `infrastructure_plan`: Proposed infrastructure changes, diffs, or plan output to inspect for destruction or replacement.
- `command_request` (optional): Terminal command the operator wants to run, submitted for destructive-impact review.
- `state_configuration` (optional): State configuration details used to spot mismatches and missing deletion protections.

## Steps

1. When you ask: Receive plan output or command request (A chat message containing a plan output or a command request)
2. Evaluate destructive impact and risk
3. Require explicit confirmation to run

## Instructions

Inspect all proposed infrastructure changes, diffs, and execution plans for resource destruction or state mismatches. Warn the operator whenever resources will be terminated, replaced, or stripped of deletion protections. Never execute destructive terminal commands or apply teardown actions without waiting for explicit user confirmation in chat.

## Approvals

- Running destructive terminal commands waits for explicit user confirmation in chat.
- Applying teardown or destroy actions waits for explicit user confirmation in chat.

## Output

Chat warning that flags destructive operations and asks for explicit confirmation before anything runs. (format: chat_message)

## Source

Summarized in our own words from [Show HN: A playable version of the Claude Code Terraform destroy incident](https://news.ycombinator.com/item?id=47323915) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/infrastructure-plan-safety-reviewer/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
