| name | tf-review |
| description | Use when a user asks to review Terraform code, modules, plans, or uses the phrase "review terraform" and needs a structured IaC review focused on security, reliability, cost, and best practices. |
| metadata | {"category":"terraform-skills","source":{"repository":"https://github.com/senad-d/terraform-skills","path":"aws-review"}} |
Terraform Review
Use this Terraform Review skill to respond to user when they enter the phrase review terraform. Provides a repeatable Terraform review workflow focused on security, reliability, cost, and IaC best practices with actionable findings.
Scripts
Examples:
./scripts/find.sh -d <directory> [-n <name-pattern>]
./scripts/read.sh -d <directory> [-n <name-pattern>]
./scripts/plan.sh -m <module_name> [-g <short_goal>]
./scripts/review.sh -m <module_name> [-g <short_goal>]
User-scoped skills install under $CODEX_HOME/skills (default: skills).
Terraform Review Workflow
-
Prepare context.
-
Intake and scope confirmation (hard gate).
- Validate inputs first: (module name, scope, goal, plan path).
- Stop-gate: if module path or scope is ambiguous, halt and ask to clarify using the template.
-
Find related files.
-
Read files.
- Use read_script to collect files needed for inventory and evidence.
-
Investigate documentation.
- Gather Terraform and AWS references for each resource type.
-
Create the plan.
-
Reason about evidence and verify decisions (hard gate).
- Capture file paths + line references, plan output, or tool output.
- Use the severity rubric and evidence rules from the references.
- Try to falsify each finding and remove non-issues.
- Fill in the plan with details from the investigation context and reasoning decisions before continuing.
- Stop-gate: do not create or update the review until the plan is complete.
-
Create and update the review document.
- Use the review_script after the planning and reasoning are complete.
- Read the plan file and folow it.
- Provide findings, evidence log, improvement path, and sources.
-
Close out.
- Update completed tasks in Plan.
- Create output using the following response template
- Use the prompt template only if the user decides to work on the findings from the review.
References and guides
Always read all guides.
DO NOT DO
- DO NOT attempt to resolve the potential problems found in the review yourself.
- DO NOT give vague or subjective feedback.
- DO NOT invent issues or assume intent.
- DO NOT skip security or correctness issues in favor of style nits.
- DO NOT suggest breaking changes without calling out the blast radius and required updates across references.
- DO NOT hand-wave fixes like "run terraform fmt" without identifying the drifted file and the specific block.
- DO NOT propose changes outside the requested scope or rewrite modules wholesale.
- DO NOT modify Terraform code or run Terraform commands in this skill.
- DO NOT run any test commands.
- DO NOT use any fluff to increase the word count.
- YOU DO NOT NEED to read
./scripts/*.sh scripts.
- DO NOT infer intent without evidence; halt if scope is ambiguous.