
terraform-style-guide
Generate Terraform HCL code following HashiCorp's official style conventions
by hashicorpFree
Description
terraform-style-guide is an agent skill that guides an AI coding assistant to generate and maintain Terraform HCL code that follows HashiCorp's official style conventions. It is meant for writing, reviewing and generating Terraform configuration, so the output is consistent with HashiCorp's own guidance. The skill sets out a code generation order: start with the provider configuration and version constraints, create data sources before the resources that depend on them, build resources in dependency order, add outputs for the key resource attributes, and use variables for every value that should be configurable. It also includes guidance on file organization, so the assistant knows how to split a configuration across files. The skill links to HashiCorp's Terraform Style Guide as the reference. It suits platform engineers and developers who write infrastructure as code and want an assistant to produce clean, conventional Terraform. Install it with the skills command from the hashicorp/agent-skills repository. The skills.sh page shows Gen Agent Trust Hub, Socket and Snyk all as Pass.…
Highlights
- Generates Terraform HCL in HashiCorp's style
- Orders provider, data sources and resources
- Outputs and variables for configurable values
- File organization guidance
- Links to HashiCorp's style guide
Ratings & Reviews
No ratings yet
Be the first to rate terraform-style-guide.
People also visit

terraform-engineer
Implementing infrastructure as code with Terraform across AWS, Azure, or GCP

terraform-code-generation
Terraform code generation skills including HCL generation, style guides

terraform-data-engineering-infrastructure
Infrastructure-as-Code patterns for data engineering
terraform-style-guide FAQ
What does this skill do?
It guides an AI coding assistant to write and review Terraform HCL code that follows HashiCorp's official style conventions.
How do I install it?
Run npx skills add https://github.com/hashicorp/agent-skills --skill terraform-style-guide.
What order does it generate code in?
Provider configuration and version constraints first, then data sources, then resources in dependency order, followed by outputs and variables.
Does it cover file layout?
Yes. The skill includes guidance on how to organize Terraform files.
Which style guide does it follow?
It refers to HashiCorp's Terraform Style Guide as its reference.
Who is it for?
Engineers who write infrastructure as code with Terraform and want an assistant to follow HashiCorp's conventions.
What are the security audit results?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best terraform-style-guide alternatives?
Popular alternatives to terraform-style-guide include provider-docs, terraform-engineer and terraform-infrastructure. See all terraform-style-guide alternatives










