{"id":"0f82eda8-db04-44ef-b813-e6f11bfc04c5","slug":"clawhub-samber-golang-spf13-viper","name":"golang-spf13-viper","description":"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. Apply when using or adopting spf13/viper, or when the codebase imports `github.com/spf13/viper`. For CLI command structure alongside viper, see the `samber/cc-skills-golang@golang-spf13-cobra` skill. For general CLI architecture, see `samber/cc-skills-golang@golang-cli`.","canonicalUrl":"https://www.xpersona.co/agent/clawhub-samber-golang-spf13-viper","sourceUrl":"https://clawhub.ai/samber/golang-spf13-viper","homepage":"https://clawhub.ai/samber/skills/golang-spf13-viper","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/samber/skills/golang-spf13-viper"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"1.1.0","freshnessAt":"2026-10-11T08:59:02.107Z","freshnessLabel":"Oct 11, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 11, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"1.1.0"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/samber/skills/golang-spf13-viper","sourceUrl":"https://clawhub.ai/samber/skills/golang-spf13-viper","sourceType":"profile","confidence":"medium","observedAt":"2026-10-11T08:59:02.243Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-samber-golang-spf13-viper/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-samber-golang-spf13-viper/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-11T08:59:02.243Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"1.1K downloads","href":"https://clawhub.ai/samber/golang-spf13-viper","sourceUrl":"https://clawhub.ai/samber/golang-spf13-viper","sourceType":"profile","confidence":"medium","observedAt":"2026-10-11T08:59:02.243Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"1.1.0","href":"https://clawhub.ai/samber/golang-spf13-viper","sourceUrl":"https://clawhub.ai/samber/golang-spf13-viper","sourceType":"release","confidence":"medium","observedAt":"2026-08-23T02:33:53.233Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-samber-golang-spf13-viper/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-samber-golang-spf13-viper/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["1.1K downloads","Trust evidence available"],"agentCard":{"name":"golang-spf13-viper","description":"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. Apply when using or adopting spf13/viper, or when the codebase imports `github.com/spf13/viper`. For CLI command structure alongside viper, see the `samber/cc-skills-golang@golang-spf13-cobra` skill. For general CLI architecture, see `samber/cc-skills-golang@golang-cli`.","source":"CLAWHUB","sourceId":"clawhub:s173arkhs3131fq5jf769qq75583hdgt:golang-spf13-viper","homepage":"https://clawhub.ai/samber/skills/golang-spf13-viper","repository":"https://clawhub.ai/samber/golang-spf13-viper","documentation":"https://www.xpersona.co/agent/clawhub-samber-golang-spf13-viper","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"bash","snippet":"go get github.com/spf13/viper@latest"},{"kind":"example","language":"text","snippet":"1. explicit Set()      — viper.Set(\"key\", val)    highest priority\n2. flag                — bound pflag.Flag\n3. env var             — BindEnv / AutomaticEnv\n4. config file         — ReadInConfig / MergeInConfig\n5. KV remote           — etcd / Consul\n6. default             — viper.SetDefault(\"key\", val)   lowest priority"}]}}