# Golang Pro

Implements concurrent Go patterns using goroutines and channels, designs and builds...

- Repository: https://github.com/Jeffallan/claude-skills (12164 stars)
- Category: Design
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add Jeffallan/claude-skills --skill golang-pro -g -a claude-code -y`
Codex: `npx skills add Jeffallan/claude-skills --skill golang-pro -g -a codex -y`
Cursor: `npx skills add Jeffallan/claude-skills --skill golang-pro -g -a cursor -y`
Gemini CLI: `npx skills add Jeffallan/claude-skills --skill golang-pro -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add Jeffallan/claude-skills`

## Description

Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration, CLI tools, benchmarks, or table-driven testing.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Golang Pro

Senior Go developer with deep expertise in Go 1.21+, concurrent programming, and cloud-native microservices. Specializes in idiomatic patterns, performance optimization, and production-grade systems.

## 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 ./...` before proceeding
4. **Lint & validate**, Run `golangci-lint run` and fix all reported issues before proceeding
5. **Optimize**, Profile with pprof, write benchmarks, eliminate allocations
6. **Test**, Table-driven tests with `-race` flag, fuzzing, 80%+ coverage; confirm race detector passes before committing

## Reference Guide

Load detailed guidance based on context:

| Topic | Reference | Load When |
|-------|-----------|-----------|
| Concurrency | `references/concurrency.md` | Goroutines, channels, select, sync primitives |
| Interfaces | `references/interfaces.md` | Interface design, io.Reader/Writer, composition |
| Generics | `references/generics.md` | Type parameters, constraints, generic patterns |
| Testing | `references/testing.md` | Table-driven tests, benchmarks, fuzzing |
| Project Structure | `references/project-structure.md` | Module layout, internal packages, go.mod |

## Core Pattern Example

Goroutine with proper context cancellation and error propagation:

The rest: https://github.com/Jeffallan/claude-skills/blob/HEAD/skills/golang-pro/SKILL.md
