Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyzes Terraform modules for complexity, documentation, and AWS security misconfigurations, with module design guidance for reviews.
52% 87%+35 ptsof test cases passed
Passed 20 of 23 test cases with the skill, and 12 of 23 without it.
We need to run a full quality audit across our entire repository to analyze all nested Terraform modules without checking each folder individually. What Python tool command and flag enables nested directory scanning?
Includes the --recursive flag to analyze nested module directories.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Category: Engineering Domain: Infrastructure as Code
The Terraform Patterns skill provides automated analysis of Terraform configurations for module complexity, security misconfigurations, and infrastructure best practices. It catches open ports, public buckets, missing encryption, and overly permissive IAM policies before they reach production.
type and description; validate with validation blocks; output only what callers need. [PROVEN]for_each over count for collections. count re-indexes and destroys resources when an item is removed from the middle of a list; for_each keys by name. Use count only for on/off toggles. [PROVEN]required_version and each provider with ~> to the major you tested, commit .terraform.lock.hcl, and version shared modules with git tags or a registry. Upgrade providers on purpose, reading the upgrade guide for each major. [PROVEN]moved blocks when refactoring addresses so plan shows a move rather than a destroy and create. [RECOMMENDED]Before analyzing or scanning, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
--path; the subject).tf_module_analyzer vs tf_security_scanner).--min-severity; changes the report and CI pass/fail).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
# Analyze Terraform module structure and complexity
python scripts/tf_module_analyzer.py --path ./modules/vpc
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.