terraform-skill

Guide Terraform/OpenTofu infrastructure design, testing, and governance.

3|1|Updated Dec 17, 2013
One-click install
npx skills add https://github.com/jmreicha/configs --skill terraform-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-skill
Source: https://github.com/jmreicha/configs/tree/main/skills/terraform
Command: npx skills add https://github.com/jmreicha/configs --skill terraform-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terraform/OpenTofu projects often suffer from inconsistent structure, brittle module boundaries, and fragmented guidance on testing, security scanning, and state management. This skill consolidates best practices, patterns, and decision frameworks to help engineers design, implement, and govern IaC with confidence.

Core Features & Use Cases

  • Modular design guidance: Define clear module types (Resource, Infrastructure, Composition) and recommended directory layouts.
  • Testing & security: Decide between native tests, Terratest, and static security checks; integrate Trivy/Checkov.
  • Governance & versioning: Provide guidance on version constraints, remote state, and cross-module dependencies; assist with migration paths.
  • Use Case: Example: structuring a multi-environment Terraform deployment with remote state and module patterns.

Quick Start

Invoke the terraform-skill to get structured IaC guidance for your Terraform/OpenTofu project. Provide your scenario and version (Terraform or OpenTofu) to receive tailored recommendations.

Frequently Asked Questions about terraform-skill

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

FAQPage Schema
How do I structure multi-environment Terraform deployments with remote state?

Structure multi-environment Terraform deployments by defining clear module types like Resource, Infrastructure, and Composition, while enforcing remote state usage and progressive disclosure to maintain consistent directory layouts across environments.

What is the best way to test Terraform modules and run security scanning?

Test Terraform modules by deciding between native tests and Terratest, and integrate static security scanning tools like Trivy or Checkov to automatically validate infrastructure code and detect vulnerabilities before deployment.

Does this Terraform guidance apply to OpenTofu projects as well?

Yes, the Terraform guidance fully applies to OpenTofu projects, providing shared best practices, version management constraints, and decision frameworks for designing, testing, and governing infrastructure-as-code across both platforms.

How do I manage version constraints and cross-module dependencies in infrastructure-as-code?

Manage version constraints and cross-module dependencies by applying IaC governance patterns that define strict module boundaries, ensuring reliable infrastructure composition and clear migration paths for your Terraform or OpenTofu codebase.

What are the recommended module patterns for organizing Terraform code?

Recommended Terraform module patterns categorize code into Resource, Infrastructure, and Composition modules, establishing clear boundaries and directory layouts that prevent brittle structures and enable progressive disclosure of configurations.