Agent skill · HashiCorp

Terraform Style Guide skill for Claude Code, Codex and Cursor

Writes and reviews Terraform HCL following HashiCorp's official style conventions.

Officialname: terraform-style-guide★ 907 (repo)pushed 2026-10-05MPL-2.0SKILL.md on GitHubchecked 2026-11-07

What it does, in the publisher's words

Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.

The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.

Install Terraform Style Guide

The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs

npx skills add hashicorp/agent-skills --skill terraform-style-guide

Works with

Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.

What's in the SKILL.md

18 sections
  • Code Generation Strategy
  • File Organization
  • Example Structure
  • Code Formatting
  • Indentation and Alignment
  • Block Organization
  • Naming Conventions
  • Variables
  • Outputs
  • Dynamic Resource Creation
  • Prefer for_each over count
  • count for Conditional Creation
  • Security Best Practices
  • Version Pinning
  • Provider Configuration
  • Version Control
  • Validation Tools
  • Code Review Checklist

Bundled files

1
  • SECURITY.md

Loaded only when the instructions point to them.

Facts

Skill name
terraform-style-guide
Publisher
HashiCorp (official)
Repo
hashicorp/agent-skills
License
MPL-2.0
SKILL.md size
477 words, 310 lines
Bundled files
1, 1 docs
Repo stars
907 (as of 2026-10-24)
SKILL.md checked
2026-11-07

Pairs with the Terraform MCP server: the server gives the agent the tools, the skill teaches it how to use them.

More skills from hashicorp/agent-skills

  • New Terraform Provider: Scaffolds a new Terraform provider on the Plugin Framework with module and schema setup.
  • Terraform Test: Writes and runs .tftest.hcl tests with run blocks, assertions and mocked providers.

Related cloud & devops skills

FAQ

What does the terraform-style-guide skill do?+

Writes and reviews Terraform HCL following HashiCorp's official style conventions. In its own SKILL.md, HashiCorp describes it as: "Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations."

How do I install the terraform-style-guide skill?+

Run npx skills add hashicorp/agent-skills --skill terraform-style-guide and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/terraform-style-guide/SKILL.md; in Codex and Cursor in .agents/skills/terraform-style-guide/.

Does Terraform Style Guide work in Codex, Cursor and Copilot, or only Claude?+

It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.

Who maintains Terraform Style Guide?+

HashiCorp, the company or project behind it, in the hashicorp/agent-skills repo on GitHub, last pushed 2026-10-05. License: MPL-2.0.

Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers