com um clique
go-style
Go conventions for architecture-first, maintainable code
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Go conventions for architecture-first, maintainable code
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
| name | go-style |
| description | Go conventions for architecture-first, maintainable code |
| user-invocable | true |
Go conventions for this project with domain boundaries and maintainability first.
Project-wide verification lives in AGENTS.md. Use those commands after code changes.
go build ./... # Build all packages
go test ./... # Run all tests
go test -race ./... # Run with race detector
go test -cover ./... # Run with coverage
go test ./path/to/pkg -run '^TestName$' # Run single test
go vet ./... # Vet all packages
make setup-hooks # Install committed git hooks if not configured
goimports -l . # List unformatted files
make fmt-check # CI formatting check
go mod tidy # Clean up dependencies
Group imports: standard library, third-party, local. Use goimports to manage order. Avoid dot imports. Use aliases only for conflicts.
git config --local --get core.hooksPath is not .githooks, run make setup-hooksmake fmt-check before pushing or rely on CIif err := ... for multi-line bodiescamelCase for locals and parametersPascalCase for exported identifiersReader, Store, Validator)UserStore, OAuthClient)any sparingly; prefer defined typesUse the error-handling skill for structured error workflows and messaging rules.
fmt.Println in library codesync.WaitGroup to coordinate goroutinesTestXxx and subtests with t.Runt.Helper for helper functionsdoc.go when package intent changes; capture responsibilities, boundaries, and non-goalsgo.mod tidy and committedPR review triage, scoped fixes, verification, and merge workflow
Web transport boundaries and feature-layer conventions
Workflow and checks for adding a new game system
Meaningful testing strategy and coverage guardrails
Parallel-path refactor workflow for clean boundary cutovers
Structured domain and transport errors with i18n-friendly messages