google-go-style

Applies Google's Go style guide rules when writing or reviewing Go code.

Updated Aug 22, 2026
One-click install
npx skills add https://github.com/chughtapan/google-guide-skills --skill google-go-style-chughtapan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-go-style
Source: https://github.com/chughtapan/google-guide-skills/tree/main/skills/google-go-style
Command: npx skills add https://github.com/chughtapan/google-guide-skills --skill google-go-style-chughtapan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Go code written without shared conventions becomes inconsistent and hard to maintain across teams. This Skill gives an AI agent Google's official Go style decisions so it can write and review Go code that follows established naming, error handling, concurrency, and testing standards. ## Core Features & Use Cases - Style and naming rules: Enforces MixedCaps naming, initialism casing (URL, ID), package naming, receiver naming, and gofmt formatting conventions. - Error handling and API design guidance: Covers returning errors, error strings, wrapping with %w, avoiding panic, in-band errors, interfaces, contexts, and avoiding global state. - Testing standards: Applies table-driven tests, got-before-want failure messages, test helpers with t.Helper, and the standard testing package only. - Use Case: When reviewing a Go pull request, the agent flags a function named GetCounts, an exported function missing a doc comment, and a discarded error return, citing the exact style rules. ## Quick Start Review my Go file handlers.go using the Google Go style guide and list every style violation with the recommended fix.

Frequently Asked Questions about google-go-style

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

FAQPage Schema
Does this style guide replace the Go language specification?

No. The guide covers style decisions, best practices, and readability conventions for writing maintainable Go code, but it is not a language reference. Consult the Go language specification for syntax and semantics questions.