golang-cli
Golang CLI application development. Use when building, modifying, or reviewing a Go CLI tool — especially for command structure, flag handling, configuration layering, version embedding, exit codes, I/O patterns, signal handling, shell completion, argument validation, and CLI unit testing. Also triggers when code uses cobra, viper, or urfave/cli. For cobra-specific APIs → See…
- installs 8w
- 4,172
- 30-day movement
- starts with the next reading
- Related entries
- 1
- Connections
- 1
golang-cli is a SKILL.md agent skill that guides an AI coding agent through Go CLI development conventions. It covers command structure, flags, Viper config layering, version embedding, exit codes, I/O, signal handling, shell completion, argument validation, and CLI testing, with bundled example Go files for each topic.
Reach for it when you want your agent to apply standard Cobra/Viper best practices instead of ad-hoc CLI patterns.
Use it to
- Scaffold a new Go CLI with a root command and subcommands
- Wire Viper configuration layering with flags, env vars, and config files
- Add Unix-convention exit codes and graceful signal handling
- Generate shell completions and embed version info at build time
- Write unit tests for CLI commands
For Developers building Go CLIs with AI coding agents
- Host repository
- samber/cc-skills-golang
- Version
- 1.3.0
- Installs, lifetime
- 37k
- Installs, 8 weeks
- 4,172
- Allowed tools
- Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent AskUserQuestion
- Compatible with
- Designed for Claude Code, Codex or similar harness, and for projects using Golang.
- Licence
- MIT
- Invocable by
- user
- Host stars
- 3,261
- Host language
- Go