
Terraform
Gives the agent Terraform and HCL coding conventions for AWS infrastructure projects
Terraform is an open-source agent skill for cloud and infrastructure. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 31
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Terraform
This skill sets out house conventions for writing and reviewing Terraform code, with a focus on AWS. It covers how to prefer data sources over hardcoded values, how to name resources and variables, and how to lay out files within a Terraform directory, such as separating provider, backend, version constraints, IAM and outputs into their own files.
The AWS-specific guidance steers the agent toward aws_iam_policy_document data sources instead of jsonencode, reuse of AWS managed policies, default_tags at the provider level, and tighter IAM roles with specific resource ARNs. It also describes naming rules for IAM roles and instance profiles and how trust policies are structured.
The skill is guidance only: it contains no scripts and expects the agent to work on Terraform files in the current project. Project-specific conventions such as a CLAUDE.md or style guide are meant to override it.
When your agent uses it
This skill should be used when writing or reviewing Terraform code, or when the project uses "Terraform", "HCL", "tfvars", "aws_iam_role", "data sources", or infrastructure-as-code patterns. Provides Terraform coding conventions, patterns, and best practices. Project-specific conventions always take priority.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (3 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the sorah-guides plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add sorah/config
/plugin install sorah-guides@sorah-marketplaceOr copy only this skill to ~/.claude/skills/terraform:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/terraform &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/terraform" ~/.claude/skills/terraform &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/terraform inside it instead.
Copy the skill folder to ~/.agents/skills/terraform to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/terraform &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/terraform" ~/.agents/skills/terraform &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/terraform inside it instead.
Copy the skill folder to ~/.cursor/skills/terraform to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/terraform &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/terraform" ~/.cursor/skills/terraform &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/terraform inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/sorah/config.git --path claude/marketplace/plugins/sorah-guides/skills/terraformOr copy the folder to ~/.gemini/skills/terraform yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/terraform:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/terraform &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/terraform" ~/.copilot/skills/terraform &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/terraform inside it instead.
Get the folder:
git clone --depth 1 https://github.com/sorah/config.gitThen copy config/claude/marketplace/plugins/sorah-guides/skills/terraform into your agent's skills folder as terraform. Agents that support SKILL.md read one folder per skill.
What it does
- Naming conventions
- Rules for snake_case, PascalCase IAM names and hyphenated resource identifiers, matching provider resource names.
- Standard file layout
- Suggested split of a Terraform directory into provider, backend, version, resource and IAM files.
- IAM policy patterns
- Guidance on policy documents, trust policies with a -trust suffix, managed policies and narrow resource ARNs.
- Tagging with default_tags
- Provider-level tags for Project and Component, plus resource-specific tags where needed.
- Variable and argument style
- Rules for typed variables, default empty maps, aligned equals signs and trailing commas.
- Instance profile linkage
- Keeps instance profile names aligned with their associated IAM role names.
Good for
- Review a Terraform module for naming and file layout consistency
- Write an IAM role and trust policy for an EC2 instance
- Refactor hardcoded account or region values to data sources
- Add provider-level default tags to an AWS Terraform project
- Convert a jsonencode IAM policy into an aws_iam_policy_document
Terraform FAQ
What does Terraform need to run?
It has no scripts and no tools are declared. It only supplies conventions that the agent follows while working on Terraform files.
Does Terraform override my project's own rules?
No. The skill states that project-specific conventions such as CLAUDE.md or style guides always take priority over its guidance.
When does Terraform load?
It is meant to load when the agent is writing or reviewing Terraform code, or when the project uses Terraform, HCL, tfvars, aws_iam_role, data sources or infrastructure-as-code patterns.
How do I install Terraform in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/terraform to use it in all your projects, or to .claude/skills/terraform in one project. Or install the sorah-guides plugin, which includes it: /plugin marketplace add sorah/config, then /plugin install sorah-guides@sorah-marketplace.
Does Terraform run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Terraform?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Terraform?
The closest alternatives to Terraform are Terravision cloud diagrams, Coding standards, Coding, Code and AWS well architected review.
Where this comes from
- Description: from the skill's own SKILL.md.
More from sorah/config

Guides an agent through maintaining sorah's aptly-managed APT repositories and their
- Open source
- 31 GitHub stars
- Cloud and infrastructure

Runs a chief-of-staff session that watches your coding agents and keeps work on track
- Open source
- 31 GitHub stars
- Developer tools

Applies language-agnostic coding conventions to code writing and review
- Open source
- 31 GitHub stars
- Developer tools

Guides the agent to write git commit messages and PR titles in a concise house style
- Open source
- 31 GitHub stars
- Developer tools

Guides an agent through building and testing Rails apps on Aurora DSQL
- Open source
- 31 GitHub stars
- Developer tools

Writes English text in the author's terse, direct technical voice for GitHub and email
- Open source
- 31 GitHub stars
- Developer tools




