tf-plan-review

Analyze Terraform plan output and classify changes by risk.

10|2|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/cacheforge-ai/cacheforge-skills --skill tf-plan-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tf-plan-review
Source: https://github.com/cacheforge-ai/cacheforge-skills/tree/main/skills/tf-plan-review
Command: npx skills add https://github.com/cacheforge-ai/cacheforge-skills --skill tf-plan-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, terraform, tofu, and includes scripts (resource) components.

What problem does it solve?

Analyzes Terraform plan output to identify risks, highlight potentially destructive changes, and prevent unsafe deployments by providing a clear risk assessment while keeping all actions read-only.

Core Features & Use Cases

  • Plan risk classification for every change (create, update, destroy, replace) to surface safety concerns early.
  • Destruction & blast radius visibility to reveal what would be deleted or replaced and what depends on it.
  • Drift and validation support by inspecting state changes and validating configuration without applying changes.
  • Discord v2 friendly output with structured JSON for agents and Markdown risk report for humans.

Quick Start

Run the tf-plan-review workflow on a Terraform project to obtain a structured JSON summary and a Markdown risk report.

Frequently Asked Questions about tf-plan-review

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

FAQPage Schema
How do I assess Terraform plan risk before applying changes?

To review Terraform plan risk before applying changes, you can analyze the plan output to classify every resource change by risk level, highlighting destructive actions and blast radius without modifying your cloud infrastructure.

Can I detect Terraform state drift without applying any changes?

Yes, you can detect Terraform state drift without applying changes by inspecting the plan output to validate configuration and surface unexpected state modifications. This read-only validation reveals drift while ensuring no actual infrastructure deployments occur during the review process.

Does this pre-apply Terraform plan review work with OpenTofu?

Yes, the pre-apply Terraform plan review works with OpenTofu. It requires either the terraform or OpenTofu CLI tool installed to parse plan output, functioning across cloud providers to classify infrastructure-as-code changes by risk level before deployment.

What is the best way to visualize the blast radius of a Terraform destroy action?

The best way to visualize the blast radius of a Terraform destroy action is to analyze the plan output to reveal exactly what resources would be deleted or replaced, along with their dependencies, outputting a structured Markdown risk report for human review.

How do I get structured JSON output from a Terraform plan for automated agents?

To get structured JSON output from a Terraform plan for automated agents, run a read-only plan review that parses the plan and emits classified risk data as JSON on stdout, alongside a human-readable Markdown risk report on stderr for immediate pipeline integration.

Do I need jq installed to review Terraform plan output for destructive changes?

Yes, you need jq installed along with either terraform or OpenTofu to review Terraform plan output for destructive changes. These dependencies are required to parse the plan file and classify resource modifications into structured risk assessments.