go-best-practices

Enforce Go best-practices rules for code reviews and refactoring.

9|2|Updated Aug 12, 2025
One-click install
npx skills add https://github.com/fernandobandeira/agents --skill go-best-practices-fernandobandeira
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-best-practices
Source: https://github.com/fernandobandeira/agents/tree/main/.opencode/skills/go-best-practices
Command: npx skills add https://github.com/fernandobandeira/agents --skill go-best-practices-fernandobandeira

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Go best-practices guide consolidates style, error handling, concurrency, interfaces, and project structure guidance from Google, Uber, Effective Go, and Go Code Review Comments to help teams write clean, consistent Go code.

Core Features & Use Cases

  • 60+ rules across 10 categories covering naming, error handling, concurrency, interfaces, testing, performance, and documentation.
  • Provides concrete examples, best-practices, and references to official Go sources to support code reviews and refactoring.
  • Used at code-creation, code-review, and architecture-design time to ensure consistency and maintainability across Go projects.

Quick Start

Read and apply the rules during new Go package creation, code reviews, and refactoring to ensure alignment with the guide.

Frequently Asked Questions about go-best-practices

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

FAQPage Schema
What are the Go best practices for error handling and concurrency?

Go best practices for error handling and concurrency involve applying over 60 curated rules across 10 categories to ensure reliable code, drawing from Google, Uber, Effective Go, and Go Code Review Comments.

How do I use golangci-lint to enforce Go code review standards?

You enforce Go code review standards by applying golangci-lint alongside a curated suite of mandatory linting rules, ensuring consistent style, reliable error handling, and proper interface usage across the codebase.

What is the best way to structure Go interfaces for new projects?

The best way to structure Go interfaces is by applying a comprehensive best-practices suite during code creation and architecture design, specifying concrete examples to ensure maintainability and consistency.

Does this Go best practices guide cover Uber and Google style guidelines?

Yes, this Go best practices guide covers Uber and Google style guidelines, consolidating them with Effective Go and Go Code Review Comments to provide structured guidance for reviewers and developers.

When do I need a Go best practices guide for refactoring?

You need a Go best practices guide for refactoring when you want to ensure consistent style, reliable concurrency, and proper error handling across existing Go codebases during maintenance work.

Why should I use a consolidated Go style guide instead of individual references?

You should use a consolidated Go style guide because it synthesizes 60+ rules across 10 categories from multiple official sources, providing structured guidance that prevents inconsistency during code reviews and project architecture.