findaskill

—skills · counting…

30,375MCP servers

SkillsMCP serversAgent BuilderRun agentSoon
Sign in
  1. Home
  2. Skills
  3. DevOps & Cloud
  4. terraform-style-guide
DevOps skillsVerified Skill

terraform-style-guide: Claude Code Skill & Agent Tool

An open-source skill by hashicorp (opens in a new tab), published in the hashicorp/agent-skills (opens in a new tab) repository on GitHub. HashiCorp's official skill for writing and reviewing Terraform HCL that follows their style conventions, file organization and best practices.

Install terraform-style-guide

Requires Node.js
$ npx skills add hashicorp/agent-skills --skill terraform-style-guide

Run this command in your project terminal to install this skill for Claude Code.

What this skill does

terraform-style-guide is HashiCorp's official skill for generating and reviewing Terraform configuration that follows the company's published style conventions. When you ask your agent to write, review or generate Terraform, it applies a consistent strategy instead of improvising.

Files follow a standard organization — terraform.tf for versions, then variables.tf, locals.tf, main.tf and outputs.tf — and code is formatted the way terraform fmt expects, with aligned arguments and blocks in a predictable order. Resource names are descriptive nouns with underscores, every variable has a type and a description, and every output is documented. For multiple resources the agent prefers for_each over count, keeping count for conditional creation, so instances keep stable names.

Security and stability get their own rules: version constraints are pinned explicitly for Terraform and its providers, sensitive values are marked as sensitive, credentials are never hard-coded, and aliased providers handle multi-region deployments. The skill ends with validation tools and a code review checklist — formatted, validated, organized, typed, documented, pinned and free of secrets — that the agent can run through before you merge. Use it with Claude Code to keep infrastructure as code readable and consistent across a team.

Key Capabilities

  • Standard file layout: terraform.tf, variables.tf, locals.tf, main.tf and outputs.tf
  • Formatting, block order and naming conventions from HashiCorp's style guide
  • Typed, documented variables and outputs, with for_each preferred over count
  • Pinned versions, sensitive values marked and no hard-coded credentials
  • Code review checklist with terraform fmt and terraform validate

How to use with Claude Code & AI Agents

  1. 01

    Install the skill

    Run the command above at the root of your project. The CLI asks which agents to set up — Claude Code, Cursor and other supported agents — and adds terraform-style-guide to the project, so teammates who pull the repository get it too. Add -g to install it for your user account across every project.
  2. 02

    Open a new agent session

    Start a fresh Claude Code session in that project so the agent loads the new skill. Have ready: Terraform CLI (for fmt and validate).
  3. 03

    Ask in plain words

    Describe the task, for example:“Write a Terraform module for an S3 bucket following HashiCorp's style guide.”The agent matches your request to the skill's description and follows its SKILL.md instructions step by step. Read them on GitHub before using the skill on a system that matters.

Skill details

Author
hashicorp (opens in a new tab)
Repository
hashicorp/agent-skills (opens in a new tab)
Install name
terraform-style-guide
Category
DevOps & Cloud
Works with
  • Claude Code
  • Cursor
  • Agent CLI
Requirements
  • Node.js (runs the installer)
  • Terraform CLI (for fmt and validate)
View source on GitHub (opens in a new tab)

Verified by findaskill: the repository exists and npx skills add finds this skill under this exact name.

Related Skills in DevOps & Cloud

  • wshobson

    github-actions-templates

    Production-ready GitHub Actions workflows for testing, building and pushing Docker images and deploying to Kubernetes, including matrix builds and reusable templates.

    View skill
  • jeffallan

    kubernetes-specialist

    Writes and audits Kubernetes manifests — deployments, RBAC, NetworkPolicies, Helm charts, resource limits and storage — and helps debug crashing pods from their logs.

    View skill
Back to all DevOps & Cloud skills

By using it, you agree to our Terms and Privacy Policy. . Contact us.

Explore Skills & Tools

findaskill

The open skills directory for Claude Code & AI agents

© 2026 findaskill

Categories

  • Coding
  • SEO
  • Scraping
  • DevOps
  • Security
  • MCP

Featured Skills

  • seo-auditMarketing & Technical SEO
  • firecrawl-seo-auditWeb Crawling & Audit
  • audit-websiteAutomated Code Fixer
  • web-quality-seoLighthouse & Standards

Platform & Legal

  • Skills Catalog
  • Categories
  • MCP Directory
  • Terms
  • Privacy