go-cli-errors-observability
Installation
SKILL.md
Go CLI Errors and Observability
Design failures for recovery first, then add the minimum safe evidence needed to diagnose them. Keep internal detail out of the normal user contract.
Core Workflow
- Classify failures by user action, dependency, cancellation, and internal defect.
- Preserve machine-checkable causes with wrapping, types, or sentinels.
- Map causes to concise user messages and stable exit behavior at the boundary.
- Assign one terminal owner to render, log, and map each failure.
- Preserve material cleanup failures without hiding the primary cause.
- Add opt-in verbosity and structured logs on stderr or a dedicated sink.
- Allowlist and redact diagnostic evidence; require consent before collection or upload.
- Test recovery guidance, output separation, redaction, and cancellation.