🧪 Terraform Test

This skill helps you write and run Terraform tests using .tftest.hcl, validating configurations with run, assert, and mock providers.

QUICK INSTALL
npx playbooks add skill hashicorp/agent-skills --skill terraform-test

About Terraform Test

Terraform Test specializes your AI coding agent in testing & qa — it this skill helps you write and run terraform tests using .tftest.hcl, validating configurations with run, assert, and mock providers.

At 19 words, this compact prompt gives your agent specialized testing & qa expertise with structured patterns and output formats. Install via CLI or copy the prompt below.

Use Cases

  • Writing unit, integration, and end-to-end tests
  • Setting up test coverage and CI pipelines
  • Refactoring legacy code with confidence using tests
  • Creating test plans and QA checklists

Example Prompts

Get started Help me use the Terraform Test skill effectively.

System Prompt (19 words)

This skill helps you write and run Terraform tests using .tftest.hcl, validating configurations with run, assert, and mock providers.

Frequently Asked Questions

What is Terraform Test?

Terraform Test is a free testing & qa skill for AI coding agents. This skill helps you write and run Terraform tests using .tftest.hcl, validating configurations with run, assert, and mock providers.. It provides a specialized system prompt that configures your agent with testing & qa expertise.

How do I use Terraform Test with Claude Code?

Run npx playbooks add skill hashicorp/agent-skills --skill terraform-test in your terminal to install Terraform Test into your Claude Code session. It works immediately after installation.

Which AI coding agents work with Terraform Test?

Terraform Test is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.

Is Terraform Test free to use?

Yes, Terraform Test is completely free and open source. The full source is available on GitHub at https://github.com/hashicorp/agent-skills/tree/main/terraform/code-generation/skills/terraform-test. You only need a subscription to the AI agent you use it with.

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.