Golang configuration library using spf13/viper — layered precedence (flag > env > file > KV > default), BindPFlag/BindPFlags, SetEnvPrefix + SetEnvKeyReplacer + AutomaticEnv, ReadInConfig + ConfigFileNotFoundError, Unmarshal + mapstructure struct tags, Sub for sub-trees, WatchConfig + OnConfigChange for hot reload, viper.New() for test isolation, and remote KV integration.
Install
npx skills add samber/cc-skills-golang --skill golang-spf13-vipernpx skills add samber/cc-skills-golang --skill golang-spf13-viper -a claude-code -gnpx skills add samber/cc-skills-golang --skill golang-spf13-viper -a codex -ggemini skills install https://github.com/samber/cc-skills-golang.git --path skills/golang-spf13-vipergh skill install samber/cc-skills-golang golang-spf13-vipergit clone --depth 1 https://github.com/samber/cc-skills-golang /tmp/samber__cc-skills-golang
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/samber__cc-skills-golang/skills/golang-spf13-viper ~/.claude/skills/golang-spf13-viper # Claude Code
cp -R /tmp/samber__cc-skills-golang/skills/golang-spf13-viper ~/.agents/skills/golang-spf13-viper # Codex, Cursor, Gemini CLI, Copilot, OpenCode