go-devlisted
Install: claude install-skill pszypowicz/claude-skills
# Go Development
## Session Init
At the start of any Go session, detect the project's Go version:
1. Read `go.mod` and extract the `go` directive (e.g., `go 1.26`)
2. This version controls which language features and stdlib APIs are available
3. If you are about to suggest a feature gated behind a newer version, stop and note the incompatibility
### Version Feature Table
| Version | Key additions |
| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1.21 | `log/slog`, `slices`, `maps`, `min`/`max`/`clear` builtins, `context.AfterFunc`, `context.WithoutCancel`, `sync.OnceFunc`/`OnceValue`, PGO auto |
| 1.22 | `for i := range n`, `math/rand/v2`, enhanced `http.ServeMux` routing (method+pattern), loopvar semantic change |
| 1.23 | `iter.Seq`/`iter.Seq2`, range-over-func, `unique.Handle`, `structs.HostLayout` |
| 1.24 | `testing.T.Context`, `testing.T.Chdir`, `os.Root`, generic type aliases, `go tool` runs module tools, `testing/synctest`, `omitzero` JSON tag |
| 1.25 | `sync.WaitGroup.Go`, `testing.T.Attr`, `testing.T.Output`, `sync.