go-cli
Installation
SKILL.md
Go CLI
Build CLI tools with the stdlib flag package first. It handles 90% of
cases without a third-party dependency. Reach for cobra or urfave-cli
only when the help output or subcommand tree exceeds what flag can
present cleanly.
Project layout
For a single binary:
mycli/
├── main.go
├── go.mod
└── .golangci.yml
For multi-binary repos or tools that grow subcommand modules: