Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design and review adaptive Go CLI terminal experiences with explicit human, plain, and structured modes; per-stream TTY detection; color and accessibility controls; prompts; progress; secret input; cancellation; and broken-pipe handling. Use when a Go CLI must work safely for people, scripts, AI agents, CI, redirected streams, or interactive dashboards.
.claude/skills/hashgraph-online-go-cli-terminal-experience/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 13% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 21% | 0% |
| case-21 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 13% | 0% |
Make interaction an explicit mode, not an accidental consequence of where the process runs. Preserve stable data and failure contracts underneath rich output.
human, plain, or structured mode.| Task | Load | |---|---| | Choose output and interaction modes | guidelines.md, workflows/design-output-modes.md | | Add prompts, progress, color, or secrets | references/terminal-experience/rules.md, workflows/add-safe-interaction.md | | Build a full-screen terminal UI | workflows/build-terminal-dashboard.md | | Review examples and edge cases | references/terminal-experience/examples.md | | Understand capability detection | references/terminal-experience/knowledge.md |
NO_COLOR,then terminal detection.
Ctrl-C, context cancellation, and broken pipes deterministic.Guidance is transformed and paraphrased from Marian Montagnino, Building Modern CLI Applications in Go (Packt, 2023), especially Chapters 8 and 10, and Ricardo Gerardi, Powerful Command-Line Applications in Go (Pragmatic Bookshelf, 2021). Examples are original adaptations.
Verify current APIs against https://pkg.go.dev/golang.org/x/term, https://no-color.org/, and the selected terminal UI framework.
Renderer lifecycle and backpressure guidance also incorporates transformed material from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), Chapters 6-7.
Other measured skills in the registry, with their headline benchmark lift.