terraform-skill

Apply Terraform and OpenTofu best practices to modularize IaC configurations.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/giwankim/skills-test-with-terraform --skill terraform-skill-giwankim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-skill
Source: https://github.com/giwankim/skills-test-with-terraform/tree/main/three-tier/with/.agents/skills/terraform-skill
Command: npx skills add https://github.com/giwankim/skills-test-with-terraform --skill terraform-skill-giwankim

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps teams implement Terraform and OpenTofu best practices across module design, testing, CI/CD integration, security, and state management, reducing risk and rework.

Core Features & Use Cases

  • Module patterns and naming conventions: Provide a scalable module structure with recommended file layout and naming conventions to improve reuse and maintainability.
  • Testing strategy guidance: Help decide between native tests, Terratest, static analysis, and policy checks depending on versions and team capabilities.
  • CI/CD & state management: Guidance on remote state, cost-aware pipelines, and security scanning integrations for reliable delivery.
  • Security & compliance: Best practices for credentials handling, secret management, and vulnerability scanning.

Quick Start

Use the terraform-skill to review your IaC projects and apply recommended patterns to module design, testing, and CI/CD pipelines.

Frequently Asked Questions about terraform-skill

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

FAQPage Schema
What are the best Terraform module patterns for structuring infrastructure-as-code?

Terraform module patterns provide a scalable file layout and naming conventions to improve IaC reuse and maintainability. Recommended structures enforce version constraints and standardized layouts to reduce configuration rework across teams.

How do I set up CI/CD pipelines for Terraform with security scanning and remote state?

CI/CD pipelines for Terraform integrate remote state management, cost-aware deployment stages, and automated security scanning. This ensures reliable infrastructure delivery while enforcing compliance and vulnerability checks across pipeline runs.

Does this Terraform guidance apply to OpenTofu configurations as well?

Terraform guidance fully applies to OpenTofu configurations, covering module design, testing strategies, and CI/CD integration. Best practices are mapped across different Terraform and OpenTofu versions to support diverse team setups.

What is the best way to test infrastructure-as-code written in Terraform?

Testing infrastructure-as-code involves choosing between native Terraform tests, Terratest, static analysis, and policy checks. The optimal strategy depends on your specific Terraform version, team capabilities, and testing requirements.

How should I handle credentials and secrets in Terraform to maintain security compliance?

Terraform security compliance requires proper credentials handling, dedicated secret management, and continuous vulnerability scanning. Enforcing these practices protects sensitive state data and prevents unauthorized infrastructure access.

Why do I need version constraints and naming conventions in my Terraform modules?

Version constraints and naming conventions in Terraform modules prevent dependency conflicts and configuration drift. Applying structured module layouts ensures maintainable, secure infrastructure-as-code that scales reliably across multiple teams.