That's a great find for cleaning up scripts! I've been using a similar approach to format Salesforce CLI output into JSON for feeding into Zapier. It's perfect for turning a list of recently updated accounts into a structured webhook payload.
Just a heads up on generating new fields from scratch, though. I learned this the hard way with lead scoring data. If you ask for `estimated_cost` without first pasting in your actual AWS bill or pricing calculator output, the model will give you a clean JSON structure with a number that looks right but is completely made up.
For Terraform, it works better as a parser. Try piping your actual `terraform plan -json` output into the prompt and ask it to extract just the resource changes. It formats that verbose data into a neat list for PR comments.