tf-module-generator for Openclaw

An automated utility that scans live cloud environments to generate optimized, best-practice Terraform modules across AWS, Azure, and GCP.

martinforsulu
v1.0.1
Feb 25, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install neo-tf-module-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install neo-tf-module-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is tf-module-generator?

The tf-module-generator is a sophisticated automation tool designed to bridge the gap between manual cloud configuration and Infrastructure as Code (IaC). By analyzing existing resources across major cloud providers, it intelligently synthesizes modular Terraform code, complete with variable definitions and outputs. This ensures that your infrastructure is documented, reproducible, and standardized according to industry best practices.

As a vital component of the Openclaw Skills ecosystem, this tool simplifies the migration of legacy environments to managed codebases. It eliminates the manual labor of resource mapping, allowing DevOps teams to focus on high-level architecture while the skill handles the boilerplate generation and syntax validation.

tf-module-generator Use Cases

  • Migrating manually created AWS, Azure, or GCP resources into Terraform management
  • Standardizing infrastructure patterns by generating modules from existing production environments
  • Accelerating the creation of reusable IaC templates for VPCs, databases, and compute clusters
  • Automating resource documentation through generated Terraform code and example usage files
  • Streamlining multi-cloud management within Openclaw Skills workflows

How tf-module-generator Works

  1. The skill triggers via CLI or agent command, specifying the target cloud provider and resource scope.
  2. It utilizes local cloud provider credentials to scan and discover active infrastructure components.
  3. The engine maps discovered resources against predefined schema templates and provider logic.
  4. Optimized Terraform code is generated, including variables.tf, outputs.tf, and main.tf files.
  5. An integrated validator performs a syntax check and best-practice audit to ensure the code is deployment-ready.

tf-module-generator Setup

To get started, ensure you have Node.js 18+ and the relevant cloud CLIs configured on your system. This tool integrates directly with Openclaw Skills for enhanced automation.

# Clone the repository and install dependencies
npm install

# Ensure your cloud CLI is authenticated (e.g., AWS)
aws configure

# Run the generator for a specific provider
node scripts/main.js --provider aws --resource-type vpc

tf-module-generator Data Schema & Taxonomy

The skill organizes its operations through a structured directory focused on resource mapping and code synthesis:

Component Function
scripts/ Logic for AWS, Azure, and GCP scanners and the Terraform generator
references/ JSON-based resource schema mappings and module templates
assets/ Sample usage cases, test files, and Terraform version constraints
package.json Project metadata and Node.js dependency management

tf-module-generator Advanced Features

  • Multi-cloud support for deep resource discovery across AWS, Azure, and GCP
  • Automated syntax validation and best-practice enforcement for generated code
  • Seamless integration with Openclaw Skills session spawning for autonomous agent tasks
  • Intelligent variable extraction to maximize module reusability
  • Built-in documentation generator for every synthesized Terraform module

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*