infra-as-code
Skill13 starsChanged 4 days agoMITView on GitHub
Manage OpenTofu/Terraform modules, providers, state, and plans.
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dotword for word, first seen Nov 8, 2026
- albertdobmeyer/openskill-forgetheir own version, first seen Apr 2, 2026
- Dokkabei97/forged-claude-codetheir own version, first seen Mar 1, 2026
Other versions3 projects use a version of this.
Word for word · 1
- fmind/dot★ 13100% same
Edited · 0
None found.
Wrote their own version · 2
- Dokkabei97/forged-claude-code★ 2same name
- albertdobmeyer/openskill-forge★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dot_agents/AGENTS.mdAGENTS.md
- skills/repository-docs/references/agents.mdAGENTS.md
- chezmoiSkill
- dot-developmentSkill
- dot-releaseSkill
- dot-skillsSkill
- dot-verifySkill
- acliSkill
- agent-evaluationSkill
- agent-frameworksSkill
- agent-harnessesSkill
- agent-projectSkill
- agent-protocolsSkill
- agySkill
- airflowSkill
- auth-statusSkill
- awsSkill
- bfSkill
- chrome-devtoolsSkill
- clipboardSkill
- cloud-runSkill
- code-securitySkill
- colabSkill
- databricksSkill
- diagrams-as-codeSkill
- dockerSkill
- documentation-siteSkill
- dot-cliSkill
- dprintSkill
- draft-docSkill
- draft-mailSkill
- duckdbSkill
- fmind-visualsSkill
- full-reviewSkill
- gcloudSkill
- ghSkill
- git-deliverySkill
- github-actionsSkill
- github-issuesSkill
- github-pull-requestSkill
- github-repositorySkill
- google-developerSkill
- gwsSkill
- hfSkill
- kaggleSkill
- kubernetesSkill
- lesson-learnedSkill
- mcp-setupSkill
- miseSkill
- model-providersSkill
- playwrightSkill
- project-scaffoldingSkill
- python-mlopsSkill
- python-stackSkill
- python-webSkill
- repository-docsSkill
- scheduled-jobsSkill
- skillifySkill
- <name>Skill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Keep modules under
infra/: run tofu -chdir=infra ... and tflint --chdir=infra from one check:tofu task instead of copying the standalone … - Very specific: line 35
Validate without the live backend: run tofu -chdir=infra init -backend=false -input=false -lockfile=readonly with env.TF_DATA_DIR = …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Infrastructure as Code
Canonical infrastructure as code with OpenTofu (the open-source Terraform fork; the binary is tofu). A repository that needs a BSL-licensed feature or employer-mandated HashiCorp Terraform pins terraform in its own mise configuration and documents the deviation.
Defaults
- Default to OpenTofu via project mise pins:
opentofutool,tofubinary; verify provider, backend, state, and language-feature compatibility before a Terraform migration. The workstation installstofuandtflintglobally only for the editor; declareopentofu,tflint, andterraform-docsin the project'smise.tomlwithmise use --pin <tool>, as the template does. - Use the template tasks and hooks: mise.toml exposes the canonical vocabulary per mise —
checkfans out to format, validate, lint (tflint), scan (trivy), and leaks; lefthook.yml wires the hooks per lefthook. - Generate docs with terraform-docs:
mise run buildinjects the inputs/outputs table between theTF_DOCSmarkers inREADME.md(add them once at scaffold time) per terraform-docs.yml, without cloud access. - Authenticate without service-account keys: Application Default Credentials locally; Workload Identity Federation in CI per cloud-run bootstrap.
Workflow
- Resolve the target: identify the root module, backend, workspace (
tofu workspace show), cloud project, credentials, and the authorized change scope. A fresh clone runsmise run installfirst: validation, linting, and tests needtofu initproviders andtflint --initrulesets. - Keep one state per concern: change the smallest root module that owns the resource, with one GCS
prefixper small root module. - Check before planning: run
mise run checkandmise run test; tests stay offline only while every provider is mocked (the starter'smock_provider), otherwise plan-mode tests can authenticate, refresh state, and read data sources. Native tests overtests/*.tftest.hclusecommand = plan(main.tftest.hcl); encode "must never happen" rules (public buckets, missing labels) ascheck:scantrivy findings or plan-test assertions. - Plan explicitly:
mise run planwritestmp/plan.tfplanfor the selected backend, workspace, and cloud target; feed secrets per State and secrets below. A plan can access APIs, state, and data sources, so keep plan and apply out of automatic gates. - Apply only the reviewed plan when authorized: flag replacements, destroys, IAM, and cost in
tofu show tmp/plan.tfplan, runtofu apply tmp/plan.tfplanagainst the same target, delete the saved plan, and confirmtofu plan -input=false -detailed-exitcodeexits 0.
OpenTofu inside an application repository
- Keep modules under
infra/: runtofu -chdir=infra ...andtflint --chdir=infrafrom onecheck:tofutask instead of copying the standalone template's task set. - Validate without the live backend: run
tofu -chdir=infra init -backend=false -input=false -lockfile=readonlywithenv.TF_DATA_DIR = "../tmp/tofu-check"(a relative path resolves frominfra/), so a cached live backend can never make validation read remote state.
State and secrets
- State is secret: state can store sensitive resource attributes in plaintext — never in git, always in the versioned GCS bucket, ideally wrapped by OpenTofu's
encryptionblock. Read state-encryption before enabling it or migrating existing state. - Keep secrets out of tfvars and plans:
*.tfvarsis gitignored; commit only*.example.tfvars. Feed secrets asTF_VAR_<name>environment variables that the project's secret store or launcher injects into thetofuprocess only, never exported in the shell or passed as arguments. A saved plan stores ordinary variable values, sensitive ones included; declare secret inputsephemeral = true, pass them only to write-only arguments (for examplesecret_data_wowith an incrementedsecret_data_wo_version), and supply them again attofu apply tmp/plan.tfplan.
Gotchas
- Apply-mode tests create resources:
command = applycreates real (then destroyed) resources; reserve it for behavior a plan cannot prove, with approved project access and cost. - tflint rulesets are downloaded:
tflint --init(ininstall:lint) fetches the plugins pinned in tflint.hcl; exportGITHUB_TOKENin CI to avoid API rate limits. - Initialize before the CI gate: the shared ci.yml runs only
mise run all, so add a step withtofu init -backend=falseandtflint --initbefore it; validation, linting, andtofu testneed the providers and rulesets. - Provider majors move fast: versions.tf pins the google provider to one major with
~>; bump majors deliberately with upgrade-tools and read the upgrade guide, because resources rename across majors.
Task guides
<!-- guides:start -->- scaffold: Create a new OpenTofu root module from the templates, validate it offline, lock providers, and promote its GCS backend.
- state-encryption: Enable OpenTofu client-side state and plan encryption with GCP KMS, including plaintext state migration.
<!-- guides:end -->Documentation
- OpenTofu · tflint · trivy config · terraform-docs · State encryption
- Releases: OpenTofu
- Upstream:
hashicorp/agent-skillsper the vendor-skill policy; select only the Terraform or provider guidance the stack needs. - Companion skills: mise (task vocabulary and project pins), github-actions (CI), code-security (full-repo scans), Google catalog (product skills).
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
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.

