go-google-style-guide

Enforce Google's Go Style Guide for formatting and naming in Go code.

21|1|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/metalagman/agent-skills --skill go-google-style-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-google-style-guide
Source: https://github.com/metalagman/agent-skills/tree/main/go-google-style-guide
Command: npx skills add https://github.com/metalagman/agent-skills --skill go-google-style-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Go code often suffers from inconsistent formatting, naming, and idiomatic usage which reduces readability and maintainability. This Skill provides a structured approach to writing, refactoring, and reviewing Go projects in line with Google's official Go Style Guide, helping teams produce clean, predictable code.

Core Features & Use Cases

  • Enforce gofmt-compliant formatting and naming conventions per Google's Go Style Guide to ensure consistent code appearance and readability.
  • Improve maintainability by encouraging idiomatic Go patterns, clear variable names, and concise, well-documented APIs.
  • Use in code reviews and onboarding to quickly surface style deviations and provide actionable guidance for fixes.

Quick Start

Ask the AI to reformat and adjust a Go file to comply with Google's Go Style Guide.

Frequently Asked Questions about go-google-style-guide

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

FAQPage Schema
How do I format Go code to comply with Google's Go Style Guide?

Format Go code for Google's Go Style Guide compliance by running gofmt and enforcing consistent naming conventions and idiomatic usage. This ensures readability and maintainability across your project.

What is the Google Go Style Guide approach for handling initialisms in variable names?

The Google Go Style Guide requires proper handling of initialisms in variable names to maintain consistency. Adhering to these naming conventions ensures your Go code remains predictable and readable for team collaboration.

How do I use the Google Go Style Guide during a code review?

Use the Google Go Style Guide during code reviews to quickly surface style deviations and provide actionable guidance for fixes. It checks for gofmt compliance, clear variable names, and idiomatic Go patterns.

Can I use this to refactor existing Go projects for better maintainability?

Yes, you can refactor existing Go projects to improve maintainability by applying Google's Go Style Guide. It encourages idiomatic Go patterns, clear variable names, and concise, well-documented APIs for cleaner code.

Does the Google Go Style Guide require gofmt for all Go files?

Yes, gofmt is required for all Go files under the Google Go Style Guide. Enforcing gofmt-compliant formatting ensures consistent code appearance and readability across the entire codebase.