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 cosmix/loom --skill loom-terraformgit clone --depth 1 https://github.com/cosmix/loomWrote 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/cosmix/loom/loom-terraform)<a href="https://agentmods.dev/skills/cosmix/loom/loom-terraform"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-terraform/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/cosmix/loom/loom-terraform"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-terraform.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.00024 | $0.06389 |
| Opus 5.5 | $0.00010 | $0.02556 |
| Sonnet 5.5 | $0.00005 | $0.01278 |
| Haiku 4.5 | $0.00002 | $0.00639 |
Grade C, and why
loom-terraform scanned grade C with 1 finding 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 2mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
| Corrupt provider cache | `rm -rf .terraform/ && tofu init` — do NOT delete `.terraform.lock.hcl` | How it starts
The opening of the file, as written. The whole thing — 465 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Terraform / OpenTofu
Overview
Terraform/OpenTofu infrastructure: module design, state/backends, multi-environment strategy, provider config, refactoring/import. Prefer tofu over terraform — OpenTofu is the Linux Foundation fork, config-compatible, and has capabilities OSS Terraform lacks (client-side state encryption). Command mapping table is at the end.
The single highest-value section is Expert Practices below — the anti-patterns/gotchas there are where naive-but-working configs go wrong.
Module & Configuration Design
Canonical layout — shared modules/, one root module per environment, lock file committed:
terraform/
├── modules/{vpc,eks,rds}/ # each: main.tf variables.tf outputs.tf versions.tf
├── environments/{dev,staging,prod}/ # each: main.tf backend.tf terraform.tfvars .terraform.lock.hcl
└── .terraform.lock.hcl
Principles: reusable modules with typed, validated, described inputs; providers pinned in required_providers; remote state with locking; locals for computed/DRY values; documented outputs; lifecycle rules where deletion/replacement risk exists.
Variable validation — validate at the boundary; contains() for enums, length/regex for shape:
variable "environment" {
type = string
validation {
condition = contains(["dev", "staging", "prod"], var.environment)
error_message = "Environment must be dev, staging, or prod."
}
}
Module composition — wire flat modules via input/output, never nest deep (see Anti-Patterns). Version external modules with ~>; pin internal git modules by tag ref=:
module "vpc" { source = "terraform-aws-modules/vpc/aws", version = "~> 5.0" }
module "internal" { source = "git::https://github.com/org/tf-modules.git//vpc?ref=v1.2.3" }
State & Backends
S3 with native locking (no DynamoDB):
terraform {
backend "s3" {
bucket = "myorg-terraform-state"
key = "prod/eks/terraform.tfstate"
region = "us-west-2"
encrypt = true
kms_key_id = "arn:aws:kms:us-west-2:123456789012:key/..."
use_lockfile = true # native S3 conditional-write lock; no DynamoDB table/IAM
}
}
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.
- 2mo ago Changed · -1 lines · +11 tokens per session c62a64a5cdf8
- 2mo ago First seen · 466 lines · 13 tokens per session scan C 12047bde0616
loom-terraform is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 6,389 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
loom-terraform compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| loom-terraformcosmix/loom | Skill | 66 | yesterday | MIT | C | 24 | Claude Code |
| cloudflare-onecloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 63 | Claude Code |
| agents-sdkcloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 19 | Claude Code |
| cloudflare-one-migrationscloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 36 | Claude Code |
| sandbox-migrate-to-nextcloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 45 | Claude Code |
| sandbox-stablecloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 39 | Claude Code |
| cf-clicloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 78 | Claude Code |