agentleFS
shinzoxDshinzoxD/knackbox/skills/coding/terraform-review/SKILL.md

terraform-review

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Review Terraform and OpenTofu configuration and plans for blast

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat apply as a production change.

    line 17
  2. Very specific:

    Read plan summary: create/update/replace/destroy counts and critical resources.

    line 23
  3. Distinctive:

    Check IAM, network exposure, secrets, and public endpoints.

    line 24
  4. Distinctive:

    Call out missing remote state locking, missing CI plan, or local-only state.

    line 27
  5. Very specific:

    Never invent plan output; if missing, ask for terraform plan (or equivalent).

    line 61
  6. Distinctive:

    Prefer modules and env separation over copy-paste with silent drift.

    line 62

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Terraform Review

Treat apply as a production change. Optimize for least privilege, least surprise, and reversible steps. Prefer plan evidence over vibes.

Workflow

  1. Identify providers, workspaces/envs, backend/state, and blast radius.
  2. Read plan summary: create/update/replace/destroy counts and critical resources.
  3. Check IAM, network exposure, secrets, and public endpoints.
  4. Flag force-new / replace chains and data-loss paths.
  5. Order safe apply (expand before destroy) and verification.
  6. Call out missing remote state locking, missing CI plan, or local-only state.

Severity tags

  • [blocking] destroy/replace of stateful prod data, open 0.0.0.0/0 admin, secrets in VCS/state plaintext without process
  • [important] overly broad IAM, missing tags/ownership, non-concurrent-safe patterns
  • [nit] style, naming, minor refactors

Output format

## Terraform review

**Scope:** …
**Env assumption:** …

### Plan / change summary
…

### Findings
1. [blocking] …

### Apply order
1. …

### Verify after apply
…

### Do not apply if
…

Rules

  1. Never invent plan output; if missing, ask for terraform plan (or equivalent).
  2. Prefer modules and env separation over copy-paste with silent drift.
  3. Secrets: no committing .tfvars secrets; use secret managers / CI injection.
  4. State: remote backend + locking for shared envs.
  5. Destructive changes need explicit user confirmation language.
  6. Distinguish OpenTofu/Terraform only when syntax or workflow differs.

Edge cases

  • Import / move: review address changes carefully; wrong move corrupts state.
  • for_each / count index churn: warn about replace storms.
  • Partial apply failures: recovery notes and state surgery as last resort.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.