What problem does it solve?
Terraform and OpenTofu teams often struggle to ship reliable infrastructure changes without brittle module structures, missing tests, insecure defaults, and costly CI/CD mistakes; this Skill turns those best practices into actionable guidance.
Core Features & Use Cases
- Module and code structure guidance: Choose the right module hierarchy (resource → module → infrastructure → composition) and keep environments separate from reusable modules.
- Testing strategy for IaC: Select the right testing approach (native tests vs Terratest vs static analysis) and handle plan/apply differences, computed values, and set-type blocks.
- CI/CD pipeline patterns: Implement practical validate/test/plan/apply stages with cost-aware testing and plan artifacts.
- Security & compliance hardening: Use secure configuration patterns and integrate tools like Trivy and Checkov with guardrails against common misconfigurations.
- Production-ready Terraform mechanics: Apply consistent naming, variable/output conventions, version pinning, and safe refactoring patterns (including moved blocks).
Quick Start
Activate terraform-skill and ask: "Review my Terraform/OpenTofu module plan and suggest improvements to structure, testing strategy, CI/CD stages, and security checks."