Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design and review recoverable Go CLI errors, exit semantics, structured logging, debug modes, traces, profiles, redaction, and user-consented diagnostic bundles. Use when a CLI needs actionable failures, safe support evidence, production troubleshooting, or observability that does not corrupt command output or expose secrets.
.claude/skills/hashgraph-online-go-cli-errors-observability/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 28% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -12% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 31% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 29% | 0% |
Design failures for recovery first, then add the minimum safe evidence needed to diagnose them. Keep internal detail out of the normal user contract.
| Task | Load | |---|---| | Design error taxonomy and recovery | guidelines.md, workflows/design-error-recovery.md | | Add logging or support diagnostics | references/errors-observability/rules.md, workflows/add-safe-diagnostics.md | | Review code patterns | references/errors-observability/examples.md | | Understand layering and privacy | references/errors-observability/knowledge.md |
errors.Is.Guidance is transformed and paraphrased from Marian Montagnino, Building Modern CLI Applications in Go (Packt, 2023), especially Chapter 9, and Ricardo Gerardi, Powerful Command-Line Applications in Go (2021).
Handler composition, context correlation, and joined-error guidance also incorporates transformed material from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), Chapter 9.
Error ownership, panic boundaries, and cleanup-failure guidance also incorporates transformed material from Teiva Harsanyi, 100 Go Mistakes and How to Avoid Them (Manning, 2022), Chapter 7.
Verify current logging APIs against https://pkg.go.dev/log/slog and error APIs against the current Go standard library documentation.
Other measured skills in the registry, with their headline benchmark lift.