agentleFS
JonatanRocha2JonatanRocha2/vegapunk/skills/en/terraform-infrastructure/SKILL.md

terraform-infrastructure

Skill0 starsChanged 3 months agoMITView on GitHub

Authors, reviews, tests, imports, refactors, and troubleshoots Terraform or OpenTofu infrastructure. Use for HCL, modules, providers, state, plans, drift, CI, migrations, or IaC security; not for applying production changes without explicit approval.

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

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer typed variables, validation, meaningful outputs, provider constraints, and small cohesive modules.

    line 19
  2. Distinctive:

    Run formatting and static validation, then provider-specific lint, security, policy, and tests already used by the project.

    line 20
  3. Distinctive:

    Verify the real resource, outputs, health, policy, drift, and rollback or recovery path.

    line 24
  4. Distinctive:

    Never place credentials or secret values in HCL, variable files, plans, outputs, logs, or state unnecessarily.

    line 28
  5. Distinctive:

    Treat plans and state as sensitive artifacts.

    line 29
  6. Very specific:

    Do not use -target as routine deployment strategy.

    line 30
  7. Distinctive:

    Avoid provisioners when a provider or image/bootstrap mechanism can model the lifecycle.

    line 31
  8. Very specific:

    Do not add ignore_changes merely to hide unexplained drift.

    line 33
  9. Very specific:

    Never run apply, destroy, forced unlock, or state mutation without explicit approval and scope confirmation.

    line 34
  10. Distinctive:

    Use those instructions selectively rather than installing overlapping skills by default.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 Infrastructure

Preserve state integrity and make the smallest safe infrastructure change.

Workflow

  1. Inspect required versions, providers, modules, backends, lock file, workspace/environment strategy, and repository conventions.
  2. Identify the desired resource lifecycle and whether existing objects or addresses must be preserved.
  3. Prefer typed variables, validation, meaningful outputs, provider constraints, and small cohesive modules.
  4. Run formatting and static validation, then provider-specific lint, security, policy, and tests already used by the project.
  5. Produce a saved or CI-recorded plan. Read every create, update, replace, delete, unknown, and sensitive-value implication.
  6. For refactors, use moved, import, or state operations deliberately; back up and lock state before exceptional state manipulation.
  7. Apply only after approval in the intended account, project, subscription, region, and workspace.
  8. Verify the real resource, outputs, health, policy, drift, and rollback or recovery path.

Guardrails

  • Never place credentials or secret values in HCL, variable files, plans, outputs, logs, or state unnecessarily.
  • Treat plans and state as sensitive artifacts.
  • Do not use -target as routine deployment strategy.
  • Avoid provisioners when a provider or image/bootstrap mechanism can model the lifecycle.
  • Pin provider ranges deliberately and commit the dependency lock file for root modules.
  • Do not add ignore_changes merely to hide unexplained drift.
  • Never run apply, destroy, forced unlock, or state mutation without explicit approval and scope confirmation.

Specialized Official Guidance

For focused Terraform work, consult the relevant skill in HashiCorp's official hashicorp/agent-skills catalog, including style, tests, stacks, module refactoring, policy, and resource import. Use those instructions selectively rather than installing overlapping skills by default. Keep this skill as the provider-neutral safety and lifecycle workflow.

Review Output

Report findings by severity with file and line, expected plan impact, state/migration risk, security and cost implications, missing tests, commands executed, and residual risk. If authoring code, leave it formatted and validated and show the plan summary without claiming deployment.

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.