Go development patterns, quality gates, and testing guidelines. Activated as an additive stack pack for projects using Go. Provides idiomatic Go patterns, golangci-lint configuration, and testing with the standard library and testify. Use when implementing Go features, setting up Go projects, or referencing Go best practices.
Additive stack pack providing Go development patterns, quality gates, and testing guidelines. Supplements the core skills — does NOT replace them.
This pack is relevant when the project has:
go.modgo.sum.go)cmd/
├── server/ # Main application entry
│ └── main.go
├── cli/ # CLI tool entry
│ └── main.go
internal/ # Private application code
├── config/
├── handlers/ # HTTP handlers
├── services/ # Business logic
├── repositories/ # Data access
├── models/ # Domain types
└── middleware/
pkg/ # Public reusable packages
├── logger/
└── httputil/
tests/
├── integration/
└── e2e/
go.mod
go.sum
Makefile
See references/go-quality-gates.md for full configuration.
go vet ./... # Static analysis
golangci-lint run # Comprehensive linting
go test ./... # Test
go test ./... -race # Test with race detector
go build ./... # Build check
fmt.Errorf("...: %w", err)| Core Skill | What this pack adds |
|---|---|
implement-task | Go patterns, quality gate commands |
generate-test | Go testing patterns, table-driven tests |
task-planner | Go complexity estimation |
code-reviewer | Go-specific code smells, idiomatic checks |
security-analyst | Go security (govulncheck, gosec) |