What problem does it solve?
This Skill prevents inconsistent, fragile Terraform code by guiding you toward HashiCorp-style conventions that improve readability, maintainability, and safety.
Core Features & Use Cases
- Code generation strategy: Orders provider constraints, data sources, resources, and outputs so plans are easier to review and less likely to break due to dependency mistakes.
- Consistent file organization: Encourages a standard split across
terraform.tf, providers.tf, main.tf, variables.tf, outputs.tf, and locals.tf to reduce cognitive load and merge conflicts.
- Team-ready conventions: Applies naming rules, variable/output requirements, formatting standards, and security best practices (e.g., sensitive outputs and no hardcoded credentials).
- Use cases: Ideal for writing new Terraform modules, refactoring existing stacks, onboarding teammates, or generating Terraform snippets that conform to a shared style guide.
Quick Start
Ask an AI to generate Terraform HCL for your target infrastructure while following the HashiCorp Terraform style guide and producing variables and outputs with descriptions in the standard file layout.