env-var-mapper
SolidGenerate environment variable to CLI argument mapping with prefix support, type conversion, and fallback chains for configuration.
AI & Automation 1,160 stars
71 forks Updated today MIT
Install
Quality Score: 96/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
dotenv-integration
Integrate dotenv for environment variable loading with validation and type coercion.
1,160 Updated today
a5c-ai AI & Automation Solid
configuration-migrator
Migrate configuration files between formats and versions with environment variable extraction
1,160 Updated today
a5c-ai Data & Documents Listed
env-manager
Environment variable management, validation, and documentation.
335 Updated today
aiskillstore AI & Automation Solid
argument-validator-generator
Generate argument validation logic with type coercion, constraints, custom validators, and helpful error messages for CLI applications.
1,160 Updated today
a5c-ai AI & Automation Solid
mcp-error-code-mapper
Map application errors to MCP error codes with proper messages, error types, and recovery suggestions.
1,160 Updated today
a5c-ai