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.

Good fit Use it for questions about Terraform files, resources, modules, state, providers, plans, applies, imports, workspaces, testing, security, upgrades, and troubleshooting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cookiemonsterdev/agents-skills/terraform-docs
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.

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/github.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/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.

agentmods 80×15 button for terraform-docs

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00038 $0.00446
Sonnet 5.5 $0.00019 $0.00223
Haiku 4.5 $0.00009 $0.00111

Measured 1mo ago against content hash 3eae9713fb65, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (6 stars, last pushed today), licensed MIT. It adds 94 tokens to every session and 1,114 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 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

application-integration-authoring

Builds, versions, publishes, tests, and executes Google Cloud Application Integration workflows through the REST API and Python discovery client, and promotes versions across environments. Use when listing integrations, downloading or uploading integration versions as JSON, configuring API triggers or config…

google/skills · 103 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-ai-troubleshooting-tpu-partition-overlap

Diagnose and resolve GKE TPU slice creation failures (SliceCreationFailed) caused by partition overlap conflicts where requested TPU partitions or their nodes are already used by another slice or JobSet. Use when diagnosing GKE TPU slice creation failures with SliceCreationFailed partition or node conflicts. Don't use…

google/skills · 108 tokens

application-integration-basics

Explains Google Cloud Application Integration concepts, region provisioning, IAM roles, run-as service accounts, interface choices (REST, Python discovery client, Terraform, ADK), and platform limits. Use when setting up Application Integration in a Google Cloud project, enabling required APIs, provisioning a region…

google/skills · 122 tokens