인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
배포 및 운영 · SKILL.md

config-generator

config-generator

Dynamic configuration file generator for any environment. Generate nginx, apache, docker-compose, k8s manifests from templates. Use when: generate config, create manifest, template config, nginx config

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: config-generator description: | Dynamic configuration file generator for any environment. Generate nginx, apache, docker-compose, k8s manifests from templates.

Use when: generate config, create manifest, template config, nginx config

Config Generator v2.0.0

Generate production-ready configuration files from smart templates.

Features

  • 100+ built-in templates
  • Variable interpolation
  • Environment-aware generation
  • Validation included

Architecture

config-generator/
├── SKILL.md
└── scripts/
    └── config_generator.py   # Core generator implementation

Usage

/config-generator nginx --domain myapp.com
/config-generator docker-compose --services web,db,redis
/config-generator kubernetes --replicas 3

Quick Start

To generate a configuration, simply run:

from scripts.config_generator import generate_config

# Generate nginx config
config = generate_config("nginx", domain="myapp.com")
print(config)

That's it! The generate_config() function handles everything automatically.

Core Functions

generate_config(template_name, **kwargs)

The main function for configuration generation:

from scripts.config_generator import generate_config, ConfigGenerator

# Simple usage
config = generate_config("nginx", domain="myapp.com")

# Advanced usage with custom template directory
generator = ConfigGenerator(template_dir="./my_templates")
config = generator.generate("custom-template", var1="value1")

ConfigGenerator Class

The main generator class with template processing capabilities:

from scripts.config_generator import ConfigGenerator

generator = ConfigGenerator()

# Load template
template = generator.load_template("nginx")

# Process with variables
result = generator.process_template(template, {"domain": "example.com"})

Template Syntax

Templates support variable interpolation and code blocks:

# nginx.conf template
server {
    listen 80;
    server_name {{% result = vars["domain"] %}};
    root /var/www/html;
}

Configuration Options

OptionDescriptionDefault
template_dirDirectory for local templates"./templates"
variablesKey-value pairs for substitution{}

Configuration as Code - done right

저장한 Skills