tf-root-module

Generates Terraform root modules by composing reusable child modules from the modules directory.

1|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/senad-d/terraform-skills --skill tf-root-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tf-root-module
Source: https://github.com/senad-d/terraform-skills/tree/main/tf-root-module
Command: npx skills add https://github.com/senad-d/terraform-skills --skill tf-root-module

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a standardized and opinionated workflow for creating, validating, and documenting Terraform root modules, ensuring consistency and adherence to best practices across your infrastructure as code.

Core Features & Use Cases

  • Guided Module Creation: Automates the scaffolding of new root modules with essential files and structure.
  • Standardized Workflow: Enforces a clear process for investigation, planning, implementation, validation, and cleanup.
  • Best Practice Enforcement: Integrates security, naming, and tagging conventions directly into the workflow.
  • Use Case: When you need to create a new Terraform root module to manage a specific AWS environment or service, this Skill guides you through the entire process, from initial planning to final validation, ensuring it meets organizational standards.

Quick Start

Use the tf-root-module skill to create a new root module named 'vpc-network' for your project.

Frequently Asked Questions about tf-root-module

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

FAQPage Schema
How do I build a Terraform root module for AWS infrastructure?

To build a Terraform root module for AWS, compose reusable child modules from the 'modules/' directory while enforcing enterprise guardrails for planning, validation, and documentation. This ensures consistency and adherence to infrastructure as code best practices across your environments.

What is a Terraform root module and when do I need one?

A Terraform root module is the main directory where Terraform executes commands, composing reusable child modules to manage a specific AWS environment or service. You need one to ensure standardized, opinionated infrastructure as code workflows with enforced security and naming conventions.

How do I scaffold a new Terraform root module with best practice naming and tagging?

Scaffold a new Terraform root module using an automated, guided workflow that generates essential files and structure. This process directly integrates security, naming, and tagging conventions into the initial setup to meet organizational infrastructure as code standards.

Can I validate and clean up Terraform state within a root module workflow?

Yes, you can validate and clean up Terraform state within a root module workflow. The process supports dedicated workflows for investigating, planning, testing, and cleaning up Terraform state, ensuring robust validation and safe infrastructure management.

What is the best way to manage Terraform child module composition in an enterprise environment?

The best way to manage Terraform child module composition is by using an opinionated root module workflow that enforces enterprise-grade guardrails for planning, validation, and documentation. This ensures all infrastructure as code adheres to strict security and tagging conventions.