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.
git clone --depth 1 https://github.com/iloveitaly/llm-ide-rulesWrote 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/rules/iloveitaly/llm-ide-rules/terraform)<a href="https://agentmods.dev/rules/iloveitaly/llm-ide-rules/terraform"><img src="https://agentmods.dev/badge/rules/iloveitaly/llm-ide-rules/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/rules/iloveitaly/llm-ide-rules/terraform"><img src="https://agentmods.dev/badge/rules/iloveitaly/llm-ide-rules/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.00000 | $0.01866 |
| Opus 5.5 | $0.00000 | $0.00746 |
| Sonnet 5.5 | $0.00000 | $0.00373 |
| Haiku 4.5 | $0.00000 | $0.00187 |
Grade A, and why
terraform 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 yesterday.
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 — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Terraform
Terraform code is very important because it controls production systems. For this reason, it's critical that agents should never:
- Modify production systems using CLI tools for cloud providers such as
gcloud,az, etc unless explicitly asked - Be able to run terraform directly via
tofu apply. Terraform must be designed to run only viajust apply. - Justfile execution must be guarded against agent execution using
is-ai-agent.
Instructions when writing terraform:
- Implement the requested behavior directly. Add a boolean, feature flag, or optional setting only when I explicitly request configurability or the feature needs to support multiple modes. If quota, permissions, or cost block deployment, report the blocker and use the existing plan and apply workflow. Don’t add a toggle as a precaution.
- All "bootstrap" secrets (i.e. vars required to run the terraform code) should be
exported in the Justfile. The Justfile is guarded so agents cannot run it, ensuring that required secrets are not available to agents ensures that terraform cannot be run by an agent. - Don't add a
localsfor a variable only used a single time - Don't add
outputresources unless specifically asked - Use
~> 9.9.0style provider version pinning - Always assume you are using or can use the latest version of a terraform module. Never workaround a missing feature that has been added to a terraform module.
- Consult the terraform MCP when using an external module. Module surfaces change often.
- When creating a cloudflare worker, always set the
compatibility_dateto the current date. - When enabling Cloudflare Workers traces, do not set
head_sampling_rateto1. That value samples every request. The shared logs block uses1on purpose; do not copy it onto traces. Use0.1(10%) unless I explicitly ask for a different rate. - Do not add a unit test file or a Just recipe for a small Worker change. Change the Worker module and the Terraform that publishes it.
- Uppercase all
TF_VAR_* - Put
localsat the top of the file - Reference Terraform-managed resources directly; add a data source only when a verified provider limitation requires it or the resource is managed elsewhere.
- Add a one line comment at the top of each `.tf`` file describing it's purpose.
- When using submodules, do not specify provider versions in the submodule. Let the root provider configuration specify the version.
- Name Terraform resources using consistent <application_or_system>_ identifiers that communicate business ownership and function independently of cloud providers, environments, or incidental implementation details
- Always add a
descriptionto anyvariableblock. - If an SSH key is required for a VM, encryption, or something else I'll generate it manually in 1P and provide a UUID to reference.
- Make infrastructure configuration changes in Terraform for the operator to apply. Use cloud CLIs, ssh, APIs, 1password, etc for read-only inspection and verification. Never make infrastructure changes directly.
- Prefer pre-built, well-supported terraform modules for configuration over complicated shell scripts. By way of example, using
system_fileorsystem_folderover custom shell commands when creating files. - Prefer
terraform_datawithremote-execoverlocal-execandsshcommands. - Never rewrite host headers, or any other headers, unless specifically asked to when setting up a Cloudflare Tunnel.
- Don't worry about other users on the machine reading content. You can assume the data is safe during the terraform application process.
- All 1Password references should use item uuids since they change less often than titles. However, the name of the item should be added in a comment the 1p resource. The uuid can change if the item was moved out of a vault, so the name helps us locate the uuid if this occurs.
- 1P uuids should never be a
variableand should always be hardcoded. - 1P items should always use consistent tags so it's easy to understand which items are system- vs user-created.
- 1P uuids should never be a
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.
- yesterday Changed · +2 lines b5954609e3e8
- 9d ago Changed · +100 lines e754391a115e
- 1mo ago Changed · +2 lines c36dd71cc424
- 1mo ago Changed · +1 lines 19dae35bd964
- 1mo ago First seen · 24 lines · 0 tokens per session scan A 39903965b612
terraform is a cursor rule published in the GitHub repository iloveitaly/llm-ide-rules (13 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,866 tokens. 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-10-04.
terraform compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| terraformiloveitaly/llm-ide-rules | Cursor rule | 13 | yesterday | MIT | A | 0 | Cursor |
| beanstalk-deploypr-pm/prpm | Cursor rule | 125 | 1mo ago | MIT | A | 0 | Cursor |
| ai-kbiamironz/ai-config-bundle | Cursor rule | 2 | 8mo ago | MIT | A | 277 | Cursor |
| deploymentlevifig/rails-instructions | Cursor rule | 57 | 1y ago | MIT | A | 0 | Cursor |
| 1002-terraformdavenicoll/cursor-rules | Cursor rule | 11 | 1y ago | none | A | 2,247 | Cursor |
| 1003-cdkdavenicoll/cursor-rules | Cursor rule | 11 | 1y ago | none | A | 1,182 | Cursor |
| 702-aws-well-architected-frameworkdavenicoll/cursor-rules | Cursor rule | 11 | 1y ago | none | A | 789 | Cursor |