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.
Global
mkdir -p ~/.claude/skills/golang-spf13-cobraProject
mkdir -p .claude/skills/golang-spf13-cobraSource Repository
Lark Sharedlarksuite/cli
Manage Feishu resources from terminal with user and bot authentication and permission handling
Runcomfy Cliagentspace-so/runcomfy-agent-skills
One binary one login runs hundreds of AI models from your command line
Tzstxixu-me/skills
Create extract and manage tzst archives with safe defaults and scripting support
Xdropxixu-me/skills
Upload and download files securely from your terminal with Xdrop CLI
Runcomfy Clidoany-ai/skills
One binary, one auth, hundreds of AI models from your terminal
Runcomfy Cliruncomfy-com/skills
Control hundreds of AI models from your command line with one simple tool
Hyperframes Cliheygen-com/hyperframes
Scaffold, lint, inspect, preview, and render video compositions from your terminal
Sentry Clisentry/dev
Manage your Sentry projects and issues directly from the terminal