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 eraserlabs/eraser-io --skill terraform-diagramsgit clone --depth 1 https://github.com/eraserlabs/eraser-ioWrote 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/eraserlabs/eraser-io/terraform-diagrams)<a href="https://agentmods.dev/skills/eraserlabs/eraser-io/terraform-diagrams"><img src="https://agentmods.dev/badge/skills/eraserlabs/eraser-io/terraform-diagrams/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/eraserlabs/eraser-io/terraform-diagrams"><img src="https://agentmods.dev/badge/skills/eraserlabs/eraser-io/terraform-diagrams.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
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.00026 | $0.02157 |
| Opus 5.5 | $0.00010 | $0.00863 |
| Sonnet 5.5 | $0.00005 | $0.00431 |
| Haiku 4.5 | $0.00003 | $0.00216 |
Grade A, and why
terraform-diagrams scanned grade A 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 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
allowed-tools: Read Write Bash(curl:*) How it starts
The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Terraform Diagram Generator
Generates architecture diagrams directly from Terraform .tf files. Specializes in parsing Terraform code and visualizing infrastructure resources, modules, and their relationships.
When to Use
Activate this skill when:
- User has Terraform files (
.tf,.tfvars) and wants to visualize the infrastructure - User asks to "diagram my Terraform" or "visualize this infrastructure"
- User mentions Terraform, HCL, or infrastructure-as-code
- User wants to see the architecture of their Terraform-managed resources
How It Works
This skill generates Terraform-specific diagrams by parsing Terraform code and calling the Eraser API directly:
- Parse Terraform Files: Identify resources, modules, data sources, and variables
- Extract Relationships: Map dependencies, resource connections, and module hierarchies
- Generate Eraser DSL: Create Eraser DSL code from Terraform resources
- Call Eraser API: Use
/api/render/elementswithdiagramType: "cloud-architecture-diagram"
Instructions
When the user provides Terraform code:
-
Parse the Terraform
- Identify all
resourceblocks (AWS, Azure, GCP, etc.) - Extract
moduleblocks and their configurations - Note
datasources and their dependencies - Identify
variableandoutputdefinitions
- Identify all
-
Map Relationships
- Track resource dependencies (e.g.,
subnet_id = aws_subnet.public.id) - Group resources by provider (AWS, Azure, GCP)
- Identify VPCs/VNets as containers for other resources
- Note security groups, IAM roles, and networking rules
- Track resource dependencies (e.g.,
-
Generate Eraser DSL Convert Terraform resources to Eraser DSL:
- CRITICAL: Label Formatting Rules
- Labels MUST be on a single line - NEVER use newlines inside label attributes
- Keep labels simple and readable - prefer separate labels over concatenating too much metadata
- Format DSL with proper line breaks (one node/group per line, but labels stay on single lines)
- If including metadata like CIDR blocks or instance types, include them in the same quoted label string:
[label: "VPC 10.0.0.0/16"]
- CRITICAL: Label Formatting Rules
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 · 253 lines · 26 tokens per session scan A 52db3a248918
terraform-diagrams is a skill published in the GitHub repository eraserlabs/eraser-io (48 stars, last pushed 8mo ago), licensed MIT. It adds 26 tokens to every session and 2,157 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
terraform-diagrams compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| terraform-diagramseraserlabs/eraser-io | Skill | 48 | 8mo ago | MIT | A | 26 | Claude Code |
| gke-compute-classesgoogle/skills | Skill | 26k | today | Apache-2.0 | A | 100 | Claude Code, Codex |
| cloud-operator-admin-setupgoogle/skills | Skill | 26k | today | Apache-2.0 | A | 118 | Claude Code, Codex |
| gke-workload-securitygoogle/skills | Skill | 26k | today | Apache-2.0 | A | 171 | Claude Code, Codex |
| gke-reliabilitygoogle/skills | Skill | 26k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 30 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 78 | Claude Code |