x-env-config
OfficialMake env-based configs consistent and safe
Authorpure-golang
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents configuration drift by ensuring that Go Config structs, doc.go documentation, and .env variables stay aligned when using envconfig and env.InitConfig.
Core Features & Use Cases
- Keeps Config contracts consistent: validates that envconfig tags match what you document and what you place in
.env. - Guides correct configuration loading: standardizes loading via
env.InitConfigfrom.env(optional) and environment variables. - Supports nested adapter/platform configs: documents top-level variables explicitly while pointing to nested configs to avoid documentation noise.
- Improves test reliability: clarifies how to handle defaults/parsing/required behavior and warns against
t.Setenvcombined witht.Parallel()when process-wide state is involved.
Quick Start
Run scripts/check-env-config.py for your <config.go>, <doc.go>, and optionally your .env file to immediately verify the env variables are synchronized.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: x-env-config Download link: https://github.com/pure-golang/level85/archive/main.zip#x-env-config Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.