create-terraform-module

Scaffold convention-compliant Terraform module directory structures for Azure resources.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/omattsson/iac-bootstrap --skill create-terraform-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-terraform-module
Source: https://github.com/omattsson/iac-bootstrap/tree/main/examples/azure-terragrunt/.github/skills/create-terraform-module
Command: npx skills add https://github.com/omattsson/iac-bootstrap --skill create-terraform-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually creating consistent, convention-compliant Terraform module structures for Azure resources is time-consuming and error-prone, especially for teams adhering to standardized infrastructure-as-code practices.

Core Features & Use Cases

  • Standardized Module Scaffolding: Generates a complete, pre-structured directory layout for Terraform modules aligned with Contoso Azure conventions, including all required core files.
  • Pre-built File Templates: Includes ready-to-use templates for critical files like versions.tf, locals.tf, and test files to enforce consistent version constraints, naming logic, and testing standards.
  • Use Case: Cloud engineering teams building reusable Azure infrastructure components can use this skill to eliminate repetitive boilerplate work when creating new modules for resources like virtual networks, storage accounts, or managed identities.

Quick Start

Ask the AI to use the create-terraform-module skill to scaffold a new Terraform module for an Azure storage account following your workspace's Contoso conventions.

Frequently Asked Questions about create-terraform-module

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a Terraform module for Azure resources?

Scaffolding a Terraform module for Azure resources automates the creation of a complete directory structure. It delivers pre-configured boilerplate for versions.tf, locals.tf, variables, and test files aligned with Contoso best practices.

What is included in a standardized Terraform module directory structure?

A standardized Terraform module directory structure includes pre-built templates for versions.tf, locals.tf, and test files. These enforce consistent Terraform version constraints, Azure provider setup, standardized naming logic, and variable definitions.

Can I use this to add new Azure resource modules to an existing IaC workspace?

Yes, you can add new Azure resource modules to an existing IaC workspace. The scaffolding process supports adding new modules to existing repositories while maintaining Contoso infrastructure-as-code best practices.

Why is manually creating Terraform module structures considered error-prone?

Manually creating Terraform module structures is error-prone due to inconsistent configurations across teams. Automating module scaffolding eliminates repetitive boilerplate work, ensuring standardized Azure provider setup and naming logic for cloud engineering teams.

Does this Terraform module scaffolding support reusable tf-module-* repositories?

Yes, this Terraform module scaffolding supports creating reusable tf-module-* repositories. It generates a complete, pre-structured directory layout with required core files for building reusable Azure infrastructure components.