Agent skill · DevOps & Cloud

terraform-skill

Terraform infrastructure as code best practices

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill terraform-skill --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 16 KB
Bundled scripts: none
Path: skills/terraform-skill/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Terraform Skill for Claude Comprehensive Terraform and OpenTofu guidance covering testing, modules, CI/CD, and production patterns. Based on terraform-best-practices.com and enterprise experience. ## When to Use This Skill **Activate this skill when:** - Creating new Terraform or OpenTofu configurations or modules - Setting up testing infrastructure for IaC code - Deciding between testing approaches (validate, plan, frameworks) - Structuring multi-environment deployments - Implementing CI/CD for infrastructure-as-code - Reviewing or refactoring existing Terraform/OpenTofu projects - Choosing between module patterns or state management approaches **Don't use this skill for:** - Basic Terraform/OpenTofu syntax questions (Claude knows this) - Provider-specific API reference (link to docs instead) - Cloud platform questions unrelated to Terraform/OpenTofu ## Core Principles ### 1. Code Structure Philosophy **Module Hierarchy:** | Type | When to Use | Scope | |------|-------------|-------| | **Resource Module** | Single logical group of connected resources | VPC + subnets, Security group + rules | | **Infrastructure Module** | Collection of resource modules for a purpose | Multiple re

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Core Principles
  3. 1. Code Structure Philosophy
  4. 2. Naming Conventions
  5. Testing Strategy Framework
  6. Decision Matrix: Which Testing Approach?
  7. Testing Pyramid for Infrastructure
  8. Native Test Best Practices (1.6+)
  9. Code Structure Standards
  10. Resource Block Ordering
  11. Variable Block Ordering
  12. Count vs ForEach: When to Use Each
  13. Quick Decision Guide
  14. Common Patterns
Commands it runs
Static security scanning
trivy config .
checkov -d .
Lock versions initially
terraform init              # Creates .terraform.lock.hcl
Update to latest within constraints
terraform init -upgrade     # Updates providers
Review and test
terraform plan
More from agentic-awesome-skills
All skills →
About this skill
What does the terraform-skill skill do?

Terraform infrastructure as code best practices

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill terraform-skill --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going