stark-terraform-review

Reviews Terraform and OpenTofu HCL code across multiple LLM agents for security and correctness findings.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/21StarkCom/stark-skills --skill stark-terraform-review-21starkcom
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: stark-terraform-review
Source: https://github.com/21StarkCom/stark-skills/tree/main/runtime-overrides/codex/skill/stark-terraform-review
Command: npx skills add https://github.com/21StarkCom/stark-skills --skill stark-terraform-review-21starkcom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Reviewing Terraform/OpenTofu infrastructure code for security flaws, state-safety risks, and module-contract issues is slow and error-prone when done manually, and a single reviewer often misses failure modes that another model or scanner would catch. ## Core Features & Use Cases - Multi-agent review: Dispatches the review to one or more configurable LLMs (claude, codex, gemini) as independent subagents, then merges and cross-validates their findings. - Failure-mode rubric: Checks identity churn, secret exposure, blast radius, state safety, module contracts, and testing gaps with a version-aware guard for the detected Terraform/OpenTofu version. - Consent-gated execution: Runs a metadata-only dry-run preview first, excludes .tfvars by default, and requires explicit approval before dispatching file contents to providers, running host scanners (tflint, trivy, checkov), or posting to a PR. - Use Case: Point it at an infra/ directory before merging; it collects the in-scope .tf files, reviews them with codex and gemini in parallel, dedups findings, and exits non-zero if critical or high issues remain so it can gate a pipeline. ## Quick Start Ask the assistant to review the Terraform code in the current directory with stark-terraform-review, approve the file list shown in the dry-run preview, and confirm dispatch to the configured LLM agents.

Frequently Asked Questions about stark-terraform-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Terraform code for security issues with AI?▼

Run stark-terraform-review against a file or directory; it collects the in-scope .tf files and dispatches them to configured LLM agents using a security and correctness rubric. A dry-run preview shows the exact file list before any content is sent to a provider.

How to run a Terraform review with multiple LLMs like Gemini and Codex?▼

Pass --agents gemini,codex or set iac_review.agents in config to run several LLMs as independent subagents. Findings that multiple agents agree on are marked as cross-validated after deduplication.

Does the Terraform review include .tfvars files with secrets?▼

No, .tfvars files are excluded by default because they commonly contain credentials. They are included only when you explicitly pass --include-tfvars after previewing and redacting the specific files.

Can I review Terraform in a directory that is not a git repository?▼

Yes, pass the explicit path and omit --changed; the dispatcher collects and reviews the full HCL tree directly. The absence of .git is not treated as an error.

What is the difference between Terraform and Terragrunt review here?▼

This skill reviews Terraform/OpenTofu HCL only and is review-only with no code changes. For Terragrunt orchestration code, use the separate stark-terragrunt-review skill instead.