
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.
$ npx -y skills add akin-ozer/cc-devops-skills --skill terraform-generator --agent claude-codeInstalls into .claude/skills of the current project.
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.
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