golang-pro

Implement idiomatic Go code with safe concurrency, error handling, and testing.

Updated May 15, 2026
One-click install
npx skills add https://github.com/JBonfim/skill-developer --skill golang-pro-jbonfim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-pro
Source: https://github.com/JBonfim/skill-developer/tree/main/.agents/skills/golang-pro
Command: npx skills add https://github.com/JBonfim/skill-developer --skill golang-pro-jbonfim

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Golang-pro helps you design and implement idiomatic, production-ready Go code that safely leverages concurrency, robust error handling, and testability patterns—without goroutine leaks or brittle implementations.

Core Features & Use Cases

  • Concurrent programming with correctness: Designs goroutine lifecycles using context.Context, channels, bounded concurrency, and proper cancellation.
  • Idiomatic microservices development: Implements cloud-native services using clean interfaces and production patterns for gRPC or REST integration.
  • Performance and reliability engineering: Uses pprof for profiling, benchmarks for measurement, and race detector-friendly tests (table-driven, fuzzing).
  • Generics-first code quality: Applies Go generics with interfaces/constraints (including union constraints) to keep APIs expressive and maintainable.
  • Production-grade validation: Enforces gofmt, go vet, and golangci-lint before proceeding.

Quick Start

Ask the AI to implement an idiomatic concurrent Go pipeline for your service, including context cancellation, error propagation, table-driven tests, and a quick benchmark plan.

Frequently Asked Questions about golang-pro

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

FAQPage Schema
How do I build a concurrent Go pipeline without goroutine leaks?

To build a concurrent Go pipeline without goroutine leaks, you must manage goroutine lifecycles using context.Context for cancellation, channels for synchronization, and bounded concurrency. This approach ensures safe execution and explicit error propagation.

Does this approach support gRPC microservices development in Go?

Yes, this approach supports gRPC microservices development in Go by implementing cloud-native services using clean interfaces and production patterns. It ensures idiomatic REST or gRPC integration with robust context propagation and error wrapping.

What is the best way to profile Go performance and ensure race-detector safety?

The best way to profile Go performance and ensure race-detector safety is using pprof for profiling and benchmarks for measurement. This must be paired with race-detector-safe table-driven tests and fuzzing support to guarantee reliability.

How do I implement table-driven tests and fuzzing for Go 1.21+?

To implement table-driven tests and fuzzing for Go 1.21+, you write tests that are explicitly race-detector-safe. This includes defining table-driven cases for inputs and adding fuzzing support to catch edge cases during execution.

Can I use Go generics with interfaces and union constraints for API design?

Yes, you can use Go generics with interfaces and union constraints for API design. Applying generics with these constraints keeps APIs expressive and maintainable while ensuring production-grade validation through gofmt and golangci-lint.