sg-template-schema

Convert Terraform variable definitions into StackGuardian input_schema.json and ui_schema.json.

Updated Nov 24, 2020
One-click install
npx skills add https://github.com/hllvc/dotfiles --skill sg-template-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sg-template-schema
Source: https://github.com/hllvc/dotfiles/tree/main/.claude/skills/sg-template-schema
Command: npx skills add https://github.com/hllvc/dotfiles --skill sg-template-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

StackGuardian users often need to convert Terraform variable definitions into JSON Schema and UI schemas for no-code forms, enabling automated validation and UI generation.

Core Features & Use Cases

  • Terraform to JSON Schema conversion: maps variables.tf to input_schema.json and corresponding ui_schema.json.
  • Nested and complex types support: handles objects, maps, lists, optional/default values, and validations; supports allOf/if-then for conditional fields.
  • UI guidance: outputs UI patterns and references to help structure schemas for StackGuardian templates.

Quick Start

Run the generator against your Terraform variables.tf to produce input_schema.json and ui_schema.json.

Frequently Asked Questions about sg-template-schema

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

FAQPage Schema
How do I convert Terraform variables to JSON schema for no-code forms?

To convert Terraform variables to JSON schema for no-code forms, map your variables.tf definitions to generate matching input_schema.json and ui_schema.json files. This translates Terraform types into structured JSON schemas with corresponding UI patterns for automated validation and form generation.

What Terraform variable types are supported when generating a StackGuardian JSON schema?

StackGuardian JSON schema generation supports Terraform strings, numbers, booleans, lists, maps, and objects. It handles defaults, required fields, and complex nested configurations, mapping them directly into the corresponding input_schema.json and ui_schema.json structures.

How does conditional UI logic work in Terraform to UI schema mapping?

Conditional UI logic in Terraform to UI schema mapping uses advanced JSON schema patterns like allOf and if-then. These structures handle dependencies and conditional fields, ensuring proper validation within the generated ui_schema.json for no-code forms.

Can I generate a UI schema for complex nested Terraform objects and maps?

Yes, you can generate a UI schema for complex nested Terraform objects and maps. The conversion handles nested types, optional values, and validations, producing both input_schema.json and ui_schema.json to support intricate configurations in StackGuardian no-code forms.

Do I need existing Terraform variable files to create StackGuardian input and UI schemas?

Yes, you need existing Terraform variable definitions. The generator applies directly to your Terraform modules and variable files to produce the input_schema.json and ui_schema.json required for StackGuardian no-code form generation and validation.

Why use StackGuardian JSON schemas instead of raw Terraform variables for form generation?

StackGuardian JSON schemas enable automated validation and structured UI generation, whereas raw Terraform variables lack UI guidance. Converting variables.tf into input_schema.json and ui_schema.json provides proper type mappings, defaults, and dependency handling for no-code forms.