terraform-master

Integrates testing, modules, and CI/CD security scans for Terraform/OpenTofu projects.

3|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/opzero1/op1 --skill terraform-master
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-master
Source: https://github.com/opzero1/op1/tree/main/packages/install/templates/skill/terraform-master
Command: npx skills add https://github.com/opzero1/op1 --skill terraform-master

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides comprehensive Terraform/OpenTofu mastery covering testing (native 1.6+, Terratest), modules, CI/CD, security scanning (trivy, checkov), and production patterns. Use for IaC architecture, module development, testing strategy, state management, and infrastructure decisions.

Core Features & Use Cases

  • Native testing support for Terraform 1.6+ including Terratest and mocks
  • Module development patterns and reusable infrastructures
  • CI/CD pipelines integration and security scanning (Trivy, Checkov)
  • Use cases: IaC architecture decisions, module authoring, testing strategy, state management

Quick Start

Load this skill before starting Terraform/OpenTofu projects, then begin by reviewing core principles and executing a basic plan/test workflow to validate configuration and security checks.

Frequently Asked Questions about terraform-master

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up testing for Terraform modules using native tests and Terratest?

To set up Terraform testing, you can use native testing support introduced in Terraform 1.6+ alongside Terratest and mocks. This approach validates your module configurations by executing a basic plan and test workflow to ensure infrastructure code behaves as expected before deployment.

What is the best way to integrate security scanning into a Terraform CI/CD pipeline?

The best way to integrate Terraform security scanning into CI/CD is by incorporating tools like Trivy and Checkov. These scanners enforce code quality and security checks automatically within your documented workflows to ensure production readiness across your infrastructure projects.

Can I use OpenTofu with the same testing and CI/CD patterns as Terraform?

Yes, you can use OpenTofu with the same testing and CI/CD patterns. The skill provides comprehensive OpenTofu mastery covering native tests, module development, and secure CI/CD pipelines, ensuring compatibility across both infrastructure as code platforms.

How do I manage Terraform state and architecture for production readiness?

Managing Terraform state and architecture for production requires applying specific IaC patterns and state management strategies. This involves making informed infrastructure decisions and utilizing reusable module development patterns to maintain stable, production-ready environments.

Do I need Terraform 1.6 or higher to use native testing features?

Yes, you need Terraform 1.6 or higher to use native testing features. The skill specifically enforces native tests available from version 1.6 onwards, while also supporting Terratest and mocks for comprehensive testing strategy execution.