golang-pro

Design and implement Go 1.21+ microservices with modern concurrency patterns.

Updated Apr 9, 2025
One-click install
npx skills add https://github.com/landmaster135/devbox --skill golang-pro-landmaster135
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-pro
Source: https://github.com/landmaster135/devbox/tree/main/.config/codex/skills/systems-programming/agents/golang-pro
Command: npx skills add https://github.com/landmaster135/devbox --skill golang-pro-landmaster135

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go developers often struggle to adopt modern Go patterns, manage advanced concurrency safely, and produce production-ready systems at scale. This skill provides expert guidance to design, implement, and optimize Go 1.21+ applications with high performance and robust architecture.

Core Features & Use Cases

  • Advanced Concurrency Mastery: Goroutine lifecycle, worker pools, and complex channel patterns for scalable processing.
  • Modern Architecture & Design: Clean/hexagonal architecture, domain-driven design, and modular multi-module projects using Go workspaces.
  • Performance Profiling & Optimization: CPU/memory profiling with pprof, trace, and optimization strategies for low latency and high throughput.
  • Microservices & APIs: Designing production-ready REST/gRPC services, with DI, observability, and deployment patterns.

Quick Start

Design and implement a high-performance Go 1.21+ microservice using modern concurrency patterns.

Frequently Asked Questions about golang-pro

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

FAQPage Schema
How do I implement safe worker pools and goroutine lifecycle management in Go?

Worker pools and goroutine lifecycle management in Go require structured concurrency patterns using channels for coordination and context cancellation for cleanup. This skill covers complex channel patterns and worker pool design for scalable, leak-free concurrent processing.

What's the best way to profile Go application performance using pprof?

Profiling Go application performance with pprof involves analyzing CPU and memory traces to identify bottlenecks. This skill provides optimization strategies using pprof and trace tools to achieve low latency and high throughput in production systems.

How do I structure a Go microservice using clean architecture and gRPC?

Structuring a Go microservice with clean architecture and gRPC involves separating domain logic from infrastructure using hexagonal design principles. This skill guides production-ready REST and gRPC service design with dependency injection and observability.

Does this Go concurrency guidance apply to Go 1.21 and newer versions?

Yes, this Go concurrency guidance specifically targets Go 1.21 and newer versions, incorporating modern features like generics and workspaces. It satisfies expert-level engineering practices for contemporary Go development environments.

How do I handle errors and testing in multi-module Go workspaces?

Handling errors and testing in multi-module Go workspaces requires structured error handling patterns and comprehensive test coverage across modules. This skill covers production-ready testing strategies and deployment readiness for modular Go projects.

When should I use Go workspaces instead of a single module for microservices?

Go workspaces should be used instead of a single module when building modular multi-module projects that require independent versioning and deployment. This skill covers workspace configuration and modular architecture for scalable microservice design.