.claude/skills/terraform-review/SKILL.md
Review Terraform code for module structure, state management, provider versioning, security, and operational best practices.
npx skillsauth add foutoucour/guitar-exercises 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:
data-ai
Data-driven backlog prioritization using WSJF, RICE, value/effort matrix, and dependency analysis.
development
Generate unit and integration tests for project code. Use when new code is written or test coverage needs improvement.
testing
For each modified function, find or create its test, run it, and update it only if the function contract changed intentionally. Never silently adjust tests to make failures disappear.
development
Identify, quantify, and communicate technical debt so it becomes negotiable with PO/TL — code smells, dependency health, architecture erosion, test and doc debt.