es:go

Generate idiomatic Go code for services, CLIs, and tests.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/jangtrinh/demo-Lam --skill es-go
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: es:go
Source: https://github.com/jangtrinh/demo-Lam/tree/main/.claude/skills/go
Command: npx skills add https://github.com/jangtrinh/demo-Lam --skill es-go

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Guides you to produce idiomatic, reliable Go code by codifying Go’s core philosophy, common failure modes, and ecosystem-specific best practices to reduce mistakes and hallucinated “Go-like” patterns.

Core Features & Use Cases

  • Idiomatic Go patterns & philosophy: prioritizes simplicity, explicit error handling, composition, and safe concurrency primitives.
  • Framework and architecture guidance: helps choose appropriate libraries and project structure (cmd/internal/pkg, module layout).
  • Operational quality guardrails: prevents typical bugs (goroutine leaks, deadlocks, nil interface traps) and improves correctness with testing, linting, and build practices.

Quick Start

Tell the AI: “Review this Go code for idiomatic style, concurrency safety, and error-handling correctness, and propose an improved version aligned with Go best practices.”

Frequently Asked Questions about es:go

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

FAQPage Schema
How do I structure a Go project to follow idiomatic conventions?

Idiomatic Go project structure organizes code using cmd, internal, and pkg directories to separate entry points from private logic. This layout prevents external imports of private packages, maintains explicit module boundaries, and aligns with standard Go philosophy for simple, reliable architecture.

How do I prevent goroutine leaks and deadlocks in Go concurrency?

Preventing goroutine leaks and deadlocks in Go concurrency requires safe channel usage and proper synchronization primitives. Applying idiomatic patterns ensures goroutines exit cleanly, avoids nil interface traps, and reduces common failure modes in real-world services and tooling.

What is the best way to handle errors in Go HTTP and gRPC APIs?

The best way to handle errors in Go HTTP and gRPC APIs is through explicit error checking rather than exceptions. Idiomatic Go prioritizes returning errors from functions, wrapping them with context, and ensuring correct error propagation across API production workflows.

How do I write idiomatic Go tests and benchmarks?

Writing idiomatic Go tests and benchmarks involves using the standard testing package to validate correctness and measure performance. Applying Go philosophy-aligned guidance ensures tests cover key technical domains, prevent typical bugs, and improve operational quality guardrails.

Does this Go guidance help with choosing frameworks and databases?

This Go guidance helps with choosing frameworks and databases by providing architecture guidance for real-world services. It codifies ecosystem-specific best practices to reduce mistakes and hallucinated patterns, ensuring appropriate library selection for HTTP and gRPC APIs.

Why does my Go code have nil interface traps and how do I fix them?

Nil interface traps in Go code occur when a typed nil pointer is assigned to an interface, making the interface itself non-nil. Fixing them requires pitfall checks and idiomatic patterns that reduce incorrect or unsafe architecture mistakes in production workflows.