go-command-designing
CommunityDesign robust CLIs with go-command patterns.
Authorkaptinlin
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Go project CLIs often suffer from inconsistent command structures, unclear flag vs positional usage, and brittle handlers. This Skill provides a design blueprint for building world-class CLIs with the go-command framework, covering command patterns, constraints, grouping, help text, and agent-friendly outputs.
Core Features & Use Cases
- Noun-Verb Hierarchy: Structure commands as
<noun> <verb>with clear targets. - Declarative Constraints: Use
Exclusive,RequiredTogether,Requires, andConflictsto declare behavior instead of writing bespoke validation. - Layered Architecture: Thin handlers in commands, dedicated services, and clean separation of
internalandpkgcode. - Agent-Ready Patterns: Structured outputs with
Respond[T], mode awareness, and self-documenting command schemas for automation. - Help & Grouping: Progressive disclosure,
Examples,Option.Group, and command grouping for large CLIs.
Quick Start
Design a new CLI command by applying the go-command design principles described here, including a noun-verb structure, proper flag vs positional usage, and thin, testable handlers.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: go-command-designing Download link: https://github.com/kaptinlin/gozod/archive/main.zip#go-command-designing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.