env-var-mapper

Solid

Generate environment variable to CLI argument mapping with prefix support, type conversion, and fallback chains for configuration.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Environment Variable Mapper Generate environment variable to CLI argument mapping for flexible configuration. ## Capabilities - Generate env var to argument mapping logic - Create prefix-based environment loading - Set up type conversion for env vars - Implement fallback chains (env -> config -> default) - Configure .env file support - Generate documentation for env vars ## Usage Invoke this skill when you need to: - Map environment variables to CLI arguments - Create prefix-based config loading - Implement configuration fallback chains - Support .env files in CLI applications ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | language | string | Yes | Target language (typescript, python, go) | | prefix | string | No | Env var prefix (e.g., MYAPP_) | | mappings | array | Yes | Environment variable mappings | | dotenvSupport | boolean | No | Enable .env file support (default: true) | ### Mapping Structure ```json { "mappings": [ { "envVar": "PORT", "argument": "port", "type": "number", "default": 3000, "description": "Server port" }, { "envVar": "DATABASE_URL", "argument": "database-url", "type": "string", "required": true, "sensitive": true }, { "envVar": "DEBUG", "argument": "debug", "type": "boolean", "default": false } ] } ``` ## Generated Code Patterns ### TypeScript Mapper ```typescript import {...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills