cobra-patterns

Community

Production Cobra CLI patterns

Authorvanman2024
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill offers production-ready Cobra patterns for Go CLIs, including command hierarchies, flag management, and lifecycle hooks inspired by kubectl and friends.

Core Features & Use Cases

  • Kubectl-style Structures: Nested commands with clear hierarchy.
  • Flag Management: Local and persistent flags with validation.
  • Initialization & Hooks: Init/PreRun/PostRun hooks for robust behavior.
  • Templates & Examples: Ready-to-use patterns and templates.

Quick Start

Scaffold Cobra-based CLIs with templates, then implement business logic and tests.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cobra-patterns
Download link: https://github.com/vanman2024/cli-builder/archive/main.zip#cobra-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.