Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add fmind/dot --skill infra-as-codegit clone --depth 1 https://github.com/fmind/dotWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/fmind/dot/infra-as-code)<a href="https://agentmods.dev/skills/fmind/dot/infra-as-code"><img src="https://agentmods.dev/badge/skills/fmind/dot/infra-as-code/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fmind/dot/infra-as-code"><img src="https://agentmods.dev/badge/skills/fmind/dot/infra-as-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.01250 |
| Opus 5.5 | $0.00016 | $0.00500 |
| Sonnet 5.5 | $0.00008 | $0.00250 |
| Haiku 4.5 | $0.00004 | $0.00125 |
Grade A, and why
infra-as-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Infrastructure as Code
Manage infrastructure with OpenTofu (tofu); pin terraform in mise.toml only when a BSL-only feature or client mandate requires it.
Defaults
- Pin tools & hooks: declare
opentofu,tflint, andterraform-docsviamise use --pin(mise.toml, lefthook.yml, mise, lefthook);mise run buildupdatesREADME.mdvia terraform-docs.yml. - Use keyless auth: ADC locally and WIF in CI (cloud-run bootstrap).
Workflow
- Confirm scope & init: check root module, backend,
tofu workspace show, project, and auth; runmise run installon fresh clones. - Isolate state: edit the smallest root module with a unique GCS
prefix(in-app layout). - Gate offline: run
mise run checkandmise run test(command = plan+mock_providerper main.tftest.hcl). - Plan & CI: run
mise run plan(tmp/plan.tfplan), never in Git hooks. In CI (tofu.yml), run uncredentialedvalidateon PRs, WIFplanonmain, andapplyonly viaworkflow_dispatch(apply=true) behindenvironment: production. - Apply authorized plans: inspect replacements, destroys, IAM, and cost in
tofu show tmp/plan.tfplan, runtofu apply tmp/plan.tfplan, deletetmp/plan.tfplan, and confirmtofu plan -input=false -detailed-exitcodeexits 0.
HCL Rules
- Prefer
for_eachovercount: keyed maps avoid cascading destroy/recreate on list shifts; uselifecycle { enabled = ... }(OpenTofu 1.11+) for conditional singletons. - Refactor declaratively: use
moved,import, andremovedblocks instead of manualtofu stateedits. - Keep child
modules/pure: zerolocal-exec/remote-execprovisioners, nobackend/providerblocks inside childmodules/, andlifecycle { prevent_destroy = true }(or dynamicvar.protect_statefulon OpenTofu 1.12+ for dev teardown) on stateful prod resources (DBs, KMS keys, state buckets).
What ships with it
15 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/scaffold.md 4.2 KB
- references/state-encryption.md 2.0 KB
- templates/gitignore 630 B
- templates/lefthook.yml 808 B
- templates/main.tf 730 B
- templates/main.tftest.hcl 1020 B
- templates/mise.toml 5.3 KB
- templates/outputs.tf 188 B
- templates/README.md 441 B
- templates/terraform-docs.yml 208 B
- templates/terraform.example.tfvars 203 B
- templates/tflint.hcl 436 B
- templates/tofu.yml 5.8 KB
- templates/variables.tf 673 B
- templates/versions.tf 1.6 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed d40c9cc71a1d
- 4d ago Changed b51b38ade9f6
- 5d ago Changed 97de385187a9
- 7d ago Changed · +21 tokens per session 8b01118eda58
- 10d ago Changed f3f773e35923
- 12d ago Changed · -1 lines · -1 tokens per session 84a758d8f200
- 16d ago Changed 573a4d00345e
- 20d ago Changed · -5 lines f28b555326ad
- 21d ago Changed · -3 lines f1ebd025177c
- 24d ago First seen · 64 lines · 20 tokens per session scan A cc4864182a74
infra-as-code is a skill published in the GitHub repository fmind/dot (14 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 1,250 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-17.
infra-as-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| infra-as-codefmind/dot | Skill | 14 | yesterday | MIT | A | 40 | Claude Code, Codex |
| cloud-runfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 28 | Claude Code, Codex |
| google-cloud-operationsfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 34 | Claude Code, Codex |
| terraform-stackfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 45 | Claude Code, Codex |
| scaffold-terraformurmzd/dotfiles | Skill | 6 | today | Apache-2.0 | A | 115 | Claude Code |
| python-stackfmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 41 | Claude Code, Codex |
| misefmind/dotfiles | Skill | 4 | 3mo ago | MIT | A | 27 | Claude Code, Codex |