terraform-plan-review

Analyze Terraform and OpenTofu plan JSON for destructive operations and security risks.

9|3|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill terraform-plan-review-sir-chawakorn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-plan-review
Source: https://github.com/Sir-chawakorn/sanook-cli/tree/main/skills/terraform-plan-review
Command: npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill terraform-plan-review-sir-chawakorn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents catastrophic infrastructure changes by providing a rigorous, diagnostic review of Terraform and OpenTofu plans before they are applied to production environments.

Core Features & Use Cases

  • Blast Radius Analysis: Automatically identifies high-risk operations like resource destruction, replacement, or identity churn.
  • Security & Compliance: Detects potential secret exposure and validates module structure against best practices.
  • Use Case: Before running a production apply, use this skill to parse your plan JSON to ensure no stateful resources like databases are accidentally destroyed or replaced.

Quick Start

Use the terraform-plan-review skill to analyze the generated tfplan.json file for potential risks and provide a go or no-go verdict.

Frequently Asked Questions about terraform-plan-review

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

FAQPage Schema
How do I review a Terraform plan for destructive operations before applying?

Reviewing a Terraform plan for destructive operations requires parsing the machine-readable plan JSON output to identify resource destruction, replacement, or identity churn. The analysis automatically evaluates resource changes against safety criteria to prevent data loss.

What is blast radius analysis in infrastructure as code deployments?

Blast radius analysis in infrastructure as code identifies the potential impact of changes by detecting high-risk operations like resource destruction or replacement. It evaluates Terraform plan JSON to ensure stateful resources such as databases are not accidentally destroyed.

Can I use this Terraform plan analysis in a CI/CD pipeline?

Yes, you can use this Terraform plan analysis in a CI/CD pipeline. It is designed to parse plan JSON files and apply safety and compliance criteria to infrastructure changes, providing a go or no-go verdict to gate production deployments.

Does this tool detect security vulnerabilities and secret exposure in OpenTofu plans?

Yes, this tool detects security vulnerabilities and secret exposure in OpenTofu plans. It analyzes the plan JSON output to validate module structure against best practices and identify potential secret exposure before the changes are applied.

How do I prevent configuration drift when applying infrastructure changes?

Preventing configuration drift involves analyzing Terraform and OpenTofu plan files to catch state risks before applying changes. By providing a rigorous diagnostic review of the plan JSON, it stops unwanted modifications from reaching production environments.