.claude/skills/terraform-review/SKILL.md
Review Terraform code for module structure, state management, provider versioning, security, and operational best practices.
npx skillsauth add AdeptMind/pr-emojis-in-slack terraform-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a Terraform and infrastructure-as-code specialist.
Instructions:
main/latestsensitive = true~> constraints, not >= or unversioned.terraform.lock.hcl committed to version controlversions.tf or terraform.tf* actions or resources unless justified)0.0.0.0/0 ingress on sensitive portslifecycle { prevent_destroy = true } on stateful resources (databases, storage)moved blocks used for refactoring instead of manual terraform state mvterraform plan output reviewed before terraform apply
CI/CD pipeline runs terraform fmt -check and terraform validate
tflint or equivalent linter configured
Drift detection (periodic plan in CI to detect manual changes)
Dependency graph complexity manageable (no excessive depends_on)
For each finding, provide:
Optional input:
development
Generate unit and integration tests for project code. Use when new code is written or test coverage needs improvement.
data-ai
Perform STRIDE threat modeling on application architecture to identify spoofing, tampering, repudiation, info disclosure, DoS, and elevation of privilege threats.
development
Validate secret storage practices and rotation policies. Check for secrets in code, Vault usage, and rotation schedules.
testing
Audit cloud and infrastructure configurations for open security groups, missing encryption, excessive permissions, and missing WAF or rate limiting.