
Terraform Generator
Generates production-ready Terraform HCL with built-in validation and security scanning. The workflow is strict: it requires consulting best practice references, looking up docs for custom providers, generating configs with proper file organization (main.tf, variables.tf, outputs.tf, versions.tf), then automatically running terraform-validator and forcing you to fix issues before proceeding. Includes smart defaults like data sources for AMIs instead of hardcoded IDs, lifecycle rules on critical resources, and proper variable validation blocks. The checklist approach prevents the common problem of generating syntactically correct but operationally broken infrastructure code. Worth using if you want scaffolding that actually passes validation on the first terraform plan.
- skills.sh installs
- 680
- GitHub stars
- 337
- last updated
- Aug 21, 2026
Install
$ npx -y skills add akin-ozer/cc-devops-skills --skill terraform-generator --agent claude-codeInstalls into .claude/skills of the current project.
Files
Terraform Generator
Overview
This skill enables the generation of production-ready Terraform configurations following best practices and current standards. Automatically integrates validation and documentation lookup for custom providers and modules.
Critical Requirements Checklist
STOP: You MUST complete ALL steps in order. Do NOT skip any REQUIRED step.
| Step | Action | Required |
|---|---|---|
| 1 | Understand requirements (providers, resources, modules) | ✅ REQUIRED |
| 2 | Check for custom providers/modules and lookup documentation | ✅ REQUIRED |
| 3 | Consult reference files before generation | ✅ REQUIRED |
| 4 | Generate Terraform files with ALL best practices | ✅ REQUIRED |
| 5 | Include data sources for dynamic values (region, account, AMIs) | ✅ REQUIRED |
| 6 | Add lifecycle rules on critical resources (KMS, databases) | ✅ REQUIRED |
| 7 | Invoke Skill(devops-skills:terraform-validator) | ✅ REQUIRED |
| 8 | FIX all validation/security failures and RE-VALIDATE | ✅ REQUIRED |
| 9 | Provide usage instructions (files, next steps, security) | ✅ REQUIRED |
Sponsors
Details
- Repository
- github.com/akin-ozer/cc-devops-skills
- Categories
- DevOps & CI/CD, Automation & Workflows, Cloud & Infrastructure
- First seen
- Jun 3, 2026
More from akin-ozer/cc-devops-skills
All 31- Helm Generator674
- Makefile Validator671
- Makefile Generator659
- Promql Generator656
- Promql Validator646
- Fluentbit Generator640
- Logql Generator640
- Fluentbit Validator637
- Loki Config Generator622
- Ansible Validator1.6K
- Terragrunt Generator1.2K
- Ansible Generator907
- K8s Debug887
- Jenkinsfile Generator862
- Dockerfile Validator786
- Dockerfile Generator741
- Bash Script Validator734
- Gitlab Ci Validator725
- K8s Yaml Validator715
- Helm Validator712
- Bash Script Generator710
- Jenkinsfile Validator706
- Terragrunt Validator703
- K8s Yaml Generator694