go-cobra-applications

Installation
SKILL.md

Go Cobra Applications

Keep Cobra and Viper at the application edge. Construct a fresh command tree per execution and translate CLI state into typed application calls.

Core Workflow

  1. Model the tree around user resources, workflows, and operations.
  2. Define invocation contracts, argument validation, examples, and flag scope.
  3. Construct fresh root and subcommands with explicit dependencies and streams.
  4. Keep handlers thin, propagate context, and return errors.
  5. Resolve defaults, config, environment, and flags into a validated typed config.
  6. Test parsing, inheritance, precedence, help, errors, and repeated execution.
  7. Generate completion and documentation from the same runtime tree.

Read Next

Installs
1
Repository
lvtd-llc/skills
GitHub Stars
1
First Seen
Aug 30, 2026
go-cobra-applications — lvtd-llc/skills