terraform-safety

Enforce plan reviews and targeted Terraform updates to prevent resource destruction.

1|1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/code0100fun/botfiles --skill terraform-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-safety
Source: https://github.com/code0100fun/botfiles/tree/main/plugins/infra-ops/skills/terraform-safety
Command: npx skills add https://github.com/code0100fun/botfiles --skill terraform-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured set of safety rules for Terraform operations to prevent accidental resource destruction and misconfigurations.

Core Features & Use Cases

  • Enforce plan reviews before applying changes to prevent unintended resource destruction.
  • Encourage targeted updates using -target to minimize blast radius across modules.
  • Reconcile and validate state after changes to maintain infrastructure integrity.

Quick Start

Review the Terraform plan and apply changes only to targeted resources to avoid unintended destructions.

Frequently Asked Questions about terraform-safety

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent accidental resource destruction when applying Terraform changes?

To prevent accidental resource destruction, you must review the Terraform plan before applying changes. Enforcing targeted updates restricts the blast radius across modules, ensuring safe deployments and infrastructure integrity.

What is the best way to minimize the blast radius of Terraform infrastructure updates?

The best way to minimize blast radius is by applying targeted updates using the -target flag. This limits changes to specific resources and modules, preventing unintended destruction during infrastructure deployments.

How do I validate Terraform state after applying targeted changes?

To validate Terraform state after targeted changes, you must reconcile the state to maintain infrastructure integrity. This process ensures the applied updates match the expected configuration and prevents misconfigurations.

Why should I enforce a plan-first workflow for Terraform deployments?

Enforcing a plan-first workflow for Terraform deployments prevents unintended resource destruction by requiring a thorough plan review. This structured approach minimizes blast radius and ensures safe infrastructure changes.

Can I use targeted apply to update specific modules without affecting other resources?

Yes, you can use targeted apply to update specific modules without affecting other resources. By enforcing targeted updates, you minimize the blast radius and restrict changes to designated resources for safe deployments.