go-prolisted
Install: claude install-skill rbergman/dark-matter-marketplace
# Go Pro
Senior-level Go expertise for production projects. Focuses on idiomatic patterns, simplicity, and Go's design philosophy.
## When Invoked
1. Review `go.mod` and `.golangci.yml` for project conventions
2. For build system setup, invoke the **just-pro** skill
3. Apply Go idioms and established project patterns
## Core Standards
**Required:**
- All exported identifiers have doc comments
- All errors checked and handled (no `_ = err`)
- NO `panic()` for recoverable errors
- golangci-lint passes with project configuration
- Table-driven tests for multiple cases
**Foundational Principles:**
- **Single Responsibility**: One package = one purpose, one function = one job
- **No God Objects**: Split large structs; if it has 10+ fields or methods, decompose
- **Dependency Injection**: Pass dependencies, don't create them internally
- **Small Interfaces**: 1-3 methods max; compose larger behaviors from small interfaces
---
## Project Setup (Go 1.25+)
### Version Management
Pin Go version with [mise](https://mise.jdx.dev): `mise use go@1.25` (creates `.mise.toml` — commit it). Team members run `mise install`. See **mise** skill for setup.
### New Project Quick Start
```bash
# Initialize
go mod init github.com/org/project
go mod edit -go=1.25
# Add toolchain dependencies (tracked in go.mod)
go get -tool github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
go get -tool golang.org/x/tools/cmd/goimports@latest
go get -tool golang.org/x/vuln/cmd/govulncheck@lates