terraform-docs

terraform-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 29 tokens per session (2,079 once invoked), scanned A, original, MIT.

A reference guide to Terraform, a tool for describing and managing cloud and on-premises infrastructure with configuration files.

In plain words
What is it for?
Use it when writing or explaining Terraform configurations, planning infrastructure changes, managing state and backends, or working with cloud providers.
Why use it?
It gives coding agents the background needed to understand Terraform resources, variables, modules, providers, and state without guessing how infrastructure is defined.

Skill for Claude CodeCodex

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

Good fit Use it when writing or explaining Terraform configurations, planning infrastructure changes, managing state and backends, or working with cloud providers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/terraform
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 pledgeandgrow/pledge-skills --skill terraform
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-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/pledgeandgrow/pledge-skills/terraform/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/terraform)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/terraform"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/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.

agentmods 80×15 button for terraform-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/terraform"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/terraform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,079 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.00029 $0.02079
Opus 5 $0.00015 $0.01040
Sonnet 5 $0.00006 $0.00416
Haiku 4.5 $0.00003 $0.00208

Measured 8d ago against content hash 8ad98c21d18d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 8d 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.

skills/terraform/SKILL.md · 153 lines

How it starts

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

Terraform

Version: Latest (1.15.x) | Source: developer.hashicorp.com/terraform

Overview

Terraform is an infrastructure as code (IaC) tool that lets you build, change, and version cloud and on-prem resources safely and efficiently. It uses a declarative configuration language (HCL) to describe infrastructure, supports multi-cloud providers, and manages state to track real-world resources.

Quick Reference

Topic File Key Content
Getting Started getting-started.md What is Terraform, how it works (write/plan/apply), use cases (multi-cloud, Kubernetes, SDN, self-service), Terraform vs alternatives (Chef, CloudFormation, Boto), phases of adoption (adopt/collaborate/scale/govern), installation, quick start
Configuration Language language.md Syntax (blocks, arguments, expressions), resources (meta-arguments, lifecycle, data sources), input variables (types, defaults, validation, sensitive, precedence), output values, local values, providers (requirements, configuration, aliases, lock file), modules (sources, hierarchy, development), state (storage, inspection, import), backends (types, configuration, credentials), terraform block, cloud block
Expressions & Functions expressions-functions.md Types, literals, operators, references, conditional/for/splat/dynamic expressions, type constraints, version constraints, all built-in functions (numeric, string, collection, encoding, filesystem, date/time, hash/crypto, IP network, type conversion, Terraform-specific)
CLI Commands cli.md init, plan, apply, destroy, validate, fmt, state (list/show/mv/rm/pull/push), import, taint/untaint, targeting, workspaces, output, console, graph, login/logout, force-unlock, refresh, test, environment variables, upgrade/security checks
HCP, Enterprise & Plugins hcp-enterprise-plugins.md HCP Terraform (workspaces, VCS integration, Sentinel policies, run tasks, variable sets, private registry, Europe region), Terraform Enterprise (self-hosted, air-gapped, SAML SSO), plugin development (framework, SDKv2, design principles, testing), Terraform Registry (publishing providers/modules, private registry, naming conventions), module development (structure, best practices, refactoring with moved blocks)
Advanced Topics advanced.md Provisioners (local-exec, remote-exec, file, connection blocks, when/on_failure, terraform_data), ephemeral resources (ephemeral block, write-only arguments, reference restrictions), managing sensitive data (sensitive/ephemeral arguments, state security best practices), terraform_remote_state data source (arguments, attributes, alternatives), testing (.tftest.hcl files, run blocks, assertions, expect_failures, parallel execution, integration vs unit testing), override files (merging behavior, special rules per block type), CLI configuration file (.terraformrc/terraform.rc, settings, plugin cache, provider installation, development overrides), style guide (code style, file naming, resource naming, parameter order, .gitignore, version pinning, workflow best practices, linting with TFLint), import blocks (declarative import, for_each, generate-config-out), removed blocks (declarative state removal, destroy=false), check blocks (declarative condition checks, assertions), terraform_data resource

Read the full file on GitHub · 153 lines

Files

What ships with it

6 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. 8d ago First seen · 153 lines · 29 tokens per session scan A 8ad98c21d18d

Subscribe to this mod's changes

terraform-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 2,079 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

Terraform Infrastructure as Code

Production-grade Terraform development with HCL best practices, module design, state management, multi-cloud patterns, and AI-enhanced infrastructure as code for scalable cloud deployments.

bobmatnyc/mcp-skillset · 36 tokens

terraform-expert

Expert-level Terraform infrastructure as code, modules, state management, and production best practices. Use when the user mentions infrastructure as code, devops, or automation, or when the task involves Terraform Basics, Resource Management, Modules, or State Management.

personamanagmentlayer/pcl · 53 tokens

terraform

Terraform infrastructure-as-code workflow patterns: state and environments, module design, safe plan/apply, drift control, and CI guardrails.

bobmatnyc/claude-mpm-skills · 28 tokens

infrastructure-as-code-guardian

Universal Infrastructure as Code (IaC) agent skill for authoring, securing, and managing cloud infrastructure across Terraform, Pulumi, CloudFormation, Ansible, and Bicep. Provides cross-tool security hardening, state management best practices, cost optimization, drift detection, and CI/CD integration. Covers AWS…

JPeetz/agent-skills · 254 tokens

terraform-iac

Terraform and OpenTofu infrastructure as code best practices - generate HCL configurations, module patterns, state management, CI/CD workflows, and cloud provider templates for AWS, GCP, Azure.

chainlesschain/chainlesschain · 41 tokens

terraform-iac

Terraform & Infrastructure as Code: Helps write, review, and structure Terraform configurations, modules, state management, and IaC best practices. Use whenever the user mentions 'terraform', 'IaC', 'infrastructure as code', '.tf files', 'HCL', 'terraform module', 'terraform state', 'terraform plan', 'terraform…

camilooscargbaptista/cto-toolkit · 121 tokens