Rule · Standards · #standards #go #agents-md
Standing orders for AI agents working in this repository. Drop into AGENTS.md or your tool's rules file.
gofmt (or goimports) is law — run it before presenting code as done.go vet ./... and the repo's linter must pass. Fix findings, don't silence them.go.mod; no newer language features.error, don't panic. Wrap with fmt.Errorf("doing X: %w", err) so chains unwrap.func Do(ctx context.Context, …). Never store a context in a struct.t.Run subtests. testify only if the repo already uses it.*_gen.go, *.pb.go); change the generator input instead.This is one of dozens of free prompts in the AIStorageDepot library. Sign up free to save them, version them, and pull them straight into Claude, Cursor, or VS Code over MCP.