Generates service-specific configuration files for GitLab stack projects in ./config directory, using .env as the primary configuration source. Creates nginx, PostgreSQL, Redis, and custom service configs with strict validation for secrets, paths, and Docker best practices. Use when setting up service configurations, creating config templates, or ensuring configs follow stack patterns.
Generate service-specific configuration files for GitLab stack projects with .env as the primary configuration source
The Config Generator skill creates service configurations for GitLab stack projects, ensuring all configs use .env variables, never contain secrets, and follow proper patterns. It also generates essential project meta files (CLAUDE.md, .gitignore, .dockerignore).
Core Principle: .env is the single source of configuration truth.
/plugin marketplace add rknall/Skills
/plugin install config-generator
# Generate nginx and PostgreSQL configs
claude "generate nginx and postgres configs"
# User will be prompted for template selection
# Create CLAUDE.md, .gitignore, .dockerignore
claude "generate project meta files"
All configuration variables in .env:
# .env
NGINX_PORT=80
NGINX_HOST=localhost
POSTGRES_DB=myapp_db
REDIS_MAXMEMORY=256mb
Secrets ONLY in ./secrets via Docker secrets:
# ❌ BAD - Secret in config
password: supersecret123
# ✅ GOOD - Reference to Docker secret
# Password loaded from /run/secrets/db_password
CRITICAL: Must always match:
# Both files must have identical variable names
# Values in .env.example can be defaults/examples
./config/
├── nginx/
│ └── nginx.conf # Flat inside service dir
├── postgres/
│ ├── postgresql.conf
│ └── init.sql
└── redis/
└── redis.conf
claude "Set up config for nginx, postgres, and redis"
Workflow:
claude "Update nginx config to use SSL"
Secret Detection (CRITICAL)
.env Sync (CRITICAL)
Path Validation
Docker Validation
Syntax Validation
nginx -tCRITICAL CONTENT:
Excludes:
/secrets/* (except .gitkeep).env/_temporary/*Excludes from Docker builds:
.git/, .env, secrets/*.md)Called when:
Called for:
Used for:
# 1. Generate configs
claude "generate nginx, postgres, redis configs with SSL for nginx"
# 2. Review generated files
ls -la config/
cat .env
cat CLAUDE.md
# 3. Validate
docker compose config
# 4. Start
docker compose up -d
claude "add redis config to my stack"
Fix:
claude "sync .env.example with .env"
Response:
❌ CRITICAL: Secret detected in ./config/nginx/nginx.conf
Line 15: password=abc123
Action: Use secrets-manager to move to Docker secrets
Response: Address docker-validation findings before completing
Generate secure, validated service configurations following GitLab stack patterns.
npx skills add rknall/GitLab Stack Config Generator下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer