Back to Skills

Building Terraform Modules

jeremylongshore
Updated Today
99 views
1,053
135
1,053
View on GitHub
Metawordaidesign

About

This skill enables Claude to generate production-ready, reusable Terraform modules from user specifications. It uses a dedicated plugin to create well-documented code that follows best practices for security and scalability. Use it when you need to create a new Terraform module, generate IaC configuration, or structure infrastructure code.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus-skills
Git CloneAlternative
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills.git ~/.claude/skills/Building Terraform Modules

Copy and paste this command in Claude Code to install this skill

Documentation

Overview

This skill allows Claude to efficiently generate Terraform modules, streamlining infrastructure-as-code development. By utilizing the terraform-module-builder plugin, it ensures modules are production-ready, well-documented, and incorporate best practices.

How It Works

  1. Receiving User Request: Claude receives a request to create a Terraform module, including details about the module's purpose and desired features.
  2. Generating Module Structure: Claude invokes the terraform-module-builder plugin to create the basic file structure and configuration files for the module.
  3. Customizing Module Content: Claude uses the user's specifications to populate the module with variables, outputs, and resource definitions, ensuring best practices are followed.

When to Use This Skill

This skill activates when you need to:

  • Create a new Terraform module from scratch.
  • Generate production-ready Terraform configuration files.
  • Implement infrastructure as code using Terraform modules.

Examples

Example 1: Creating a VPC Module

User request: "Create a Terraform module for a VPC with public and private subnets, a NAT gateway, and appropriate security groups."

The skill will:

  1. Invoke the terraform-module-builder plugin to generate a basic VPC module structure.
  2. Populate the module with Terraform code to define the VPC, subnets, NAT gateway, and security groups based on best practices.

Example 2: Generating an S3 Bucket Module

User request: "Generate a Terraform module for an S3 bucket with versioning enabled, encryption at rest, and a lifecycle policy for deleting objects after 30 days."

The skill will:

  1. Invoke the terraform-module-builder plugin to create a basic S3 bucket module structure.
  2. Populate the module with Terraform code to define the S3 bucket with the requested features (versioning, encryption, lifecycle policy).

Best Practices

  • Documentation: Ensure the generated Terraform module includes comprehensive documentation, explaining the module's purpose, inputs, and outputs.
  • Security: Implement security best practices, such as using least privilege principles and encrypting sensitive data.
  • Modularity: Design the Terraform module to be reusable and configurable, allowing it to be easily adapted to different environments.

Integration

This skill integrates seamlessly with other Claude Code plugins by providing a foundation for infrastructure provisioning. The generated Terraform modules can be used by other plugins to deploy and manage resources in various cloud environments.

GitHub Repository

jeremylongshore/claude-code-plugins-plus-skills
Path: backups/plugin-enhancements/plugin-backups/terraform-module-builder_20251020_065741/skills/skill-adapter
aiautomationclaude-codedevopsmarketplacemcp

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

creating-opencode-plugins

Meta

This skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.

View skill

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill