terraform-patterns

Enforce standardized Terraform module layouts and per-environment state patterns.

23|7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/kinncj/MAPLE --skill terraform-patterns-kinncj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-patterns
Source: https://github.com/kinncj/MAPLE/tree/main/template/.opencode/skills/terraform-patterns
Command: npx skills add https://github.com/kinncj/MAPLE --skill terraform-patterns-kinncj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terraform patterns help teams enforce consistent module structure, state management, and reusable patterns to reduce drift and improve collaboration.

Core Features & Use Cases

  • Enforce a standardized module layout across projects
  • Promote safe state handling with per-environment patterns
  • Facilitate reuse of common module patterns and conventions

Quick Start

Use the Terraform-patterns skill to scaffold a standard module layout and apply best-practice patterns to your Terraform code.

Frequently Asked Questions about terraform-patterns

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

FAQPage Schema
How do I structure Terraform modules for multiple environments?

To structure Terraform modules for multiple environments, apply a standardized module layout and separate state management per environment. This enforces best-practice module patterns, reduces configuration drift, and improves team collaboration across dev, staging, and production deployments.

What is the best way to manage Terraform state across environments?

The best way to manage Terraform state is by applying per-environment state patterns that isolate infrastructure data. This safe state handling prevents concurrent write conflicts and drift, ensuring reliable infrastructure-as-code deployments across dev, staging, and production environments.

How do I scaffold a standard Terraform module layout?

You can scaffold a standard Terraform module layout by applying documented conventions and module patterns to your codebase. This creates a standardized, reusable infrastructure-as-code structure that enforces consistent layouts across projects and reduces configuration drift.

Why does my Terraform infrastructure drift between staging and production?

Terraform infrastructure drifts between staging and production due to inconsistent module structures and unmanaged state. Applying standardized module patterns and per-environment state management enforces consistent layouts, eliminating drift and improving infrastructure-as-code collaboration.

Can I reuse Terraform module patterns across different projects?

Yes, you can reuse Terraform module patterns across different projects by enforcing a standardized module layout and documented conventions. Facilitating the reuse of common module patterns ensures consistent infrastructure-as-code deployment and reduces configuration drift across teams.