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
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
| Skill | Publisher | What it does | Repo stars | Last update |
|---|---|---|---|---|
| golang-spf13-cobra (this page) | samber | Golang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain,… | 3,672 | 2026-10-23 |
| golang-project-layout(same repository) | samber | Golang project layout and workspace setup — cmd/internal/pkg directory conventions, module and package naming… | 3,672 | 2026-10-23 |
| setup-matt-pocock-skills | mattpocock | Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain… | 303,549 | 2026-10-22 |
| brand-guidelines | anthropic | Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having… | 183,845 | 2026-10-09 |
| frontend-design | anthropic | Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps… | 183,845 | 2026-10-09 |
| apple-design | emilkowalski | Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or… | 49,715 | 2026-10-11 |
| mobile-native | emilkowalski | Make a web app feel native on a phone — the small CSS and meta-tag fixes that separate "a website in a browse… | 49,715 | 2026-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
- ai-product-photographyby 101-skills
- app-store-screenshotsby 101-skills
- email-designby 101-skills
- landing-page-designby 101-skills
- product-photographyby 101-skills
- social-media-carouselby 101-skills