terraform-best-practices
✓Terraform and Infrastructure as Code optimization guidelines from Terramate. This skill should be used when writing, reviewing, or refactoring Terraform/OpenTofu code to ensure optimal patterns for security, maintainability, and reliability. Triggers on tasks involving Terraform modules, infrastructure provisioning, state management, or IaC optimization.
Installation
SKILL.md
Comprehensive optimization guide for Terraform and Infrastructure as Code, maintained by Terramate. Contains 37 rules across 10 categories, prioritized by impact to guide automated refactoring and code generation.
| 1 | Organization & Workflow | CRITICAL | org- | | 2 | State Management | CRITICAL | state- | | 3 | Security Best Practices | CRITICAL | security- | | 4 | Module Design | HIGH | module- | | 5 | Resource Organization | MEDIUM-HIGH | resource- | | 6 | Variable & Output Patterns | MEDIUM | variable-, output- |
| 7 | Language Best Practices | MEDIUM | language- | | 8 | Provider Configuration | MEDIUM | provider- | | 9 | Performance Optimization | LOW-MEDIUM | perf- | | 10 | Testing & Validation | LOW | test- |
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/terramate-io/agent-skills --skill terraform-best-practices- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-05
- Updated
- 2026-02-18
Quick answers
What is terraform-best-practices?
Terraform and Infrastructure as Code optimization guidelines from Terramate. This skill should be used when writing, reviewing, or refactoring Terraform/OpenTofu code to ensure optimal patterns for security, maintainability, and reliability. Triggers on tasks involving Terraform modules, infrastructure provisioning, state management, or IaC optimization. Source: terramate-io/agent-skills.
How do I install terraform-best-practices?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/terramate-io/agent-skills --skill terraform-best-practices Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/terramate-io/agent-skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-05