terraform-test
🎯Skillfrom hashicorp/agent-skills
Helps developers automatically generate and run comprehensive test suites for Terraform configurations, modules, and infrastructure code
Overview
Terraform Test is part of the HashiCorp Agent Skills collection, providing AI agent guidance for writing and running Terraform tests. The skill is part of a broader set covering Terraform HCL code generation, module development, provider development, and testing workflows. It integrates with multiple AI coding assistants including Claude Code, GitHub Copilot, Cursor, and OpenCode.
Key Features
- Terraform test authoring: Guides writing Terraform test files (
.tftest.hcl) with proper structure, assertions, and test scenarios. - Multi-agent support: Installable via the universal
npx skills addCLI or as a Claude Code plugin through the HashiCorp marketplace. - HashiCorp ecosystem integration: Covers both Terraform and Packer workflows within a single skill collection, including HCP Packer registry integration.
- Provider and module testing: Supports testing patterns for both Terraform modules and custom provider development.
- Official HashiCorp guidance: Skills are maintained by HashiCorp, ensuring alignment with official Terraform conventions and best practices.
Who is this for?
This skill is for infrastructure engineers and DevOps teams who write Terraform configurations and want AI assistance in creating comprehensive test suites. It is especially valuable for teams adopting Terraform's native testing framework and looking for guidance on test structure, assertions, and CI integration.
Same repository
hashicorp/agent-skills(22 items)
Installation
npx vibeindex add hashicorp/agent-skills --skill terraform-testnpx skills add hashicorp/agent-skills --skill terraform-test~/.claude/skills/terraform-test/SKILL.mdSKILL.md
More from this repository10
Validates and auto-corrects Terraform code for consistent formatting, naming conventions, and best practices across infrastructure configurations.
Refactors and improves Terraform modules by analyzing code structure and suggesting modular, reusable code improvements
Collection of agent skills and Claude Code plugins for HashiCorp Terraform and Packer, covering HCL code generation, module development, provider development, testing, and machine image builds.
Generates and manages Terraform provider resource definitions, helping developers create custom provider resources with best practices and standard patterns.
Generates boilerplate code and scaffolding for creating a new custom Terraform provider with best practices and standard structure.
Agent skills and Claude Code plugins for HashiCorp products including Terraform (HCL code, modules, providers, tests) and Packer (machine images, HCP Packer registry).
Runs automated acceptance tests for HashiCorp Terraform providers to validate resource and data source implementations against real infrastructure.
Skill
Generates and validates Azure-specific Terraform modules that adhere to HashiCorp's best practices and Azure cloud standards.
Automates the creation and configuration of Amazon Machine Images (AMIs) on AWS using Packer, streamlining machine image build processes.