golang-configuration
БесплатноБез исполняемых скриптовНе проверенLoad and validate application configuration from environment variables and config files. Use when managing Go application config with environment variables or…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Golang Configuration
Priority: P1 (HIGH)
Principles
- 12-Factor App: Store config in environment variables.
- Typed Config: Load config into struct, validate immediately.
- Secrets: Never commit secrets. Use env vars or secret managers.
- No Globals: Return Config struct and inject it.
Implementation Workflow
- Define Config struct — Create typed struct with all required fields.
- Load defaults — Set sensible defaults for non-secret values.
- Override from file — Optionally load from YAML/JSON config file.
- Override from env — Environment variables take highest priority.
- Validate at startup — Crash immediately on missing required config.
- Inject via constructor — Pass Config to services; never use global config vars.
See config struct and usage examples
Libraries
- Standard Lib:
os.Getenvfor simple apps. - Viper: Industry standard for complex configs (env, files, remote).
- Koanf: Lighter, cleaner alternative to Viper.
- Caarlos0/env: Strict struct tagging approach.
Anti-Patterns
- No hardcoded secrets: load all secrets from env vars or secret manager.
- No global config vars: return typed Config struct and inject via constructors.
- No silent startup: crash immediately on missing required env vars.
References
Установить golang-configuration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл golang-configuration?
Load and validate application configuration from environment variables and config files. Use when managing Go application config with environment variables or viper.
Как установить скилл golang-configuration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл golang-configuration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic