Use this skill when changing a Go command-line application.
Instructions
Start from the command behavior and its tests.
Prefer table-driven tests for parser, filter, and formatter behavior.
Keep command output stable and easy to parse.
Return errors from command handlers instead of exiting deep in library code.
Use gofmt before final verification.
Run targeted tests first, then the full suite and build.
Verification
go test ./...
go build -v ./cmd/<binary>
git diff --check
Output Design
Use tabs for machine-readable list output.
Include enough fields for users to decide the next command.
Keep detailed metadata in info commands rather than crowded list views.
1---2name: go-cli-development3description: Go CLI Development4---5# Go CLI Development67Use this skill when changing a Go command-line application.89## Instructions1011- Start from the command behavior and its tests.12- Prefer table-driven tests for parser, filter, and formatter behavior.13- Keep command output stable and easy to parse.14- Return errors from command handlers instead of exiting deep in library code.15- Use `gofmt` before final verification.16- Run targeted tests first, then the full suite and build.1718## Verification1920```bash21go test ./...22go build -v ./cmd/<binary>23git diff --check24```2526## Output Design2728- Use tabs for machine-readable list output.29- Include enough fields for users to decide the next command.30- Keep detailed metadata in `info` commands rather than crowded list views.
Run npx skillmds@latest add sahit-sai/go-cli-development in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Go CLI Development It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
sahit-sai (@sahit-sai) published this skill. Their other Agent Skills are listed on their SkillMD profile.