terraform

terraform is a skill for Claude Code from sorah/config. It costs 64 tokens per session (672 once invoked), scanned A, original, MIT.

Terraform coding guidance for infrastructure-as-code files. Terraform is a tool for declaring cloud and other infrastructure in configuration files.

In plain words
What is it for?
Use it when writing or reviewing Terraform resources, provider settings, variables, locals, and infrastructure configuration.
Why use it?
It provides consistent rules for data sources, computed values, resource names, JSON configuration, and file organization.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the sorah-guides plugin — 15 skills, 3 commands, 1 agent shipped together

Good fit Use it when writing or reviewing Terraform resources, provider settings, variables, locals, and infrastructure configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sorah/config/terraform
View source ↗ sorah/config
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 sorah/config --skill terraform
Clone the repo
git clone --depth 1 https://github.com/sorah/config

Made for: Claude Code.

Or install sorah-guides, the plugin that ships this one along with the rest of its 15 skills, 3 commands, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sorah/config/terraform/github.svg)](https://agentmods.dev/skills/sorah/config/terraform)
Your own site
<a href="https://agentmods.dev/skills/sorah/config/terraform"><img src="https://agentmods.dev/badge/skills/sorah/config/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sorah/config/terraform"><img src="https://agentmods.dev/badge/skills/sorah/config/terraform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 672 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.00064 $0.00672
Opus 5.5 $0.00026 $0.00269
Sonnet 5.5 $0.00013 $0.00134
Haiku 4.5 $0.00006 $0.00067

Measured yesterday against content hash 6524aa2850d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

terraform 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 yesterday.

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.

claude/marketplace/plugins/sorah-guides/skills/terraform/SKILL.md · 70 lines

How it starts

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

Terraform Conventions

Coding conventions and best practices for Terraform projects. Project-specific conventions (CLAUDE.md, style guides) always take priority over this guidance.

General Conventions

  • Prefer data sources over hardcoded values (e.g., data.aws_region.current, data.aws_caller_identity.current)
  • Use locals for computed values and merging configuration
  • Use jsonencode to compose JSON objects instead of raw string literals

Resource Naming

  • Use snake_case for all resource names and variables, with exceptions:
    • Resource name in Terraform should match the actual resource name in the provider (e.g., when name = "FooBar", use resource "..." "FooBar")
  • IAM role and policy names use PascalCase (e.g., Ec2Bastion, EcsApp)
  • Use hyphenated lowercase for resource identifiers (e.g., ec2-default, dns-cache)

File Organization

Standard file structure per Terraform directory:

  • aws.tf — AWS provider configuration with standard data sources (data.aws_region.current, data.aws_caller_identity.current, data.aws_default_tags.current)
  • backend.tf — S3 backend configuration
  • versions.tf — Provider version constraints
  • Resource-specific files: vpc.tf, sg.tf, route53.tf, iam.tf, etc.
  • Multiple IAM files when needed: iam_lambda.tf, iam_states.tf, iam_ec2_default.tf
  • outputs.tf — Output definitions (when needed)
  • locals.tf — Local values (when needed)

Variable Definitions

  • Always specify type for variables
  • Use default = {} for optional map variables
  • Group related variables together with blank lines

Resource Arguments

  • Multi-line arguments consistently formatted
  • Use trailing commas in lists
  • Align equals signs for readability in blocks

AWS-Specific

  • Use data.aws_iam_policy_document whenever possible instead of jsonencode
  • Use AWS managed policies via data.aws_iam_policy when available

Tags and Metadata

  • Use default_tags at provider level for Project and Component tags
  • Include meaningful resource-specific tags when needed

Read the full file on GitHub · 70 lines

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. yesterday First seen · 70 lines · 64 tokens per session scan A 6524aa2850d3

Subscribe to this mod's changes

terraform is a skill published in the GitHub repository sorah/config (31 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 672 once invoked, about $0.0003 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-10-17.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens