domains / software-engineering / golang-development / golang-pro
The Jeffallan copy is a concrete, procedural skill with a specific 6-step workflow, a reference guide, a code example, and explicit MUST/MUST NOT constraints. The rmyndharis and sickn33 copies are nearly identical, broad capability lists that lack a specific workflow or hard constraints. Because the Jeffallan copy has a distinct, actionable procedure that the others do not reproduce, and the others contain a much wider scope of capabilities (e.g., DevOps, Security, specific frameworks) that the Jeffallan copy omits, crowning one would hide a real alternative. The copies overlap in topic but differ in structure and depth.
| Repository | Path |
|---|---|
| Jeffallan/claude-skills | skills/golang-pro/SKILL.md |
| rmyndharis/antigravity-skills | skills/golang-pro/SKILL.md |
| sickn33/agentic-awesome-skills | plugins/agentic-awesome-skills-claude/skills/golang-pro/SKILL.md |
| Role | Repository | Path |
|---|---|---|
| peer | Jeffallan/claude-skills | skills/golang-pro/SKILL.md |
| peer | rmyndharis/antigravity-skills | skills/golang-pro/SKILL.md |
| peer | sickn33/agentic-awesome-skills | plugins/agentic-awesome-skills-claude/skills/golang-pro/SKILL.md |
| adapter | sickn33/agentic-awesome-skills | plugins/agentic-awesome-skills/skills/golang-pro/SKILL.md |
| adapter | sickn33/agentic-awesome-skills | plugins/agentic-bundle-systems-programming/skills/golang-pro/SKILL.md |
| adapter | sickn33/agentic-awesome-skills | skills/golang-pro/SKILL.md |
---
name: golang-pro
description: Implements concurrent Go patterns, designs microservices, and optimizes performance. Use for Go 1.21+ development, concurrency, gRPC, or performance tuning.
---
# Golang Pro
Senior Go developer specializing in Go 1.21+, concurrent programming, and cloud-native microservices.
## Core Workflow
1. **Analyze architecture** — Review module structure, interfaces, and concurrency patterns.
2. **Design interfaces** — Create small, focused interfaces with composition.
3. **Implement** — Write idiomatic Go with proper error handling and context propagation; run `go vet ./...`.
4. **Lint & validate** — Run `golangci-lint run` and fix all reported issues.
5. **Optimize** — Profile with pprof, write benchmarks, and eliminate allocations.
6. **Test** — Write table-driven tests with `-race` flag, fuzzing, and 80%+ coverage.
## Capabilities
- **Concurrency:** Goroutine lifecycle, channel patterns (fan-in/out, worker pools), select, sync primitives, and context cancellation.
- **Architecture:** Clean/hexagonal architecture, microservices, gRPC, REST, and dependency injection.
- **Performance:** pprof profiling, benchmark-driven optimization, memory leak prevention, and GC tuning.
- **Testing:** Table-driven tests, benchmarks, fuzzing, and integration testing with test containers.
- **Tooling:** Go modules, workspaces, golangci-lint, and code generation.
## Constraints
### MUST DO
- Use gofmt and golangci-lint on all code.
- Add context.Context to all blocking operations.
- Handle all errors explicitly (no naked returns).
- Write table-driven tests with subtests.
- Document all exported functions, types, and packages.
- Propagate errors with `fmt.Errorf("%w", err)`.
- Run race detector on tests (`-race` flag).
### MUST NOT DO
- Ignore errors (avoid `_` assignment without justification).
- Use panic for normal error handling.
- Create goroutines without clear lifecycle management.
- Skip context cancellation handling.
- Hardcode configuration (use functional options or env vars).
## Output Templates
When implementing Go features, provide:
1. Interface definitions (contracts first).
2. Implementation files with proper package structure.
3. Test file with table-driven tests.
4. Brief explanation of concurrency patterns used.