Skills

Golang Pro

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

Install

npx skills add Jeffallan/claude-skills --skill golang-pro -g -a claude-code -y
Category
Design
Updated
5d ago
License
MIT
Context cost
Lightabout 1,069 tokens
Runs scripts
No, instructions only

What it does

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.

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:

TopicReferenceLoad When
Concurrencyreferences/concurrency.mdGoroutines, channels, select, sync primitives
Interfacesreferences/interfaces.mdInterface design, io.Reader/Writer, composition
Genericsreferences/generics.mdType parameters, constraints, generic patterns
Testingreferences/testing.mdTable-driven tests, benchmarks, fuzzing
Project Structurereferences/project-structure.mdModule layout, internal packages, go.mod

Core Pattern Example

Goroutine with proper context cancellation and error propagation:

Read the whole SKILL.md on GitHub

More in Design