
Description
golang-cli is an agent skill from the samber cc-skills-golang collection for building, extending and reviewing Go command-line tools. Its persona is a Go CLI engineer who builds tools that feel native to the Unix shell: composable, scriptable and predictable under automation. The skill has three modes. Build mode covers creating a new CLI from scratch, following its guidance on project structure, root command setup, flag binding and embedding the version. Extend mode adds subcommands, flags or shell completions to an existing tool, and asks the agent to read the current command tree first so changes match the existing structure. Review mode audits a CLI for correctness, checking a table of common mistakes, confirming that SilenceUsage and SilenceErrors are set appropriately, that flags are bound to configuration correctly, that exit codes are meaningful, and that standard output and standard error are kept separate. The skill recommends Cobra for commands and subcommands with Viper for configuration from files, environment variables and flags, the same stack used by well-known tools such as kubectl, Docker, gh and Hugo. For trivial single-purpose tools with few flags and no subcommands, it says the standard library flag package is enough. It refers to library documentation for current signatures. It is useful for developers who want a Go command-line tool that behaves well in scripts. It is listed on skills.sh, where the page shows install counts and GitHub stars for the collection, and its security audits all pass. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-cli.…
Highlights
- Build, extend and review modes
- Cobra and Viper stack
- Flag binding and version embedding
- Exit codes and stdout/stderr discipline
- Shell completions
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-cli.
People also visit

go-concurrency-patterns
Master Go concurrency with goroutines, channels, sync primitives, and context
golang-cli FAQ
What does this skill cover?
Building, extending and reviewing Go command-line tools, with structure, flags, configuration and completions.
Which libraries does it recommend?
Cobra for commands and subcommands, with Viper for configuration. For trivial tools it says the standard flag package is enough.
What does review mode check?
SilenceUsage and SilenceErrors, flag-to-Viper binding, exit codes and stdout and stderr separation.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-cli.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
How popular is it?
The page shows about 37.7K installs, and the cc-skills-golang repository has 3.5K GitHub stars.
What are the best golang-cli alternatives?
Popular alternatives to golang-cli include golang-spf13-cobra, go-concurrency-patterns and cli-mastery. See all golang-cli alternatives

