---
name: tf-plan
description: Run terraform plan and analyze the output for risks. Use before applying any infrastructure changes.
disable-model-invocation: true
argument-hint: "[working-directory]"
user-invocable: true
---

Run `terraform fmt -recursive`
Run `terraform plan -no-color` and analyze the output.

Summarize:
- [ ] How many resources will be added, changed, or destroyed
- [ ] Any potential issues or risks (e.g., resource replacements, security group changes, data loss)
- [ ] Estimated blast radius

If the plan fails, diagnose the error and suggest a fix.
