golang-spf13-cobra
Claude Code skill by @samber
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`.
- Price: Free
- Signal index: 0/100
- Source: samber/cc-skills-golang
- Updated:
Related topics
- Testing skills
- Command line skills
- Software architecture skills
- GitHub skills
- Markdown skills
- Go skills
- Audio and voice skills
- Tailwind CSS skills
- Google Cloud skills
- Refactoring skills
- ComfyUI skills
- Keyword research skills
- JavaScript skills
- Claude Code workflow skills
- Flutter skills
- Authentication skills
- Workflow automation skills
- Debugging skills
- Deep research skills
- Blender skills
- React Native skills
- Cloudflare skills
- Diagrams skills
- Prisma and Drizzle skills
- Java skills
- iOS and Swift skills
- RAG and vector search skills
- Word documents skills
- PHP and Laravel skills
- Image generation skills
Create a free account to install this skill or run it from Claude Code or Codex.