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/KunanonJ/ai-skills-hubnpx agentmods add skills/kunanonj/ai-skills-hub/terraform-best-practicesWrote 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/kunanonj/ai-skills-hub/terraform-best-practices)<a href="https://agentmods.dev/skills/kunanonj/ai-skills-hub/terraform-best-practices"><img src="https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/terraform-best-practices/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/kunanonj/ai-skills-hub/terraform-best-practices"><img src="https://agentmods.dev/badge/skills/kunanonj/ai-skills-hub/terraform-best-practices.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.00036 | $0.01704 |
| Opus 5.5 | $0.00014 | $0.00682 |
| Sonnet 5.5 | $0.00007 | $0.00341 |
| Haiku 4.5 | $0.00004 | $0.00170 |
Grade A, and why
terraform-best-practices 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 — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Terraform Best Practices — Quick Reference
File Organization
terraform/
live/ # Orchestration — providers, backend, module calls
terraform.tf # backend + provider (ONLY place for providers)
variables.tf # all input variables
locals.tf # computed values, remote state refs
outputs.tf # exported values
{resource-group}.tf # module invocations grouped by concern
modules/{name}/ # Reusable — no providers, no hardcoded values
main.tf # locals, data sources
variables.tf # inputs with descriptions + types
outputs.tf # consumed values only
versions.tf # required_providers
{resource}.tf # one file per resource type
envs/{env}/ # Per-environment config
state.config # backend partial config
terraform.tfvars # non-sensitive values
secrets.tfvars # sensitive values (gitignored)
Naming
| Thing | Convention | Example |
|---|---|---|
| Resource prefix | {project}-{service}-{env} |
acme-payments-prod |
| Variables | snake_case |
instance_class |
| Locals | snake_case |
name_prefix |
| Outputs | snake_case |
repository_url |
| Resources | this (primary) or descriptive |
aws_db_instance.this |
| Security groups | name_prefix (not name) |
"${local.name_prefix}-app-" |
| Files | {resource-type}.tf |
rds.tf, sg.tf, ecr.tf |
| Modules | kebab-case directory |
modules/ecs-service/ |
| Tags | PascalCase keys | Project, Environment, ManagedBy |
Module Patterns
Use modules from the c0x12c Terraform Registry.
Each module source follows c0x12c/{name}/aws — see the registry for available modules and versions.
# Calling a registry module — always version-pin
module "database" {
source = "c0x12c/rds/aws"
version = "~> 0.6.6"
name = "${local.name_prefix}-db"
vpc_id = local.vpc_id
subnet_ids = local.private_subnet_ids
tags = local.common_tags
}
# Inside a module — no provider, explicit interface
# versions.tf
terraform {
required_version = ">= 1.5.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.0"
}
}
}
# variables.tf — every var has description + type
variable "name" {
description = "Resource name prefix"
type = string
}
# outputs.tf — only what consumers need
output "endpoint" {
description = "Connection endpoint"
value = aws_db_instance.this.endpoint
}
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 · 245 lines · 36 tokens per session scan A 2b8465f1a195
terraform-best-practices is a skill published in the GitHub repository KunanonJ/ai-skills-hub (5 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 1,704 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-09-03.
terraform-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| terraform-best-practicesKunanonJ/ai-skills-hub | Skill | 5 | 2mo ago | MIT | A | 36 | Claude Code, Codex |
| slo-defineMozurok/fhorja.dev | Skill | 10 | yesterday | MIT | A | 98 | Claude Code |
| deployment-completeness-auditgetpapi/papi | Skill | 13 | 18d ago | MIT | A | 44 | Claude Code |
| sf-deployClientell-Ai/salesforce-skills | Skill | 21 | 4mo ago | Apache-2.0 | A | 88 | Claude Code |
| istio-traffic-managementwshobson/agents | Skill | 43k | 3d ago | MIT | A | 40 | Claude Code |
| chinese-git-workflowjnMetaCode/superpowers-zh | Skill | 8.7k | 5d ago | MIT | A | 69 | Claude Code |
| chinese-documentationjnMetaCode/superpowers-zh | Skill | 8.7k | 5d ago | MIT | A | 62 | Claude Code |