terraform-style-guide
A HashiCorp skill that makes an agent write Terraform HCL the way HashiCorp's own style guide describes.
What the skill teaches
A HashiCorp skill that makes an agent write Terraform HCL the way HashiCorp's own style guide describes. It sets an order for generating code, from version constraints and provider configuration through data sources and resources to outputs, and a standard file layout with terraform.tf, providers.tf, main.tf, variables.tf, outputs.tf and locals.tf, with variables and outputs sorted alphabetically. It also covers formatting, naming, variables and outputs, preferring for_each over count, security practices, version pinning and a code review checklist, and applies when reviewing existing configurations as well as generating new ones.
Capabilities
- Generate Terraform code in HashiCorp style
- Organise configuration into standard files
- Review existing Terraform for style issues
About
- Publisher
- HashiCorp
- Tool
- Terraform
Install
- Run this to add it to Any client:
npx skills add hashicorp/agent-skills/plugins/terraform/skills/terraform-style-guide
What's inside
- SECURITY.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Terraform | |
| Publisher | HashiCorp | source |
| Official status | Officialpublished in HashiCorp's own GitHub organisation; contributions restricted to HashiCorp-internal contributors | source |
| Status | active | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MPL-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 4, 2026925 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/hashicorp/agent-skillsNov 10, 2026
- README (README.md)github.com/hashicorp/agent-skillsNov 12, 2026
- Licence file (LICENSE)github.com/hashicorp/agent-skills · Backs: LicenceNov 12, 2026
- GitHub repositorygithub.com/hashicorp/agent-skills · Backs: Official status, Publisher, Activity, LicenceNov 11, 2026
- Folder in the repository (terraform-style-guide)github.com/hashicorp/agent-skills · Backs: Includes scriptsNov 10, 2026
- File in the repository (SKILLS.md)github.com/hashicorp/agent-skills · Backs: StatusNov 12, 2026