AI AGENT ADDONS

Golang Spf13 Cobra

samber/cc-skills-golang
CLI & Terminal
31,285installs

Build command line tools that feel natural in the terminal. The spf13/cobra library helps you create structured commands with subcommands, flags, and help text. It is the standard way to make Go programs that users run from the shell.

You define a tree of commands where each command has its own flags and arguments. Cobra handles flag parsing, argument validation, and shell completion. It also generates documentation like man pages. This skill shows you how to set up commands, wire up hooks like RunE, and use validators such as ExactArgs or custom ones.

Testing your CLI is easy with SetArgs and SetOut. The library works well for new projects or when adding commands to existing code. Use it alongside viper for configuration, or alone for simple flag-based tools.

Add Golang Spf13 Cobra skill to your workflow

Global

mkdir -p ~/.claude/skills/golang-spf13-cobra

Project

mkdir -p .claude/skills/golang-spf13-cobra

Source Repository

Stars
2,322
Forks
149
Watchers
2,322
License
MIT
Last Push
28 days ago
Created
4 months ago