# golang-spf13-viper

> Golang configuration library using spf13/viper — layered precedence (flag > env > file > KV > default), BindPFlag/BindP…

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`.

- Type: Skill
- Made by: samber
- Category: Developer tools
- Formats: Skills
- Version: 1.1.2
- Source: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper
- Page: https://pluginboard.ai/skills/golang-spf13-viper

## Works with

- ChatGPT
- Claude
- Gemini
- GitHub Copilot
- Cursor
- Claude Code
- Codex
- Antigravity
- Gemini CLI
- Replit
- OpenClaw
- OpenCode
- Hermes Agent

## Install

### ChatGPT

In ChatGPT: Download the golang-spf13-viper folder and zip it, then Plugins → Skills → Create → Upload from your computer. Business and Enterprise plans.

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### Claude

In Claude (web or desktop): Download the golang-spf13-viper folder and zip the folder itself, then upload it in Customize → Skills.

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### Gemini

In Gemini: Download the golang-spf13-viper folder, then at gemini.google.com click Customize → Skills → Create → Upload and pick the folder (or a .zip of it).

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### GitHub Copilot

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-spf13-viper ~/.copilot/skills/golang-spf13-viper
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### Cursor

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-spf13-viper ~/.cursor/skills/golang-spf13-viper
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### Claude Code

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-spf13-viper ~/.claude/skills/golang-spf13-viper
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### Codex

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-spf13-viper ~/.agents/skills/golang-spf13-viper
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### Antigravity

In Antigravity: Copy the golang-spf13-viper folder into ~/.gemini/config/skills (Antigravity app and IDE) or ~/.gemini/antigravity-cli/skills (Antigravity CLI).

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### Gemini CLI

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-spf13-viper ~/.gemini/skills/golang-spf13-viper
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### Replit

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-spf13-viper .agents/skills/golang-spf13-viper
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### OpenClaw

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-spf13-viper ~/.openclaw/skills/golang-spf13-viper
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### OpenCode

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-spf13-viper ~/.config/opencode/skills/golang-spf13-viper
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

### Hermes Agent

Run in your terminal:

```shell
npx -y degit samber/cc-skills-golang/skills/golang-spf13-viper ~/.hermes/skills/golang-spf13-viper
```

View the folder on GitHub: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-spf13-viper

---
From Pluginboard (https://pluginboard.ai).
