Works with the AI Agents you already use
Terraform Plan Review: Catch Risky Changes
by Saizul Amin
This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.
$12
Terraform Plan Review: Catch Risky Changes
Example session with this skill installed
Run the Terraform Plan Review skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the terraform plan review
Here is what the Terraform Plan Review: Catch Risky Changes skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
Plan: 1 create, 2 update, 1 replace, 2 delete, 3 no-op
CRITICAL aws_db_instance.main: will be replaced (destroy and re-create) - stateful resource, data loss possible (an attribute cannot be updated in place; forced by: storage_encrypted) [plan.replace]
CRITICAL aws_s3_bucket.logs: will be destroyed - stateful resource, data loss possible (removed from configuration) [plan.delete]
HIGH aws_db_instance.main: deletion_protection changes from true to false [plan.protection_disabled]
HIGH aws_instance.web[1]: will be destroyed (count index no longer exists) [plan.delete]
MEDIUM -: 1 resource(s) changed outside Terraform since the last apply; review with terraform-drift-cost-review before applying [plan.drift]
MEDIUM aws_db_instance.main: sensitive attribute(s) change: password (values hidden) [plan.sensitive_change]
MEDIUM aws_iam_role.ci: security-relevant create: review the policy/rule [plan.security_change]
MEDIUM aws_instance.web[1]: destroy caused by an address change? if the object was renamed or moved, add a moved block (terraform-state-operations: state_moves.py) instead of destroying it [plan.maybe_moved]
MEDIUM aws_s3_bucket.logs: destroy caused by an address change? if the object was renamed or moved, add a moved block (terraform-state-operations: state_moves.py) instead of destroying it [plan.maybe_moved]
MEDIUM aws_security_group.web: security-relevant update: review the policy/rule [plan.security_change]
MEDIUM aws_ssm_parameter.api_token: sensitive attribute(s) change: value (values hidden) [plan.sensitive_change]
LOW output.db_password: sensitive output update (value hidden) [plan.sensitive_output]
INFO aws_route53_record.www: moved from aws_route53_record.web (no destroy) [plan.moved]
INFO aws_s3_bucket.assets: imported into state by this plan [plan.import]
replace aws_db_instance.main
~ deletion_protection
~ kms_key_id (known after apply)
~ password (sensitive, value hidden)
~ storage_encrypted
delete aws_s3_bucket.logs
delete aws_instance.web[1]
update aws_security_group.web
~ ingress[0].cidr_blocks[0]
~ ingress[0].from_port
~ ingress[0].to_port
update aws_ssm_parameter.api_token
~ value (sensitive, value hidden)
create aws_iam_role.ci
no-op aws_route53_record.www <- aws_route53_record.web
no-op aws_s3_bucket.assets
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Review a Terraform or OpenTofu plan before apply with a deterministic script that parses terraform show -json output - counts creates/updates/replaces/deletes, flags destroys and replacements with the attributes that force them, destroys of stateful resources (databases, buckets, volumes, KMS keys, DNS zones), deletion_protection turned off, sensitive attribute changes (values never printed), IAM/security group/firewall changes, imports, moved blocks, drift and errored or incomplete plans, with Markdown output for PR comments and CI exit codes.
Who it's for
Use when the user shares a plan, asks "is this plan safe to apply?", "why does Terraform want to replace/destroy X", "forces replacement", wants a plan summary for a pull request, or before any terraform/tofu apply.
What's inside
- Tested, offline Python script(s): plan_review.py (deterministic results, standard library only unless noted)
- Reference guides: replacement-causes.md, plan-json.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow; Decision rules; CI usage
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/terraform-iac-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.8+