Terraform

From georgekhananaev/claude-skills-vault · View interactive version

Terraform is an AI agent skill from the GitHub repository georgekhananaev/claude-skills-vault. Terraform infrastructure-as-code skills from HashiCorp. Covers HCL code generation with style conventions, testing with .tftest.hcl files, and module refactoring. Use when writing, reviewing, generating, or refactoring Terraform configurations, creating tests, or designing modules.

How to use this skill

Skill file

Terraform Skills

HashiCorp's official Terraform agent skills for infrastructure-as-code development.

Available Sub-Skills

| Skill | File | Use When |

|-------|------|----------|

| Style Guide | terraform-style-guide-SKILL.md | Writing or reviewing Terraform HCL code |

| Testing | terraform-test-SKILL.md | Creating .tftest.hcl test files, writing assertions, mocking |

| Module Refactoring | refactor-module-SKILL.md | Transforming monolithic configs into reusable modules |

Quick Reference

File Organization

| File | Purpose |

|------|---------|

| terraform.tf | Version requirements |

| providers.tf | Provider configurations |

| main.tf | Primary resources |

| variables.tf | Input variables (alphabetical) |

| outputs.tf | Output values (alphabetical) |

| locals.tf | Local values |

Key Conventions

Validation

terraform fmt -recursive
terraform validate

Source

From hashicorp/agent-skills - terraform code-generation and module-generation plugins.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.