go-styleguide

Apply Google's Go Style Guide to Go code snippets.

2|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/rigerc/bubbletea-v2-scaffold --skill go-styleguide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-styleguide
Source: https://github.com/rigerc/bubbletea-v2-scaffold/tree/main/.claude/skills/go-styleguide
Command: npx skills add https://github.com/rigerc/bubbletea-v2-scaffold --skill go-styleguide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Ensures Go code adheres to Google's official style guide, promoting consistency, readability, and maintainability across projects.

Core Features & Use Cases

  • Code Formatting: Enforces gofmt standards.
  • Naming Conventions: Guides on clear and idiomatic naming for packages, functions, variables, etc.
  • Error Handling: Best practices for returning, wrapping, and handling errors.
  • Testing Patterns: Recommendations for writing effective and maintainable Go tests.
  • Concurrency Best Practices: Guidance on using goroutines and channels safely.
  • Use Case: Reviewing a Pull Request for a new Go module to ensure it meets Google's coding standards before merging.

Quick Start

Apply Google's Go Style Guide to the provided Go code snippet.

Frequently Asked Questions about go-styleguide

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

FAQPage Schema
How do I apply Google's Go style guide to check my code formatting and naming conventions?

To apply Google's Go style guide, use this skill to enforce gofmt formatting standards and idiomatic naming conventions for packages, functions, and variables, ensuring code clarity and consistency across your project.

What are the best practices for Go error handling and wrapping in a maintainable module?

Best practices for Go error handling involve returning, wrapping, and handling errors clearly to maintain simplicity. The style guide provides specific rules for managing complexity and ensuring concise error communication.

How do I write effective Go tests following official coding standards?

To write effective Go tests following official coding standards, apply the style guide's testing patterns. These recommendations focus on creating maintainable and consistent test suites that align with your module design.

Does the Google Go style guide provide concurrency best practices for goroutines and channels?

Yes, the Google Go style guide provides concurrency best practices for using goroutines and channels safely. It offers specific guidance on managing complexity and ensuring consistency in concurrent code execution.

When do I need a Go style guide for package design and complexity management?

You need a Go style guide for package design and complexity management when ensuring code readability and maintainability across a new project. It provides specific rules for module design and consistency before merging pull requests.