agentleFS
atstaeffatstaeff/ai-agents/skills/engineering/terraform-iac/SKILL.md

terraform-iac

Skill4 starsChanged 24 days agoMITView on GitHub

Create, review or refactor Terraform infrastructure with explicit state ownership, provider/module compatibility, IAM scope and plan evidence. Select for drift, imports, moves or replacement risk.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run formatting and validation with the established toolchain.

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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 IaC

Workflow

  1. Identify the root module, environment, backend/workspace, state owner, credentials and intended resources. Inspect declared Terraform/provider versions, lockfile and module sources. Keep dependency upgrades separate unless required by the change.
  2. Define a small infrastructure increment and its blast radius. Use typed inputs and useful outputs; introduce modules for a cohesive owned boundary or demonstrated reuse. Pin remote module sources to reviewed versions/revisions; the provider lockfile does not lock module versions.
  3. Preserve one writer per state and backend locking where supported. Protect state, saved plans and JSON output as potentially sensitive; redacted CLI values may still persist. Do not place credentials in source or backend arguments that leak into artifacts.
  4. Review IAM ownership and environment isolation. In GCP, distinguish policy, binding and member semantics; avoid competing authoritative/additive resources for the same scope/role. Scope privileges to the actual operation.
  5. Run formatting and validation with the established toolchain. Where access permits, produce and inspect a plan for the exact revision, variables and target environment. Review every create/update/delete/replacement, unknown value and drift effect; explain unexpected changes before proceeding.
  6. For imports, address moves or backend changes, retain the resource-to-state mapping and a tested recovery approach. Prefer declarative import/moved mechanisms supported by the installed version. Do not bypass locking or edit state casually to obtain a clean plan.
  7. Apply only within existing authorization and review requirements, using the reviewed plan or the platform's equivalent controlled run. Replan after material source/input/state changes. Verify actual access, service behavior and remaining drift after an authorized apply; reverting configuration is not automatic recovery of deleted data.

Result

Return the configuration diff, target/state identity, plan effects, executed checks and recovery limits. Without tooling or credentials, deliver a reviewable change and mark validation/plan/apply evidence unavailable; do not infer a no-op or successful deployment.

Focused reference

  • Plan and migration review: for IAM, imports/moves, sensitive artifacts or a failed operation.
  • GCP patterns: cloud service selection and runtime behavior.

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.