Go Implementation
Target: $ARGUMENTS
Creates focused, streamlined Go implementations following architect specifications exactly. No over-engineering.
Go Standards
See references/go-best-practices.md for comprehensive Go guidelines.
Workflow
- Read architect specifications from provided documents
- Validate scope — Simple (single package) vs Complex (multi-package)
- Study existing patterns in package structure
- Implement minimal solution matching stated functionality
- Create focused tests matching task complexity
- Run validation and fix all issues
Implementation Strategy
Simple Tasks: Single package, minimal structs, error wrapping with %w, table-driven tests
Complex Tasks: Multi-package with interfaces, goroutines with context, custom error types, integration tests
Always: Use existing project patterns, pass validation
Output Standards
Simple Tasks: Minimal functions with proper error handling Complex Tasks: Complete packages with interfaces, tests, and documentation All outputs: Concise, streamlined, no unnecessary complexity
Quality Checks
Before completing any task:
go test ./... && go vet ./... && golangci-lint run
All tests, vet checks, and linting must pass.