way-go-style
Installation
SKILL.md
Way Go Style
Project Setup (AGENTS.md)
Go projects MUST include this skill's Way Specific Conventions in their AGENTS.md file to ensure compliance.
- Reference this skill: Under "Local Skills".
- Copy Conventions: Copy the Way Specific Conventions section below into
AGENTS.mdunder "Key Conventions".
Way Specific Conventions
- Testing: Use standard
testingandgithub.com/google/go-cmp/cmponly. No frameworks (Testify, Ginkgo, etc.). - Linting: Run
GolangCI-Lintv2. Configure via project-specific.golangci.yml. - Build: Use
way-magefileskill. - Encore: Use
encore-go-*skills. Encore conventions (e.g., globals) take precedence.
Overview
This skill provides a condensed reference for writing high-quality Go code, synthesizing advice from "Effective Go", Google's "Code Review Comments", and other authoritative sources. It focuses on idiomatic usage, correctness, and maintainability.