code-generation

Generate Terraform code from parameterized templates and blueprint manifests.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/berTrindade/terraform-infrastructure-blueprints --skill code-generation-bertrindade
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-generation
Source: https://github.com/berTrindade/terraform-infrastructure-blueprints/tree/main/skills/code-generation
Command: npx skills add https://github.com/berTrindade/terraform-infrastructure-blueprints --skill code-generation-bertrindade

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires js-yaml, and includes scripts (resource) components.

What problem does it solve?

Generate Terraform code locally from parameterized templates driven by blueprint manifests. This enables teams to add capabilities to existing projects (e.g. RDS, SQS, Cognito) by producing concise, ready-to-apply code instead of reviewing large repository snippets.

Core Features & Use Cases

  • Generate Terraform modules from parameterized templates that conform to blueprint manifests.
  • Scaffold infrastructure for adding a capability to an existing project with project-specific parameters.
  • Use Case: When integrating a new pattern into an app, render 50–100 lines of pre-adapted code that matches naming conventions and security requirements.

Quick Start

Provide a JSON payload to the generator via stdin. Example:

  • Payload: echo '{"blueprint":"apigw-lambda-rds","snippet":"rds-module","params":{"db_identifier":"myapp-dev-db","db_name":"myapp"}}' | node scripts/generate.js

Frequently Asked Questions about code-generation

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

FAQPage Schema
How do I generate Terraform code from parameterized templates for an existing project?

To generate Terraform code, provide a JSON payload via stdin containing the blueprint name, snippet, and project-specific parameters. The generator outputs 50–100 lines of pre-adapted code matching your naming conventions and security requirements.

What's the best way to add infrastructure capabilities like RDS or SQS to an existing Terraform project?

The best way to add capabilities like RDS or SQS is using blueprint manifests that render concise, ready-to-apply Terraform modules. This produces 50–100 lines of pre-adapted code instead of requiring you to review large repository snippets.

Can I use blueprint manifests to scaffold infrastructure components without copying large code blocks?

Yes, blueprint manifests scaffold infrastructure by generating parameterized Terraform code locally. This approach saves tokens by producing concise, ready-to-apply code tailored to your project rather than fetching 200+ lines from a repository.

How does local Terraform code generation from blueprints save tokens compared to fetching repository snippets?

Local Terraform code generation from blueprints saves tokens by producing 50–100 lines of pre-adapted code from parameterized templates instead of fetching and reviewing 200+ lines of repository snippets, streamlining the capability integration process.

Do I need js-yaml installed to run the Terraform code generator?

Yes, js-yaml is a required dependency for the Terraform code generator. You need it installed in your environment to parse blueprint manifests and render parameterized templates into ready-to-apply infrastructure code.

What parameters do I pass to generate Terraform modules from blueprint templates?

You pass a JSON payload via stdin containing the blueprint name, the specific snippet identifier, and a params object with project-specific variables like database identifiers and names. The generator uses these to render pre-adapted Terraform code.