terraform-docs

terraform-docs is a skill for Claude Code, Codex from cookieMonsterDev/agents-skills. It costs 94 tokens per session (1,114 once invoked), scanned A, original, MIT.

A guidance skill for Terraform, a tool that describes infrastructure as code using configuration files. It grounds Terraform answers in official HashiCorp documentation.

In plain words
What is it for?
Use it for questions about Terraform files, resources, modules, state, providers, plans, applies, imports, workspaces, testing, security, upgrades, and troubleshooting.
Why use it?
It reduces the risk of relying on outdated or provider-specific advice for Terraform configuration and operations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

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.

agentmods
npx agentmods add skills/cookiemonsterdev/agents-skills/terraform-docs
Any agent
npx skills add cookieMonsterDev/agents-skills --skill terraform-docs
Clone the repo
git clone --depth 1 https://github.com/cookieMonsterDev/agents-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for terraform-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/cookiemonsterdev/agents-skills/terraform-docs.svg)](https://agentmods.dev/skills/cookiemonsterdev/agents-skills/terraform-docs)
Your own site
<a href="https://agentmods.dev/skills/cookiemonsterdev/agents-skills/terraform-docs"><img src="https://agentmods.dev/badge/skills/cookiemonsterdev/agents-skills/terraform-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,114 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.01114
Opus 5 $0.00047 $0.00557
Sonnet 5 $0.00019 $0.00223
Haiku 4.5 $0.00009 $0.00111

Measured 6d ago against content hash 3eae9713fb65, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

terraform-docs 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 6d 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.

docs-skills/terraform-docs/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Terraform questions are easy to answer from stale memory or provider-specific assumptions. Use this skill to ground answers in the official HashiCorp Terraform documentation and return the closest authoritative page instead of generic IaC advice.

When to Use

Use this skill when the request is about:

  • Terraform concepts, architecture, and adoption patterns
  • Terraform configuration language (HCL), resources, data sources, variables, outputs, and locals
  • Terraform CLI commands: init, plan, apply, destroy, import, state, workspace, and fmt
  • Providers, modules, and the Terraform Registry
  • Remote state, backends, locking, and drift detection
  • HCP Terraform and Terraform Enterprise workflows
  • Provider development and module publishing
  • Testing, validation, policy, and security for Terraform code
  • Upgrading Terraform versions and provider version constraints

Do not use this skill for:

  • Raw cloud console operations when the question is provider UI rather than Terraform behavior. Use aws-cli-docs for AWS CLI commands.
  • Kubernetes workload YAML or kubectl usage without Terraform context. Use kubernetes-docs instead.
  • Helm chart templating or release management. Use helm-docs instead.
  • Pulumi, CloudFormation, or other IaC tools unless the user explicitly asks for comparison with Terraform docs.

Workflow

1. Classify the request

Decide which bucket the question belongs to before searching:

  • Introduction, concepts, and use cases
  • Configuration language and HCL syntax
  • Terraform CLI workflows and commands
  • Providers and the Terraform Registry
  • Modules and reusable configuration
  • State, backends, and workspaces
  • HCP Terraform and Terraform Enterprise
  • Plugin and provider development
  • Testing, policy, and security

If you need a quick starting point, load references/topic-map.md and jump to the closest section.

2. Search official Terraform docs first

  • Treat developer.hashicorp.com/terraform as the source of truth for Terraform.
  • Prefer pages under https://developer.hashicorp.com/terraform/docs.
  • For provider-specific resource arguments, prefer the provider docs on the Terraform Registry over generic language docs.
  • Search with the user's exact terms plus focused Terraform phrases such as terraform plan, backend "s3", for_each, lifecycle, moved block, or required_providers.
  • When multiple pages are plausible, compare 2-3 candidate pages and pick the one that most directly answers the user's question.
  • For deprecated syntax or removed features, check the upgrade guides before answering from older knowledge.

Read the full file on GitHub · 104 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 6d ago First seen · 104 lines · 94 tokens per session scan A 3eae9713fb65

Subscribe to this mod's changes

terraform-docs is a skill published in the GitHub repository cookieMonsterDev/agents-skills (4 stars, last pushed 16d ago), licensed MIT. It adds 94 tokens to every session and 1,114 once invoked, about $0.0005 per session on Opus 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-31.

Related

Other skills, from other repositories

google-cloud-solution-guided-gke-ai-migration

Guides the migration of existing AI workloads (Cloud Run, Gemini API, Gemini Enterprise Agent Platform) to self-hosted GKE inference using gcloud and kubectl. Use when the user has an existing AI inference workload (on Cloud Run, the Gemini API, Gemini Enterprise Agent Platform, or a custom VM) and wants to move it to…

google/skills · 157 tokens

gke-alert-configuration

Configures alerting policies in Terraform for Google Kubernetes Engine (GKE) clusters, workloads, and services using PromQL and Google Cloud Managed Service for Prometheus. Use when writing, analyzing, validating, or deploying Terraform alerting policies to monitor GKE service latency, traffic, error rates using…

google/skills · 120 tokens

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

google-cloud-solution-n-tier-serverless-web-app

Assists in designing and implementing secure n-tier serverless web applications and microservices on Google Cloud. Use when users need architecture designs, security checklists, Terraform code, or deployment guidance for multi-tier serverless apps, regional data residency / European sovereignty compliance, zero-trust…

google/skills · 91 tokens

application-design-center-design-deploy

Processes GCP infrastructure design and deployment workflows within Application Design Center (ADC). Use when: - Designing GCP infrastructure with Terraform. - Validating local HCL. - Performing best-practice plan scans. - Importing templates to Application Design Center (ADC). - Deploying templates. - Troubleshooting…

google/skills · 94 tokens

cloud-run-basics

Manages Cloud Run services, jobs, and worker pools. Use when you need to deploy applications responding to HTTP requests (services), run event-triggered or scheduled tasks (jobs), or handle always-on pull-based background processing (worker pools).

google/skills · 53 tokens