golang-pro

Design and optimize Go 1.21+ applications with advanced concurrency and architecture patterns.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/TrollHeap/dotfiles --skill golang-pro-trollheap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-pro
Source: https://github.com/TrollHeap/dotfiles/tree/main/ai-config/.claude/templates/bubbletea/.claude/skills/golang-pro
Command: npx skills add https://github.com/TrollHeap/dotfiles --skill golang-pro-trollheap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Go expert skill helps teams design, optimize, and productionize modern Go 1.21+ applications, focusing on advanced concurrency, architecture patterns, and robust production practices.

Core Features & Use Cases

  • Modern Go language features (Go 1.21+ enhancements, generics, workspaces, context, embed, error handling)
  • Concurrency & parallelism mastery: goroutines, channels, worker pools, cancellation
  • Performance & optimization: profiling, benchmarking, GC tuning
  • Modern Go architecture patterns: clean/hexagonal, microservices, domain-driven design
  • Web services & APIs: HTTP, gRPC, REST, authentication patterns
  • Database & persistence: SQL/NoSQL integration, migrations, connection pooling
  • Testing & quality assurance: unit, benchmark, integration tests, code coverage
  • DevOps & deployment: containers, Kubernetes, observability, CI/CD
  • Tooling & security: Go tooling, static analysis, secure coding practices

Quick Start

Set up a minimal Go 1.21+ project and run a concurrency-focused benchmark to observe performance improvements.

Frequently Asked Questions about golang-pro

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build scalable Go microservices with advanced concurrency patterns?

Scalable Go microservices require mastering goroutines, channels, and worker pools alongside clean architecture patterns. This involves implementing proper context usage for cancellation and designing domain-driven services that handle parallelism safely while remaining production-ready.

What is the best way to optimize Go application performance using profiling and benchmarking?

Go performance optimization involves executing profiling and benchmarking tests to identify bottlenecks. You analyze memory allocations and CPU usage, then apply GC tuning and concurrency adjustments to achieve measurable improvements in high-throughput services.

How do generics in Go 1.21+ change architecture patterns for libraries?

Generics in Go 1.21+ enable type-safe, reusable data structures and functions without reflection. They simplify clean and hexagonal architecture implementations by reducing boilerplate code in domain layers and repository definitions.

Can I use Go workspaces and embed for modular microservices deployment?

Yes, Go workspaces manage multi-module repositories for microservices, while the embed package bundles static assets directly into binaries. Together they streamline containerized deployment and simplify CI/CD pipelines.

How do I structure database connection pooling and migrations in a Go service?

Database connection pooling in Go services requires configuring max connections and timeouts for SQL or NoSQL integrations. Migrations must be version-controlled and executed during deployment to ensure schema consistency across microservices.

Why does my Go concurrency pattern leak goroutines and how do I fix it?

Goroutine leaks often occur when channels block without cancellation signals. You fix this by propagating Go context with timeouts and ensuring worker pools properly close channels and terminate goroutines during shutdown or failure.