Catalog / Skills

Go CLI Command Design

Design and review predictable Go command-line interfaces with canonical names and flags; explicit inputs and precedence; human, plain, and structured output; safe prompting; stdout and stderr contracts; help; errors; exit codes; cancellation; dependency injection; and platform behavior. Use when creating a Go CLI, changing its public command contract, making command code testable, or reviewing compatibility for people, scripts, AI agents, and CI.

Gov0.4.0MITgogolangclicommand-designflagsstreamsportability

Install

npx skills add LVTD-LLC/skills --skill go-cli-command-design

From `SKILL.md`

Design the command as a public interface before treating it as an implementation. Keep results pipeable, failures diagnosable, and process-global state at the edge.