Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/d-padmanabhan/agent-engineering-handbooknpx agentmods add rules/d-padmanabhan/agent-engineering-handbook/180-terraformWrote 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/d-padmanabhan/agent-engineering-handbook/180-terraform)<a href="https://agentmods.dev/rules/d-padmanabhan/agent-engineering-handbook/180-terraform"><img src="https://agentmods.dev/badge/rules/d-padmanabhan/agent-engineering-handbook/180-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/d-padmanabhan/agent-engineering-handbook/180-terraform"><img src="https://agentmods.dev/badge/rules/d-padmanabhan/agent-engineering-handbook/180-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.00016 | $0.10049 |
| Opus 5.5 | $0.00006 | $0.04020 |
| Sonnet 5.5 | $0.00003 | $0.02010 |
| Haiku 4.5 | $0.00002 | $0.01005 |
Grade A, and why
180-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 3mo 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 — 1,683 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Terraform Engineering Ruleset - (December 2025)
Audience: engineers writing and reviewing Terraform infrastructure as code Goal: secure-by-default, efficient, modular, and highly maintainable Terraform - without over-engineering
Terraform Philosophy (Core Principles)
Core Principles:
- "Infrastructure as Code, not Infrastructure as Config" - Terraform is code; treat it with same rigor as application code
- "State is the source of truth" - Protect state, version it, back it up, lock it
- "Idempotency is non-negotiable" - Same input should produce same output, safe to run multiple times
- "Modules over copy-paste" - Reusable, composable modules reduce errors and maintenance
- "Validate early, fail fast" - Use validations, preconditions, postconditions to catch errors early
- "Security by default" - Least privilege IAM, encryption everywhere, no secrets in code
- "Explicit over implicit" - Clear dependencies, explicit providers, documented assumptions
- "Plan before apply" - Always review plan output, use saved plans in CI/CD
Applying Terraform Principles:
# BAD: Implicit, insecure, fragile
resource "aws_instance" "web" {
ami = "ami-12345"
instance_type = "t2.micro"
}
# GOOD: Explicit, secure, validated
variable "environment" {
type = string
description = "Deployment environment"
validation {
condition = contains(["dev", "staging", "prod"], var.environment)
error_message = "Environment must be dev, staging, or prod."
}
}
resource "aws_instance" "web" {
ami = data.aws_ami.ubuntu.id
instance_type = var.instance_type
vpc_security_group_ids = [aws_security_group.web.id]
subnet_id = aws_subnet.public["az-a"].id
tags = merge(
local.common_tags,
{
Name = "${var.app}-${var.environment}-web"
}
)
lifecycle {
create_before_destroy = true
prevent_destroy = var.environment == "prod"
}
}
Quick Reference
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.
- 3mo ago First seen · 1,683 lines · 16 tokens per session scan A f05de8db2e3e
180-terraform is a cursor rule published in the GitHub repository d-padmanabhan/agent-engineering-handbook (21 stars, last pushed 5d ago), licensed MIT. It adds 16 tokens to every session and 10,049 once invoked, about $0.0001 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-08-30.
180-terraform compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| 180-terraformd-padmanabhan/agent-engineering-handbook | Cursor rule | 21 | 5d ago | MIT | A | 16 | Cursor |
| agents-shipgateThreeMoonsLab/agents-shipgate | Cursor rule | 87 | 2d ago | Apache-2.0 | A | 0 | Cursor |
| vibes-plug-devopsroedyrustam/vibes-plug | Cursor rule | 131 | 5d ago | MIT | A | 0 | Cursor |
| beanstalk-deploypr-pm/prpm | Cursor rule | 125 | 1mo ago | MIT | A | 0 | Cursor |
| verification-evidencetonyghiani/ai-essentials | Cursor rule | 7 | 2d ago | MIT | A | 312 | Cursor |
| cursor-asddOneHillAI/ASDD | Cursor rule | 6 | 1mo ago | Apache-2.0 | A | 190 | Cursor |
| agentsonesimplecode/agent-engineering-standards | Cursor rule | 4 | 3mo ago | MIT | A | 102 | Cursor |