maroffo/claude-forge/terraform

Claude Code and agent skill by maroffo/claude-forge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Terraform and Terragrunt for infrastructure as code. Use for IaC, modules, state management, HCL.

Install

npx vskill@latest install maroffo/claude-forge/terraform

SKILL.md

ABOUTME: Terraform/Terragrunt IaC patterns, modules, state management

ABOUTME: Best practices for HCL, DRY configs, security scanning

Terraform & Terragrunt

OpenTofu: open-source (MPL) fork, recommended for new projects because Terraform is BSL-licensed. The two have diverged since the fork, so check feature parity against the version the project runs.

Quick Reference

bash
terraform init|plan|apply|destroy
terragrunt run --all apply
terraform fmt -recursive && terraform validate
terraform state list|show|rm|mv <resource>

See: _AST_GREP.md (sg patterns for HCL)


Project Structure

Simple: main.tf, variables.tf, outputs.tf, versions.tf

Multi-env:

terraform/
├── modules/{vpc,eks}/
└── environments/{dev,staging,prod}/

TF 1.5+ Blocks

hcl
import { to = aws_instance.web; id = "i-1234567890abcdef0" }
moved { from = aws_instance.web; to = module.web.aws_instance.main }
check "health" {
data "http" "api" { url = "https://api.example.com/health" }
assert { condition = data.http.api.status_code == 200; error_message = "API down" }
}

Terragrunt

Benefits: DRY configs, multi-env mgmt, dependency ordering, auto backend config

Structure
infrastructure/
├── terragrunt.hcl # Root
├── _envcommon/{vpc,eks}.hcl
├── {dev,staging,prod}/
│ └── {region}/{vpc,eks}/terragrunt.hcl
Dependencies
hcl
dependency "vpc" { config_path = "../vpc" }
inputs = { vpc_id = dependency.vpc.outputs.vpc_id }

State Management

Split by: env, region, component, blast radius

hcl
backend "s3" { bucket = "my-state"; key = "prod/terraform.tfstate"; encrypt = true; use_lockfile = true } # S3-native locking; dynamodb_table only on versions without it

Testing & Security

Pipeline: fmt/validate → TFLint → Checkov/Trivy → Infracost

bash
terraform fmt -check -recursive && terraform validate
tflint --recursive
checkov -d . --framework terraform --compact
infracost breakdown --path .

Code Review Checklist

Security: No hardcoded secrets, encrypted state, locking enabled, least-privilege IAM, Checkov passes

Structure: Versioned modules, validated variables, consistent naming


Resources

ToolPurpose
TFLintLinter
CheckovSecurity
InfracostCost estimation

Docs: Terraform, OpenTofu, Terragrunt

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
8
Repository forks
2
7-day trend score
11

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/maroffo/claude-forge/terraform/badge)](https://verified-skill.com/skills/maroffo/claude-forge/terraform)

Something wrong with this skill or its page? Tell us.