way-go-style
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.
More from way-platform/skills
way-magefile
Build tool for Go projects. Use when the user wants to create, edit, or understand Way-specific Magefiles, build targets, or automate Go project tasks.
18ileap
>-
17agents-md
This skill should be used when the user asks to "create AGENTS.md", "update AGENTS.md", "maintain agent docs", "set up CLAUDE.md", or needs to keep agent instructions concise. Guides discovery of local skills and enforces minimal documentation style.
11way-brand-identity
Write copy and use colors according to the Way brand.
11aep
AEP (API Enhancement Proposals) design standards. Use when designing, reviewing, or implementing APIs to ensure compliance with AEP conventions.
5spacelift-terraform
Spacelift for Terraform GitOps. Use when working with Spacelift stacks, runs, policies, contexts, worker pools, drift detection, or spacectl CLI.
4