go-stacklisted
Install: claude install-skill fmind/dot
# Go Stack Standard
Canonical Go development: scaffolding, libraries, CLI/TUI tools, GOTH web apps, and the Go API side of ADK agents. The agent workflow belongs to [google-adk](../google-adk/SKILL.md); content sites belong to [hugo](../hugo/SKILL.md).
## 1. Core & Quality Stack
- **Go version**: target latest stable; adopt current idioms mechanically with `go fix ./...` and `gofumpt` rather than hand-porting.
- **Tooling split**: standalone CLIs (`golangci-lint`, `gotestsum`, `air`, `esbuild`) come from `mise.toml`; `tool` directives in `go.mod` hold `templ`, `goimports`, `gofumpt`, and `govulncheck`, run as `go tool <name>`.
- **Tasks and hooks**: [mise.toml](references/mise.toml) (web) or [mise-cli.toml](references/mise-cli.toml) (CLI/agent) per [mise](../mise/SKILL.md); [lefthook.yml](references/lefthook.yml) or [lefthook-cli.yml](references/lefthook-cli.yml) per [lefthook](../lefthook/SKILL.md).
- **Linting and formatting**: `goimports` + `gofumpt` format Go; `golangci-lint` ([golangci.yml](references/golangci.yml)) enforces zero warnings; `dprint` keeps config and markup per [dprint](../dprint/SKILL.md).
- **Testing**: standard `testing` (starters stay dependency-free), `stretchr/testify` when richer assertions pay off, run through `gotestsum`.
- **Logging**: `log/slog` — `TextHandler` locally with a dynamic `slog.LevelVar`, `JSONHandler` in production with trace context.
- **Observability**: OpenTelemetry for web and agents only; `SetupOTel` ([telemetry.go](referenc