Golang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args vali…
Part of cc-skills-golangPack · 46 skills
by samber· Developer toolsUnclaimed · Yours? Claim it
About
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`.
Skills people install alongside golang-spf13-cobra.
Runs on your machine.
Runs on your machine.
Runs on your machine.
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-spf13-cobra ~/.copilot/skills/golang-spf13-cobra
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-spf13-cobra ~/.cursor/skills/golang-spf13-cobra
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-spf13-cobra ~/.claude/skills/golang-spf13-cobra
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-spf13-cobra ~/.agents/skills/golang-spf13-cobra
Runs on your machine.
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-spf13-cobra ~/.gemini/skills/golang-spf13-cobra
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-spf13-cobra .agents/skills/golang-spf13-cobra
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-spf13-cobra ~/.openclaw/skills/golang-spf13-cobra
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-spf13-cobra ~/.config/opencode/skills/golang-spf13-cobra
Runs on your machine.
npx -y degit samber/cc-skills-golang/skills/golang-spf13-cobra ~/.hermes/skills/golang-spf13-cobra
Scanned and passed · checked 50 min ago
From people who use it
Step by step
Nothing new reaches your agent until a person has looked at it.
Scanned on every change, and again when our rules improve.
No reviews yet. Used golang-spf13-cobra? Say how it went.
Write a reviewTw93's engineering habits as eight skills: plan before you build, debug to root cause, review before you ship, and more.
Go skills for coding agents: idiomatic style, error handling, testing, concurrency, security and performance for production Go projects.
Test Double's coding skills: build test-first, refactor under green tests, review your branch and trace bugs to their root cause.
Nobody has shared how they use golang-spf13-cobra yet.
Security scan
Passed
Safe to install in every agent it supports. Runs in your agent, as instructions.