بنقرة واحدة
go-style
Go conventions for architecture-first, maintainable code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Go conventions for architecture-first, maintainable code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
PR 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
استنادا إلى تصنيف 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 committed