Skip to content
InfratoApp
InfratoApp / Resources / Agent skills / golang-spf13-cobra

golang-spf13-cobra

golang-spf13-cobra is an agent skill published by samber, listed under design. It lives in the samber/cc-skills-golang repository, which has 3,672 GitHub stars and is licensed under MIT; we last read it on 2026-09-16.

This library provides a framework for building Golang command-line interfaces using spf13/cobra, including command tree structure, argument validation, flag handling, and customization of usage messages. It requires no specific credentials.

Install

skills is a generic installer for any repository of Claude agent skills -- it reads samber/cc-skills-golang’s own structure rather than assuming one, the same way this page reads the skill’s own SKILL.md rather than assuming a format.

npx skills add samber/cc-skills-golang

Maintenance

Stars
3672
State
listed
Licence
MIT
From the repository

Golang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, custom), persistent vs local flags, command groups, ValidArgsFunction, RegisterFlagCompletionFunc, ShellCompDirective, usage/help template customization, man-page and markdown doc generation, and testing with SetArgs/SetOut/SetErr. Apply when using or adopting spf13/cobra, or when the codebase imports `github.com/spf13/cobra`. For configuration layering alongside cobra, see the `samber/cc-skills-golang@golang-spf13-viper` skill. For general CLI architecture (project layout, exit codes, signal handling, I/O patterns), see `samber/cc-skills-golang@golang-cli`.

golang-spf13-cobra compared with similar skills

golang-spf13-cobra compared with other skills for the same job, by publisher, what it does, repository stars and last update
SkillPublisherWhat it doesRepo starsLast update
golang-spf13-cobra (this page)samberGolang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain,…3,6722026-10-23
golang-project-layout(same repository)samberGolang project layout and workspace setup — cmd/internal/pkg directory conventions, module and package naming…3,6722026-10-23
setup-matt-pocock-skillsmattpocockConfigure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain…303,5492026-10-22
brand-guidelinesanthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having…183,8452026-10-09
frontend-designanthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps…183,8452026-10-09
apple-designemilkowalskiApple's approach to interface design and fluid, physical motion, translated for the web. Use when building or…49,7152026-10-11
mobile-nativeemilkowalskiMake a web app feel native on a phone — the small CSS and meta-tag fixes that separate "a website in a browse…49,7152026-10-11

Skills from the same repository first, then others for this job by repository stars. Figures are from each repository when we last read it.

Common questions about golang-spf13-cobra

What does golang-spf13-cobra do?
This library provides a framework for building Golang command-line interfaces using spf13/cobra, including command tree structure, argument validation, flag handling, and customization of usage messages. It requires no specific credentials.
How do I install golang-spf13-cobra?
Run npx skills add samber/cc-skills-golang. The skills installer reads the repository’s own structure, so it works for any repository of agent skills.
Who publishes golang-spf13-cobra?
samber.
Is golang-spf13-cobra maintained, and what licence does it use?
Its repository has 3,672 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-10-23. The repository declares the MIT licence.

More agent skills for design

All design entries →

Learn this on Infrato