go-uber-style

Review Go code for compliance with the Uber Go Style Guide.

11|1|Updated Mar 18, 2025
One-click install
npx skills add https://github.com/cndoit18/dotfiles --skill go-uber-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-uber-style
Source: https://github.com/cndoit18/dotfiles/tree/main/home/dot_claude/skills/go-uber-style
Command: npx skills add https://github.com/cndoit18/dotfiles --skill go-uber-style

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill enforces the rigorous Uber Go Style Guide, ensuring Go code is idiomatic, maintainable, performant, and robust, particularly in concurrent and error-prone scenarios.

Core Features & Use Cases

  • Enforces Best Practices: Guides developers on TDD, explicit error handling, concurrency safety, and idiomatic Go patterns.
  • Code Review & Refactoring: Provides a checklist and guidelines for improving existing Go code.
  • Use Case: When starting a new Go microservice, use this Skill to ensure all new code adheres to the strict standards required for production readiness, preventing common pitfalls in error handling and concurrency.

Quick Start

Use the go-uber-style skill to review the provided Go code for compliance with the Uber Go Style Guide.

Frequently Asked Questions about go-uber-style

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

FAQPage Schema
How do I enforce Uber Go style guide best practices for idiomatic Golang code?

Enforce Uber Go style guide best practices by applying rules for function size, parameter count, error wrapping, channel sizing, and goroutine management to write idiomatic Golang code. This ensures robust and maintainable concurrent code.

What is the best way to handle concurrency and goroutine management in Go?

The best way to handle concurrency in Go is following strict guidelines on goroutine management and channel sizing. This prevents common concurrency pitfalls by enforcing safe patterns for concurrent execution and explicit error handling.

How do I review and refactor existing Go code for production readiness?

Review and refactor existing Go code for production readiness using a comprehensive checklist focused on Test-Driven Development, explicit error handling, and idiomatic patterns. This identifies structural improvements for maintainable code.

Does the Uber Go style guide support Test-Driven Development workflows?

Yes, the Uber Go style guide supports Test-Driven Development workflows by providing comprehensive guidance on TDD alongside explicit error handling and Go idioms. This ensures new code meets strict production standards.

When should I use explicit error handling and wrapping in Golang?

Use explicit error handling and wrapping in Golang when writing robust microservices prone to errors. Enforcing these rules during development prevents common pitfalls and maintains performance in concurrent scenarios.