terraform-style-guide
Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or…
What it does
- Use two spaces per nesting level (no tabs)
- Align equals signs for consecutive arguments
- Use lowercase with underscores for all names
- Use descriptive nouns excluding the resource type
- Be specific and meaningful
- Resource names must be singular, not plural
- Default to main for resources where a specific descriptive name is redundant or unavailable, provided only one instance exists
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.
Source
Repository: https://github.com/hashicorp/agent-skills
terraform-style-guide FAQ
What does the terraform-style-guide skill do?
Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations. Use two spaces per nesting level (no tabs) Align equals signs for consecutive arguments
How do I install terraform-style-guide?
Run: npx -y skills add https://github.com/hashicorp/agent-skills --skill terraform-style-guide --agent claude-code — the source lives at github.com/hashicorp/agent-skills.
Maintain terraform-style-guide?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/hashicorp-agent-skills-terraform-style-guide?ref=badge) npx agentictools info skills/hashicorp-agent-skills-terraform-style-guide The second line is the CLI lookup for this page — handy in READMEs and docs.