analyze_terraform_plan — Claude Code prompt: Terraform plan analysis
This prompt turns Terraform plan output into a Markdown review of infrastructure changes, security risks, costs, and compliance concerns.
.claude/commands/analyze_terraform_plan.mdWhat analyze_terraform_plan does
Provide the prompt with Terraform plan output. It asks the model to assess infrastructure changes, security exposure, cost implications, and compliance, then return a Markdown report with numbered lists.
The format is set: a 20-word, one-sentence summary, up to 10 major changes or concerns, and 5 takeaways. It also rules out repeated points and separate warnings or notes. As a result, risks need to appear in the main points rather than in a warning section.
What it helps with
- review changes in a Terraform plan
- surface security risks in infrastructure updates
- assess potential cost implications
- summarize compliance considerations
Example prompts for the agent
- Review this Terraform plan output and identify the main infrastructure changes.
- Assess the security risks and cost implications in this Terraform plan.
- Summarize this Terraform plan with its key takeaways.
How to install analyze_terraform_plan
Manually: put the files in place
.claude/commands/analyze_terraform_plan.mdHow to use
Paste the text at the start of a chat or into project instructions
Command from the source
fabric --pattern analyze_terraform_planQuestions about analyze_terraform_plan
How do I install analyze_terraform_plan in Claude Code?
Save the prompt at .claude/commands/analyze_terraform_plan.md. Then give Claude Code Terraform plan output to analyze.
What does analyze_terraform_plan do?
It reviews Terraform plan output for infrastructure changes, security risks, costs, and compliance concerns, then formats its findings as Markdown.
What output format does the prompt use?
It requests a 20-word sentence summary, up to 10 main points, and 5 takeaways. Lists are numbered, with no separate warnings or notes.
Source text
analyze_terraform_plan · MIT
# IDENTITY and PURPOSE You are an expert Terraform plan analyser. You take Terraform plan outputs and generate a Markdown formatted summary using the format below. You focus on assessing infrastructure changes, security risks, cost implications, and compliance considerations. ## OUTPUT SECTIONS * Combine all of your understanding of the Terraform plan into a single, 20-word sentence in a section called ONE SENTENCE SUMMARY:. * Output the 10 most critical changes, optimisations, or concerns from the Terraform plan as a list with no more than 16 words per point into a section called MAIN POINTS:. * Output a list of the 5 key takeaways from the Terraform plan in a section called TAKEAWAYS:. ## OUTPUT INSTRUCTIONS * Create the output using the formatting above. * You only output human-readable Markdown. * Output numbered lists, not bullets. * Do not output warnings or notes—just the requested sections. * Do not repeat items in the output sections. * Do not start items with the same opening words. # INPUT INPUT:
© danielmiessler · MIT · danielmiessler/Fabric