What problem does it solve? Writing Terraform configurations by hand is error-prone: wrong provider arguments, missing lifecycle safeguards, hardcoded values, and security misconfigurations often slip through until apply time. This Skill generates Terraform .tf files following current best practices and enforces a mandatory validate-fix-revalidate loop so broken or insecure configurations never reach the user. ## Core Features & Use Cases - Best-Practice HCL Generation: Produces organized main.tf, variables.tf, outputs.tf, and versions.tf files with data sources, lifecycle rules, dynamic blocks, and proper version constraints. - Custom Provider Documentation Lookup: Detects third-party providers and modules (e.g., Datadog, MongoDB Atlas) and fetches version-specific documentation before generating resources. - Mandatory Validation Loop: Invokes a terraform-validator skill running terraform fmt, init, validate, and Checkov security scans, then fixes and re-validates until all checks pass. - Use Case: Ask for an AWS RDS database with encryption and deletion protection; the Skill generates the configuration with prevent_destroy lifecycle rules, ephemeral password handling via write-only arguments, runs Checkov, fixes any flagged issues, and delivers ready-to-apply files with usage instructions. ## Quick Start Generate a Terraform configuration for an AWS S3 bucket with versioning, encryption, and lifecycle rules, then validate it.