Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Terraform Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-terraform-patterns)
---
name: terraform-patterns
description: "Terraform/OpenTofu: module structure, remote state, workspaces vs directories, plan review and drift."
tags: [devops, cloud]
---
# Terraform Patterns
## When to use
- Infrastructure as code
## Procedure
1. Small composable modules
2. Remote state with locking
3. Separate state per environment;fmt/validate/tflint in CI
4. Review plans for destroys
## Checklist
- [ ] No hardcoded credentials
## Anti-patterns
- One giant root module